add.html
6.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<input type="hidden" name="row[model_id]" value="{$model_id}"/>
<input type="hidden" name="row[diyform_id]" value="{$diyform_id}"/>
<div class="form-group">
<label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
</div>
</div>
<div class="form-group">
<label for="c-type" class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
<div class="col-xs-12 col-sm-4">
<select name="row[type]" id="c-type" class="form-control selectpicker">
{volist name="typeList" id="type"}
<option value="{$key}">{$type}</option>
{/volist}
</select>
</div>
</div>
<div class="form-group hidden tf tf-number">
<label for="c-decimals" class="control-label col-xs-12 col-sm-2">{:__('Decimals')}:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-decimals" class="form-control" name="row[decimals]" type="number" value="0">
</div>
</div>
<div class="form-group hidden tf tf-checkbox">
<label for="c-minimum" class="control-label col-xs-12 col-sm-2">{:__('Minimum')}:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-minimum" class="form-control" name="row[minimum]" type="number">
</div>
</div>
<div class="form-group hidden tf tf-selects tf-images tf-files tf-checkbox">
<label for="c-maximum" class="control-label col-xs-12 col-sm-2">{:__('Maximum')}:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-maximum" class="form-control" name="row[maximum]" type="number">
</div>
</div>
<div class="form-group">
<label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text">
</div>
</div>
<div class="form-group hidden tf tf-select tf-selects tf-checkbox tf-radio tf-array tf-custom">
<label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
<div class="col-xs-12 col-sm-8">
<textarea id="c-content" data-rule="required" class="form-control" name="row[content]">value1|title1
value2|title2</textarea>
</div>
</div>
<div class="form-group">
<label for="c-defaultvalue" class="control-label col-xs-12 col-sm-2">{:__('Defaultvalue')}:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-defaultvalue" class="form-control" name="row[defaultvalue]" type="text">
</div>
</div>
<div class="form-group">
<label for="c-rule" class="control-label col-xs-12 col-sm-2">{:__('Rule')}:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-rule" class="form-control selectpage" data-source="cms/fields/rulelist" data-multiple="true" name="row[rule]" type="text">
</div>
</div>
<div class="form-group">
<label for="c-msg" class="control-label col-xs-12 col-sm-2">{:__('Validate Msg')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-msg" class="form-control" name="row[msg]" type="text">
</div>
</div>
<div class="form-group">
<label for="c-ok" class="control-label col-xs-12 col-sm-2">{:__('Validate Ok')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-ok" class="form-control" name="row[ok]" type="text">
</div>
</div>
<div class="form-group">
<label for="c-tip" class="control-label col-xs-12 col-sm-2">{:__('Validate Tip')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-tip" class="form-control" name="row[tip]" type="text">
</div>
</div>
<div class="form-group">
<label for="c-length" class="control-label col-xs-12 col-sm-2">{:__('Length')}:</label>
<div class="col-xs-12 col-sm-4">
<input id="c-length" data-rule="required" class="form-control" name="row[length]" type="number" value="255">
</div>
</div>
<div class="form-group hidden tf tf-select tf-selects tf-checkbox tf-radio tf-array">
<label class="control-label col-xs-12 col-sm-2">{:__('Isfilter')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-isfilter" name="row[isfilter]" type="hidden" value="0">
<a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-isfilter" data-yes="1" data-no="0" >
<i class="fa fa-toggle-on text-success fa-flip-horizontal text-gray fa-2x"></i>
</a>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Iscontribute')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-iscontribute" name="row[iscontribute]" type="hidden" value="0">
<a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-iscontribute" data-yes="1" data-no="0" >
<i class="fa fa-toggle-on text-success fa-flip-horizontal text-gray fa-2x"></i>
</a>
</div>
</div>
<div class="form-group">
<label for="c-extend" class="control-label col-xs-12 col-sm-2">{:__('Extend')}:</label>
<div class="col-xs-12 col-sm-8">
<textarea id="c-extend" class="form-control" name="row[extend]"></textarea>
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="radio">
{foreach name="statusList" item="vo"}
<label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="normal" }checked{/in} /> {$vo}</label>
{/foreach}
</div>
</div>
</div>
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">
<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
</div>
</div>
</form>