diff --git a/app/templates/include/input_macros.html b/app/templates/include/input_macros.html index 510dc819..2671664e 100644 --- a/app/templates/include/input_macros.html +++ b/app/templates/include/input_macros.html @@ -1,11 +1,11 @@ -{% macro input(id, name='', value='', type='text', size='', readonly='', required='', placeholder='', title='', class='form-control', style='') -%} +{% macro input(id, name='', value='', type='text', size='', readonly='', required='', placeholder='', autofocus='', title='', class='form-control', style='') -%} {% if name == '' %} {% set name = id %} {% endif %} - {% if readonly == '' %} + {# {% if readonly == '' %} {% set readonly = 'readonly onfocus=this.removeAttribute(\'readonly\');' %} - {% endif %} - + {% endif %} #} + {%- endmacro %} {%- macro checkbox(id, name='', checked='', title='', value='', desc='') -%}