Explorar el Código

make textare and input type text can have maxlength attributes

master
Dominik Schmidt-Philipp hace 1 día
padre
commit
213969051c
Se han modificado 1 ficheros con 14 adiciones y 2 borrados
  1. +14
    -2
      app/views/form.htm

+ 14
- 2
app/views/form.htm Ver fichero

@@ -10,7 +10,13 @@
size="{{ array_key_exists('length',@info) ? @info.length : 20 }}"
value="{{ array_key_exists('value',@info) ? @info.value : '' }}"
placeholder="{{ @info.description }}"
{{ (array_key_exists('required',@info) && @info.required ) ? 'required' : '' }} />
{{ (array_key_exists('required',@info) && @info.required ) ? 'required' : '' }}
<check if="{{ isset(@info.maxlength) }}">
<true>
maxlength="{{ @info.maxlength }}"
</true>
</check>
/>
<!--<label for="{{ @name }}">{{ @info.description }}</label>--><br>
</true>
</check>
@@ -32,7 +38,13 @@
id="{{ @name }}"
cols="{{ @info.cols }}"
rows="{{ @info.rows }}"
placeholder="{{ @info.description }}">{{ @info.value }}</textarea>
placeholder="{{ @info.description }}"
<check if="{{ isset(@info.maxlength) }}">
<true>
maxlength="{{ @info.maxlength }}"
</true>
</check>
>{{ @info.value }}</textarea>
<!--<label for="{{ @name }}">{{ @info.description }}</label>-->
<br>
</true>

Cargando…
Cancelar
Guardar