aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/field_select.tpl
diff options
context:
space:
mode:
authorme <none@none.me>2020-11-14 23:37:18 +0100
committerme <none@none.me>2020-11-14 23:37:18 +0100
commit78f150cfbc1b713bfba3101fdc3f1fd624120637 (patch)
tree8c0ac65880da053c8f0b2e35908540702a058820 /view/tpl/field_select.tpl
parent06273e980e7aa978d0145f1e5ecd92cbc2aef66e (diff)
downloadvolse-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_select.tpl')
-rw-r--r--[-rwxr-xr-x]view/tpl/field_select.tpl16
1 files changed, 15 insertions, 1 deletions
diff --git a/view/tpl/field_select.tpl b/view/tpl/field_select.tpl
index 8c3776841..6c090ceb5 100755..100644
--- a/view/tpl/field_select.tpl
+++ b/view/tpl/field_select.tpl
@@ -1,7 +1,21 @@
<div class="form-group">
- <label for="id_{{$field.0}}">{{$field.1}}</label>
+ <label for="id_{{$field.0}}">{{$field.1}}{{if $field.5}}<sup class="required zuiqmid"> {{$field.5}}</sup>{{/if}}</label>
<select class="form-control" name="{{$field.0}}" id="id_{{$field.0}}">
{{foreach $field.4 as $opt=>$val}}<option value="{{$opt}}" {{if $opt==$field.2}}selected="selected"{{/if}}>{{$val}}</option>{{/foreach}}
</select>
<small class="form-text text-muted">{{$field.3}}</small >
</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 small text
+ .1 label text
+ .2 selected field
+ .3 form text
+ .4 option value(s)
+ .5 label text addition, used for qmc
+ css classes used:
+ .required, .code
+ .form-group, .form-control, .form-text, .text-muted
+*}}