...
|
...
|
@@ -224,12 +224,12 @@ |
|
|
<label class="col-sm-2 control-label">适销季<span class="red">*</span></label>
|
|
|
<div class="col-sm-2">
|
|
|
<label class="radio-inline">
|
|
|
<input type="checkbox" name="seasons" value="1">夏</label>
|
|
|
<input type="checkbox" name="seasons" value="summer">夏</label>
|
|
|
<label class="radio-inline">
|
|
|
<input type="checkbox" name="seasons" value="2">冬</label>
|
|
|
<input type="checkbox" name="seasons" value="winter">冬</label>
|
|
|
<label class="radio-inline">
|
|
|
<input type="checkbox" name="seasons" value="3">四季</label>
|
|
|
<input type="hidden" id="seasons" name="seasons" value="[[seasons||'1']]" for="checkbox" placeholder="年龄层" />
|
|
|
<input type="checkbox" name="seasons" value="seasons">四季</label>
|
|
|
<input type="hidden" id="seasons" name="seasons" value="[[seasons||'seasons']]" for="checkbox" placeholder="年龄层" />
|
|
|
</div>
|
|
|
[[else]]
|
|
|
<div class="col-sm-4"></div>
|
...
|
...
|
@@ -358,25 +358,25 @@ |
|
|
<script type="text/template" id="template3">
|
|
|
<div class="form-group">
|
|
|
[[if inputType=='checkbox']]
|
|
|
[[each attributeValues as item index ]]
|
|
|
[[each idNameList as item index ]]
|
|
|
<label class="radio-inline">
|
|
|
<input type="checkbox" name="attr_[[__index]]" data-index=[[__index]] class="attr_checkobx_class" value="[[item.name]]">[[item.name]]</label>
|
|
|
<input type="checkbox" name="attr_[[__index]]" data-index=[[__index]] class="attr_checkobx_class" value="[[item.text]]">[[item.text]]</label>
|
|
|
[[/each]]
|
|
|
<input type="hidden" id="attr_[[__index]]" value="[[val||'']]" [[required]] for="checkbox"/>
|
|
|
[[/if]]
|
|
|
|
|
|
[[if inputType=='radio']]
|
|
|
[[each attributeValues as item index ]]
|
|
|
[[each idNameList as item index ]]
|
|
|
<label class="radio-inline">
|
|
|
<input type="radio" name="attr_[[__index]]" data-index=[[__index]] class="attr_input" value="">[[item.name]]</label>
|
|
|
<input type="radio" name="attr_[[__index]]" data-index=[[__index]] class="attr_input" value="[[item.text]]">[[item.text]]</label>
|
|
|
[[/each]]
|
|
|
<input type="hidden" id="attr_[[__index]]" data-index='[[__index]]' value="[[val||'']]" [[required]] for="checkbox"/>
|
|
|
[[/if]]
|
|
|
|
|
|
[[if inputType=='select']]
|
|
|
<select class="form-control attr_input" data-index='[[__index]]' value="[[val||'']]" [[required]]>
|
|
|
[[each attributeValues as item index ]]
|
|
|
<option>[[item.name]]</option>
|
|
|
[[each idNameList as item index ]]
|
|
|
<option value="[[item.text]]">[[item.text]]</option>
|
|
|
[[/each]]
|
|
|
</select>
|
|
|
[[/if]]
|
...
|
...
|
|