...
|
...
|
@@ -362,7 +362,7 @@ |
|
|
<label class="radio-inline">
|
|
|
<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"/>
|
|
|
<input type="hidden" id="attr_[[__index]]" value="[[val||'']]" [[required]] for="checkbox" placeholder="[[attributeName]]"/>
|
|
|
[[/if]]
|
|
|
|
|
|
[[if inputType=='radio']]
|
...
|
...
|
@@ -370,11 +370,12 @@ |
|
|
<label class="radio-inline">
|
|
|
<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="radio"/>
|
|
|
<input type="hidden" id="attr_[[__index]]" data-index='[[__index]]' value="[[val||'']]" [[required]] for="radio" placeholder="[[attributeName]]" />
|
|
|
[[/if]]
|
|
|
|
|
|
[[if inputType=='select']]
|
|
|
<select class="form-control attr_input" data-index='[[__index]]' value="[[val||'']]" [[required]]>
|
|
|
<option value="">请选择</option>
|
|
|
[[each idNameList as item index ]]
|
|
|
<option value="[[item.text]]">[[item.text]]</option>
|
|
|
[[/each]]
|
...
|
...
|
@@ -382,10 +383,10 @@ |
|
|
[[/if]]
|
|
|
|
|
|
[[if inputType=='text']]
|
|
|
<input type="text" class="form-control attr_input" data-index='[[__index]]' value="[[val||'']]" [[required]] maxlength='[[maxValueLen]]'/>
|
|
|
<input type="text" class="form-control attr_input" data-index='[[__index]]' value="[[val||'']]" [[required]] maxlength='[[maxValueLen]]' placeholder="[[attributeName]]"/>
|
|
|
[[/if]]
|
|
|
[[if inputType=='textarea']]
|
|
|
<textarea class="form-control attr_input" data-index='[[__index]]' [[required]] maxlength='[[maxValueLen]]'>[[val||'']]</textarea>
|
|
|
<textarea class="form-control attr_input" data-index='[[__index]]' [[required]] maxlength='[[maxValueLen]]' placeholder="[[attributeName]]">[[val||'']]</textarea>
|
|
|
[[/if]]
|
|
|
</div>
|
|
|
</script> |
|
|
\ No newline at end of file |
...
|
...
|
|