add-info.html 6.31 KB
<div class="panel panel-default">
    <div class="panel-heading">
        
        <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="addinfo-wrap" class="panel-body addinfo-wrap">
        
    </div>
    <div class="panel-footer">
        <a id="saveAddInfo" href="javascript:;" class="btn btn-primary">保存</a>
    </div>
</div>

<!-- <div id="productStyleWrap" class="form-group">
    <div class="col-sm-1">商品风格:</div>
    <div class="col-sm-11">
        [[each productStyle as a index]]
            [[if index=="data"]]
                [[each a as b index]]
                    [[if index=="attributeValueList"]]
                        [[each b as c index]]
                        <label style="cursor: pointer;"><input type="checkbox" name="style" value="[[c]]">[[c]]</label>
                        [[/each]]
                    [[/if]]
                [[/each]]
            [[/if]]
        [[/each]]
        <input id="style" type="hidden" for="checkbox" value="[[style]]">
    </div>
</div>
<div id="productElementsWrap" class="form-group">
    <div class="col-sm-1">图案纹理:</div>
    <div class="col-sm-11">
        [[each productElements as a index]]
            [[if index=="data"]]
                [[each a as b index]]
                    [[if index=="attributeValueList"]]
                        [[each b as c index]]
                        <label style="cursor: pointer;"><input type="checkbox" name="pattern" value="[[c]]">[[c]]</label>
                        [[/each]]
                    [[/if]]
                    
                [[/each]]
            [[/if]]
        [[/each]]
        <input id="pattern" type="hidden" for="checkbox" value="[[pattern]]">
    </div>
</div>     
<div class="making-process-wrap form-group">
        <label>制作工艺:</label>
        <span>
            [[each makingProcess as a index]]
                [[each a.items as b index]]
                    <label style="cursor: pointer;"><input type="checkbox" name="makeCrafts" value="[[b]]">[[b]]</label>
                [[/each]]
            [[/each]]
            <input id="makeCrafts" type="hidden" for="checkbox" value="[[makeCrafts]]">
        </span>
    </div>
    <div id="wearSenseWrap" class="form-group">
        <label>舒适度:</label>
        [[each productComfort as a index]]
            [[if index=="data"]]
                [[each a as b index]]
                <div style="display: inline-block;width: 140px;">
                    <label>[[b.text]]</label>
                    <select name="[[b.id]]" class="form-control">
                        <option value="">请选择</option>
                        <option value="1">1</option>
                        <option value="2">2</option>
                        <option value="3">3</option>
                        <option value="4">4</option>
                        <option value="5">5</option>
                    </select>
                    <input type="hidden" value="[[b.value]]">
                </div>
                [[/each]]
            [[/if]]
        [[/each]]
    </div>-->
<script type="text/template" id="addInfoTemp">
    [[each attributes as a index]]
        [[if index=="data"]]
            [[each a as b index]]
                <div class="attribute-group form-group">
                    <label>[[b.attributeName]]</label>
                    [[if b.inputType=='select']]
                        <div style="display: inline-block;width: 280px;">
                            <select class="form-control" id="[[b.attributeId]]" value="[[b.selectedValues||'']]">
                                [[each b.idNameList as c index]]
                                <option value="[[c.id]]">[[c.text]]</option>
                                [[/each]]
                            </select>
                        </div>
                    [[else]]
                        <span>
                        [[each b.idNameList as c index]]
                        <label style="cursor: pointer;"><input name="[[b.attributeId]]" type="[[b.inputType]]" value="[[c.id]]">[[c.text]]</label>
                        [[/each]]
                        </span>
                        <input id="[[b.attributeId]]" type="hidden" for="[[b.inputType]]" value="[[b.selectedValues||'']]">
                    [[/if]]
                    
                </div>
            [[/each]]
        [[/if]]
    [[/each]]
    <div id="brandModelWrap" class="form-group">
        <label>品牌款型:</label>
        <div style="display: inline-block;width: 280px;">
            <select name="brandModelSelect" id="brandModelSelect" tabindex="-1" title="" class="form-control" >
                [[if brandModelText]]
                <option value="[[brandModel]]">[[brandModelText]]</option>
                [[else]]
                <option value="">请选择品牌款型</option>
                [[/if]]
            </select>
        </div>
        <input type="hidden" id="brandModel" value="[[brandModel]]"> 
    </div>
    <div id="brandSeriesWrap" class="form-group">
        <label>品牌系列:</label>
        <div style="display: inline-block;width: 280px;">
            <select name="brandSeriesSelect" id="brandSeriesSelect"  tabindex="-1" title="" class="form-control">
                [[if brandSeriesText]]
                <option value="[[brandSeries]]">[[brandSeriesText]]</option> 
                [[else]]
                <option value="">请选择品牌系列</option>
                [[/if]]        
            </select>
        </div>
        <input type="hidden" id="brandSeries" value="[[brandSeries]]"> 
    </div>

    <div class="form-group">
        <label>促销短语:</label>
        <input id="salesPhrase" class="form-control" type="text" value="[[salesPhrase]]" style="display: inline-block;width: 280px;">
    </div>
    <div class="form-group">
        <label>是否热销:</label>
        <span>
            <label class="radio-inline"><input type="radio" name="isHostsell" value="Y"></label>
            <label class="radio-inline"><input type="radio" name="isHostsell" value="N"></label>
            <input id="isHostsell" type="hidden" for="radio" value="[[isHostsell]]">
        </span>
    </div>
</script>