Added the possibility to use "option" field type outside a group. This is convenient to create just a single checkbox.
This commit is contained in:
parent
64af46b685
commit
2e847460f4
10 changed files with 117 additions and 26 deletions
|
@ -49,6 +49,16 @@
|
|||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if typeOption}}
|
||||
<div class="form-group checkbox">
|
||||
<label>{{name}}</label>
|
||||
<label class="label-checkbox">
|
||||
<input type="checkbox" name="{{key}}" value="1" {{#if value}} checked {{/if}}> {{field.settings.checkedLabel}}
|
||||
</label>
|
||||
<input type="hidden" value="0" name="{{key}}">
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if typeGpg}}
|
||||
<div class="form-group gpg {{key}}">
|
||||
<label for="{{key}}">{{name}}</label>
|
||||
|
@ -117,6 +127,7 @@
|
|||
|
||||
{{#if typeCheckboxGrouped}}
|
||||
<div class="form-group checkbox">
|
||||
<input type="hidden" value="<present>" name="{{key}}">
|
||||
<label>{{name}}</label>
|
||||
{{#each options}}
|
||||
<label class="label-checkbox">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue