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

type="{{ @info.type }}" type="{{ @info.type }}"
size="{{ @info.length }}" size="{{ @info.length }}"
value="{{ @info.value }}" value="{{ @info.value }}"
placeholder="{{ @info.description }}"
{{ @info.required ? 'required' : '' }} /> {{ @info.required ? 'required' : '' }} />
<label for="{{ @name }}">{{ @info.description }}</label><br>
<!--<label for="{{ @name }}">{{ @info.description }}</label>--><br>
</true> </true>
</check> </check>
name="{{ @name }}" name="{{ @name }}"
id="{{ @name }}" id="{{ @name }}"
cols="{{ @info.cols }}" 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> </true>
</check> </check>
<check if="{{ @info.type == 'radio' }}"> <check if="{{ @info.type == 'radio' }}">
<true> <true>
<div class="radio-group {{ @name }}">
<repeat group="{{ @info.options }}" key="{{ @key }}" value="{{ @val }}"> <repeat group="{{ @info.options }}" key="{{ @key }}" value="{{ @val }}">
<input <input
type="radio" type="radio"
<label for="{{ sprintf('%s-%s',@name,@key) }}"> <label for="{{ sprintf('%s-%s',@name,@key) }}">
{{ @val }}</label> {{ @val }}</label>
</repeat> </repeat>
<br>
</div>
</true> </true>
</check> </check>



Loading…
Cancel
Save