brand-relation.html 1.69 KB
<div class="panel panel-default">
    <div class="panel-heading">
      <a class="netsale-position" href="javascript:;" name="position11"></a>
        <div class="panel-btns" style="display: none;">
            <a href="" class="panel-minimize tooltips" data-toggle="tooltip" title=""><i class="fa fa-minus"></i></a>
        </div>
        <h2 class="panel-title">(商品)品牌关联</h2>
    </div>
    <div id="brandWrap" class="panel-body">
        <div class="form-group selected-brand" style="min-height: 60px;">
            
            
        </div>
        <div class="form-group brand-list">
        </div>
    </div>
    <div class="panel-footer">
        <a id="saveBrandRelation" href="javascript:;" class="btn btn-primary">保存</a>
    </div>
</div>

<script type="text/template" id="brandTemp">
    [[each map as item index]]
    <div class="form-group">
        <div class="col-sm-1" style="text-align:center;">[[index]]</div>
        <div class="col-sm-10">
            [[each item as a index]]
            <div class="col-sm-2 ckbox ckbox-default">
                <input id="brand-[[a.brandName]]" name="brandRelationList" type="checkbox" value="[[a.id]]" data-name="[[a.brandName]]">
                <label style="width:80%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;" for="brand-[[a.brandName]]">[[a.brandName]]</label>
            </div>
            [[/each]]
        </div>
    </div>
    [[/each]]
</script>
<script type="text/template" id="brandShowTemp">
    <input id="brandRelationList" type="hidden" value="[[brandRelation]]" for="checkbox">
    [[each brandRelationList as a index]]
    <div class="col-sm-2" data-id="[[a.brandId]]">[[a.brandName]]</div>
    [[/each]]
</script>