Browse Source

use placeholder instead of labels

master
Dom SP 3 years ago
parent
commit
7e08f92105
1 changed files with 8 additions and 4 deletions
  1. +8
    -4
      app/views/form.htm

+ 8
- 4
app/views/form.htm View File

@@ -9,8 +9,9 @@
type="{{ @info.type }}"
size="{{ @info.length }}"
value="{{ @info.value }}"
placeholder="{{ @info.description }}"
{{ @info.required ? 'required' : '' }} />
<label for="{{ @name }}">{{ @info.description }}</label><br>
<!--<label for="{{ @name }}">{{ @info.description }}</label>--><br>
</true>
</check>
@@ -30,8 +31,10 @@
name="{{ @name }}"
id="{{ @name }}"
cols="{{ @info.cols }}"
rows="{{ @info.rows }}" >{{ @info.value }}</textarea>
<label for="{{ @name }}">{{ @info.description }}</label><br>
rows="{{ @info.rows }}"
placeholder="{{ @info.description }}">{{ @info.value }}</textarea>
<!--<label for="{{ @name }}">{{ @info.description }}</label>-->
<br>
</true>
</check>
@@ -52,6 +55,7 @@
<check if="{{ @info.type == 'radio' }}">
<true>
<div class="radio-group {{ @name }}">
<repeat group="{{ @info.options }}" key="{{ @key }}" value="{{ @val }}">
<input
type="radio"
@@ -63,7 +67,7 @@
<label for="{{ sprintf('%s-%s',@name,@key) }}">
{{ @val }}</label>
</repeat>
<br>
</div>
</true>
</check>


Loading…
Cancel
Save