Edit.html 6.81 KB
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>

<style type="text/css" media="all">
    .fileinput-button {
        width: 284px;
        height: 200px;
    }
    .fileinput-button .fileinput-button-icon {
        height: auto;
        line-height: auto;
    }
    input[type=file] {
        height: 200px;
        width: 284px;
    }
</style>

<div class="data.contentDatapanel">
    
    <form id="add-form" class="form-horizontal form-bordered" type="<%type%>" action="<%action%>">
        <div class="panel-group">
            <div class="panel-group" id="editor-group">
                <% if data %>
                <input type="hidden" id="id" value="<%data.id%>">
                <%/if%>
                <div class="pannel">
                    <div class="panel-body">
                        <div class="row">
                            <% if data %>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">组合套餐号:</label>
                                <div class="col-sm-3"> <p class="form-control-static"><% data.id %></p> </div>
                            </div>
                            <%/if%>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">有效时间:</label>
                                <div class="col-sm-2">
                                    <input id="beginTimeStr" data-time="" value="<%if data%><% data.beginTimeStr %><%/if%>" type="text" class="form-control" jsaction="time" placeholder="开始时间" readonly required>
                                </div>
                                <div class="col-sm-1" style="width: 28px;">~</div>
                                <div class="col-sm-2">
                                    <input id="endTimeStr" data-time="" value="<%if data%><% data.endTimeStr %><%/if%>" type="text" class="form-control" jsaction="time" placeholder="结束时间" readonly required>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">套餐商品:</label>
                                <div class="col-sm-4">
                                   <input type="hidden" id="productSkn" value="">
                                   <table class="table table-bordered">
                                       <thead>
                                           <tr>
                                               <th>SKN</th>
                                               <th>排序</th>
                                           </tr>
                                       </thead>
                                       <tbody>
                                           <tr>
                                               <td> <input type="text" name="productSkn" class="form-control" maxlength="10" style="width: 150px;" value="<% if data%><% data.productSkn1 %><%/if%>"> </td>
                                               <td>
                                                   <button type="button" class="btn btn-default btn-sm btn-down"><span class="glyphicon glyphicon-chevron-down"></span></button>
                                               </td>
                                           </tr>
                                           <tr>
                                               <td> <input type="text" name="productSkn" class="form-control" maxlength="10" style="width: 150px;" value="<% if data%><% data.productSkn2 %><%/if%>"> </td>
                                               <td>
                                                   <div class="btn-group">
                                                       <button type="button" class="btn btn-default btn-sm btn-up"><span class="glyphicon glyphicon-chevron-up"></span></button>
                                                       <button type="button" class="btn btn-default btn-sm btn-down"><span class="glyphicon glyphicon-chevron-down"></span></button>
                                                   </div>
                                               </td>
                                           </tr>
                                           <tr>
                                               <td> <input type="text" name="productSkn" class="form-control" maxlength="10" style="width: 150px;" value="<% if data%><% data.productSkn3 %><%/if%>"> </td>
                                               <td>
                                                   <div class="btn-group">
                                                       <button type="button" class="btn btn-default btn-sm btn-up"><span class="glyphicon glyphicon-chevron-up"></span></button>
                                                       <button type="button" class="btn btn-default btn-sm btn-down"><span class="glyphicon glyphicon-chevron-down"></span></button>
                                                   </div>
                                               </td>
                                           </tr>
                                           <tr>
                                               <td> <input type="text" name="productSkn" class="form-control" maxlength="10" style="width: 150px;" value="<% if data%><% data.productSkn4 %><%/if%>"> </td>
                                               <td><button type="button" class="btn btn-default btn-sm btn-up"><span class="glyphicon glyphicon-chevron-up"></span></button>
                                               </td>
                                           </tr>
                                       </tbody>
                                    </table> 
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">优惠力度:</label>
                                <div class="col-sm-3">
                                    <input type="text"  id="discount" placeholder="折扣" class="form-control" required maxlength="10" value="<% if data%><% data.discount %><%/if%>">
                                    <span class="help-inline red">支持0.01-1之间的数字</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
            <div class="pannel">
            <div class="col-md-10"></div>
            <div class="col-md-2">
                <input id="add-btn" class="btn btn-success add-btn" type="button" value="保存"></input>
                <a class="btn btn-default btn-sm" href="/product/bundle/index">取消</a>
            </div>
            </div>
        </div>
    </form>
</div>