Sha256: 80811b4ef6d290658d6e743e15a83c4e832f82abbb2e41b11bb7bad88f9d54d8
Contents?: true
Size: 1018 Bytes
Versions: 8
Compression:
Stored size: 1018 Bytes
Contents
{%- comment -%} Form: type image @param :field [Integer] El campo del formulario @param :image_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]['path'].label[site.locale] -%} {%- assign help = include.field[1]['path'].help[site.locale] -%} <label>{{ label }}</label> <div class="custom-file"> <input {% if help %} aria-describedby="help-{{ id }}" {% endif %} {% if include.field[1].required %} required {% endif %} type="{{ include.field[1].type }}" name="{{ name }}[path]" id="{{ id }}_path" accept="image/*" class="custom-file-input {{ include.image_class }}" /> <label for="{{ id }}_path" class="custom-file-label"> {{ label }} {% if include.field[1].required %}*{% endif %} </label> {%- if help -%} <small id="help-{{ id }}" class="form-text"> {{ help }} </small> {%- endif -%} </div>
Version data entries
8 entries across 8 versions & 2 rubygems