Edit.html 3.82 KB
<div class="pageheader">
    <div class="media">
        <div class="pageicon pull-left">
            <i class="fa fa-th-list"></i>
        </div>
        <div class="media-body">
            <ul class="breadcrumb">
                <li><a href="#"><i class="glyphicon glyphicon-home"></i></a></li> 
                <li><a href="#">运营管理</a></li>
                <li>销售类目管理</li>
            </ul>
            <h4>销售类目编辑</h4>
        </div>
    </div>
</div>
<div class="contentpanel">
    <div class="panel panel-default">
        <div class="panel-heading">
            <h2 class="panel-title">销售类目编辑</h2>
        </div>
        
        <div class="panel-body">
            <form id="basicForm" role="form" action="{{action}}" class="form-horizontal form-bordered">
                {{# data}}
                {{#unless addRootCategory}}
                <div class="form-group">
                    <label class="col-sm-2 control-label">父分类</label>
                    <div class="col-sm-8 height40">{{# parentSC}}{{categoryName}}{{# items}}-{{categoryName}}{{/ items}}{{/ parentSC}}</div>
                </div>
                {{/unless}}
                
                <div class="form-group">
                     <label class="col-sm-2 control-label">是否BLK:</label>
                     <div class="col-sm-8">
                          <select class="form-control" id="appType" value="[[appType]]">
                             <option value="0"></option>
                             <option value="1"></option>
                         </select>
                     </div>
               </div>     
                <div class="form-group">
                    <label class="col-sm-2 control-label">分类名称</label>
                    <div class="col-sm-8"><input type="text" id="categoryName" name="categoryName" class="form-control" placeholder="分类名称" value="{{categoryName}}"></div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">分类图标</label>
                    <div class="col-sm-8"><input type="file" id="icon" name="icon" value="{{icon}}" placeholder="分别图标"></div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">物理类目关联</label>
                    <div class="col-sm-8 sort-wrap">
                        <div class="row">
                            <div class="col-sm-4">
                                <div class="sortTree"></div>
                            </div>
                            <div class="col-sm-2 height40">
                                <a class="btn btn-danger btn-xs del-sort-btn" style="display: none;" href="javascript:;">-</a>
                                <a class="btn btn-info btn-xs add-sort-btn" href="javascript:;">+</a>
                            </div>
                        </div>
                    </div>
                </div>
                <input id="parentId" type="hidden" value="{{parentId}}">
                {{/ data}}
            </form>
        </div>

        <div class="panel-footer">
            <div class="col-sm-8 col-sm-offset-2">
                <a id="save_brand" data-loading-text="保存中..." class="btn btn-primary" href="javascript:;">保存</a>
                <a href="javascript:;" onclick="history.go(-1);" class="btn btn-danger">取消</a>
                
            </div>
        </div>
    </div>
</div>


<script type="text/template" id="sortWrap">
<div class="row">
    <div class="col-sm-6">
        <div class="sortTree"></div>
    </div>
    <div class="col-sm-2 height40">
        <a class="btn btn-danger btn-xs del-sort-btn" href="javascript:;">-</a>
        <a class="btn btn-info btn-xs add-sort-btn" href="javascript:;">+</a>
    </div>
</div>
</script>