-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform.html
More file actions
35 lines (34 loc) · 1.46 KB
/
form.html
File metadata and controls
35 lines (34 loc) · 1.46 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
<form class="form-horizontal" action="javascript: form.send({ {{form}}{{if identifier|notempty}}'{{identifier}}':'#{{identifier}}',{{/if}}{{/form}} },'{{request.request}}','{{request.page}}');" role="form">
{{if header|notequals>}}<h3>{{header}}</h3>{{/if}}
{{form}}
{{if type|equals>description}}
<div class="form-group">
<label class="col-sm-2 control-label"></label>
<div class="col-sm-10"><p class="text-primary form-control-static">{{description}}</p></div>
</div>
{{else}}
<div class="form-group">
<label for="{{identifier}}" class="col-sm-2 control-label">{{label}}</label>
<div class="col-sm-10">
{{if type|equals>text}}
<input type="text" class="form-control" id="{{identifier}}" value="{{if value|notempty}}{{value|htmlescape}}{{/if}}" placeholder="{{label}}">
{{else}}
{{if type|equals>password}}
<input type="password" class="form-control" id="{{identifier}}" value="{{if value|notequals>null}}{{value|htmlescape}}{{/if}}" placeholder="{{label}}">
{{else}}
{{if type|equals>textarea}}
<textarea class="form-control" rows="3" placeholder="{{label}}" id="{{identifier}}">{{if value|notequals>null}}{{value|htmlescape}}{{/if}}</textarea>
{{else}}
{{/if}}
{{/if}}
{{/if}}
</div>
</div>
{{/if}}
{{/form}}
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-default">Save Data</button>
</div>
</div>
</form>