From 2459d8940dbb6d21122a69af3b9763f814f6102b Mon Sep 17 00:00:00 2001 From: Pavel Loginov Date: Wed, 5 Aug 2020 15:29:21 +0200 Subject: [PATCH] v4.4.1.0 Changelog: https://haproxy-wi.org/changelog.py#4_4_1 --- app/templates/include/input_macros.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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='') -%}