Sha256: 9cf4757172195508d32c7ac3597597338ad79d4dc9c273eb33cecfd3475db7be
Contents?: true
Size: 1.18 KB
Versions: 9
Compression:
Stored size: 1.18 KB
Contents
{%- comment -%} Form: type predefined_array @param :field [Integer] El campo del formulario @param :array_class [String] Las clases del componente {%- endcomment -%} {%- assign name = include.field[0] -%} {%- assign id = include.field[1].id | default: name -%} {%- assign label = include.field[1].label[site.locale] -%} {%- assign help = include.field[1].help[site.locale] -%} {%- assign autocomplete = include.field[1].autocomplete -%} <div class="form-group"> <label for="{{ id }}"> {{ label }} {% if include.field[1].required %}*{% endif %} </label> <select {% if help %} aria-describedby="help-{{ id }}" {% endif %} {% if include.field[1].required %} required {% endif %} name="{{ name }}" id="{{ id }}" {% if autocomplete %} autocomplete="{{ autocomplete }}" {% endif %} class="form-control {{ include.array_class }}"> <option value="" selected></option> {%- for option in include.field[1].values[site.locale] -%} <option value="{{ option }}">{{ option }}</option> {%- endfor -%} </select> {%- if help -%} <small id="help-{{ id }}" class="form-text"> {{ help }} </small> {%- endif -%} </div>
Version data entries
9 entries across 9 versions & 2 rubygems