add_info.html 2.54 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>
        <a id="clearAddInfo" href="javascript:;" class="btn btn-primary">清空</a>
    </div>
</div>

<script type="text/template" id="addInfoTemp">
    [[each data as b index]]
        [[if b.attributeName != '流行元素']]
        <div class="attribute-group form-group">
            [[if b.attributeName == '制作工艺']]
                <label>工艺元素:</label>
            [[else]]
                <label>[[b.attributeName]]</label>
            [[/if]]
            [[if b.inputType=='select']]
                <div style="display: inline-block;width: 280px;">
                    <select class="form-control" id="[[b.attributeId]]" value="[[b.selectedValues||'']]">
                        <option value="">请选择</option>
                        [[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>
        [[/if]]
    [[/each]]

    <div class="form-group">
        <label>促销短语:</label>
        <input id="salesPhrase" class="form-control" type="text" value="[[salesPhrase]]" style="display: inline-block;width: 280px;" maxlength="12">
    </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>