diff options
author | me <none@none.me> | 2020-11-14 23:37:18 +0100 |
---|---|---|
committer | me <none@none.me> | 2020-11-14 23:37:18 +0100 |
commit | 78f150cfbc1b713bfba3101fdc3f1fd624120637 (patch) | |
tree | 8c0ac65880da053c8f0b2e35908540702a058820 /view/tpl/field_input.tpl | |
parent | 06273e980e7aa978d0145f1e5ecd92cbc2aef66e (diff) | |
download | volse-hubzilla-78f150cfbc1b713bfba3101fdc3f1fd624120637.tar.gz volse-hubzilla-78f150cfbc1b713bfba3101fdc3f1fd624120637.tar.bz2 volse-hubzilla-78f150cfbc1b713bfba3101fdc3f1fd624120637.zip |
air.s1: field templates checkbox/input/select and one new
Diffstat (limited to 'view/tpl/field_input.tpl')
-rw-r--r--[-rwxr-xr-x] | view/tpl/field_input.tpl | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/view/tpl/field_input.tpl b/view/tpl/field_input.tpl index 65a837e5f..53139a0e7 100755..100644 --- a/view/tpl/field_input.tpl +++ b/view/tpl/field_input.tpl @@ -1,5 +1,19 @@ <div id="id_{{$field.0}}_wrapper" class="form-group"> - <label for="id_{{$field.0}}" id="label_{{$field.0}}">{{$field.1}}{{if $field.4}}<span class="required"> {{$field.4}}</span>{{/if}}</label> + <label for="id_{{$field.0}}" id="label_{{$field.0}}">{{$field.1}}{{if $field.4}}<sup class="required zuiqmid"> {{$field.4}}</sup>{{/if}}</label> <input class="form-control" name="{{$field.0}}" id="id_{{$field.0}}" type="text" value="{{$field.2}}"{{if $field.5}} {{$field.5}}{{/if}}> - <small id="help_{{$field.0}}" class="form-text text-muted">{{$field.3}}</small> + <span id="help_{{$field.0}}" class="form-text text-muted">{{$field.3}}</span> </div> +{{* + COMMENTS for this template: + @author hilmar runge, 2020.01 + $field array index: + .0 field name: name=... for input, id=id_... for input, id=label_... for label, id=help_... for text + .1 label text + .2 field value + .3 help text + .4 label text addition, used for qmc + .5 additional html attributes + css classes used: + .required, .code + .form-control, .form-text, .text-muted +*}} |