bannerEdit.html 7.91 KB
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<div class="contentpanel">
    <div class="row">
        <div class="col-md-12">
            <form id="basicForm" role="form" class="form-horizontal form-bordered" method="post" action="<%action%>" novalidate="novalidate">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title">添加模块</h4>
                    </div>
                    <div class="panel-body">
                        <div class="row">
                            <div class="form-group">
                                <label class="col-sm-1 control-label">名称</label>
                                <div class="col-sm-8">
                                    <input type="text" id="caption" name="caption" class="form-control"  placeholder="名称" value="<%data.caption%>" maxlength="200"/>
                                    <input type="hidden" id="id" name="id" value="<%data.id%>"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">位置</label>
                                <div class="col-sm-4">
                                    <select id="postionId" class="form-control" required placeholder="位置">
                                        <option value="[[postionId||'-1']]"><%data.positionName%></option>
                                    </select>
                                </div>
                                <label class="col-sm-1 control-label">样式</label>
                                <div class="col-sm-2">
                                    <select id="templetId" class="form-control" required placeholder="样式">
                                        <option value="[[templetId||'-1']]"><%data.templetName%></option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">分类</label>
                                <div class="col-sm-4">
                                    <div id="sortTree" style="width: 100%"></div>
                                </div>
                                <label class="col-sm-1 control-label">性别</label>
                                <div class="col-sm-2">
                                    <label class="radio-inline">
                                        <input type="radio" name="gender" value="1"></label>
                                    <label class="radio-inline">
                                        <input type="radio" name="gender" value="2"></label>
                                    <label class="radio-inline">
                                        <input type="radio" name="gender" value="3">通用</label>
                                    <input type="hidden" id="gender" name="gender" value="<%data.gender%>" for="radio" required />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">标题</label>
                                <div class="col-sm-8">
                                    <input type="text" id="caption" name="caption" class="form-control"  placeholder="标题" value="" maxlength="200"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">副标题</label>
                                <div class="col-sm-8">
                                     <input type="text" id="caption" name="caption" class="form-control"  placeholder="副标题" value="" maxlength="200"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">内容</label>
                                <div class="col-sm-8">
                                    <script id="banner" type="text/plain" style="width:100%;height:300px;"></script>
                                    <input type="hidden" id="searchBanner" name="banner" value="<%data.data%>">
                                </div>
                            </div>
                      </div>
                    </div>
                </div>


                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title">搜索参数</h4>
                    </div>
                    <div class="panel-body">
                        <div class="row">
                            <div class="form-group">
                                <label class="col-sm-1 control-label">价格</label>
                                <div class="col-sm-4">
                                    <input type="text" id="caption" name="caption" class="form-control"  placeholder="价格" value="<%data.price%>" maxlength="10"/>
                                </div>
                                <label class="col-sm-1 control-label">尺码</label>
                                <div class="col-sm-4">
                                    <select id="sizeId" class="form-control" required placeholder="尺码">
                                        <option value="[[sizeId||'-1']]"><%data.colorName%></option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group" id="styleDiv">
                            </div>
                            <div class="form-group" id="colorDiv">
                            </div>
                             <div class="form-group">
                                <label class="col-sm-1 control-label">品牌</label>
                                <div class="col-sm-11">
                                    <input type="text" id="caption" name="caption" class="form-control"  placeholder="价格" value="<%data.price%>" maxlength="200"/>
                                </div>
                            </div>
                      </div>
                    </div>
                    <div class="panel-footer">
                      <div class="row">
                        <div class="col-sm-8 col-sm-offset-2">
                            <a href="javascript:;" onclick="history.go(-1);" class="btn btn-default">取消</a>
                            <button id="save_banner" type="submit" data-loading-text="保存中..." class="btn delay-btn btn-success">保存</button>
                        </div>
                      </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>


<script type="text/template" id="templateStyle">
    <label class="col-sm-1 control-label">风格</label>
    <div class="col-sm-11">
        [[each data as item index ]]
            <label class="radio-inline">
            <input type="checkbox" name="style" data-index=[[__index]] class="attr_checkobx_class" value="[[item.id]]">[[item.text]]</label>
        [[/each]]
        <input type="hidden" id="style" value="[[selectStyle||'']]" for="checkbox"/>
    </div>
</script>

<script type="text/template" id="templateColor">
    <label class="col-sm-1 control-label">颜色</label>
    <div class="col-sm-11">
        [[each list as item index ]]
            <label class="radio-inline">
            <input type="radio" name="color" data-index=[[__index]] class="attr_radio_class" value="[[item.id]]">[[item.colorName]]</label>
        [[/each]]
        <input type="hidden" id="color" value="[[selectColor||'']]" for="radio"/>
    </div>
</script>


<%include '../../../common/views/__ui/footer'%>