{% 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 == '' %} {% set readonly = 'readonly onfocus=this.removeAttribute(\'readonly\');' %} {% endif %} #} {%- endmacro %} {%- macro checkbox(id, name='', checked='', title='', value='', desc='', disabled='') -%} {% if name == '' %} {% set name = id %} {% endif %} {% if disabled == 'true' %} {% set disabled = 'disabled' %} {% endif %} {%- endmacro %} {%- macro select(id, values, name='', required='', first='', class='', selected='', disabled='true') -%} {% if name == '' %} {% set name = id %} {% endif %} {% if disabled == 'true' %} {% set disabled = 'disabled' %} {% else %} {% set disabled = '' %} {% endif %} {%- endmacro %} {%- macro copy_to_clipboard(id='', value='', show='', style='', class='') -%} {% if show == '' %} {% set show = value %} {% endif %} {{show}} {%- endmacro %}