Sha256: 052467d72f2adc43d4368b3594cd50d8ae130569730a113b20cad68275f9e988
Contents?: true
Size: 1.08 KB
Versions: 9
Compression:
Stored size: 1.08 KB
Contents
{%- comment -%} Form: type file @param :field [Integer] El campo del formulario @param :file_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] -%} {%- assign accept = include.field[1].accept -%} <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" {% if accept %} accept="{{ accept }}" {% endif %} class="custom-file-input {{ include.file_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
9 entries across 9 versions & 2 rubygems