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

Version Path
editorial-autogestiva-jekyll-theme-0.5.0rc7 _includes/image.html
editorial-autogestiva-jekyll-theme-0.5.0rc6 _includes/image.html
editorial-autogestiva-jekyll-theme-0.5.0rc5 _includes/image.html
editorial-autogestiva-jekyll-theme-0.5.0rc4 _includes/image.html
editorial-autogestiva-jekyll-theme-0.5.0rc3 _includes/image.html
editorial-autogestiva-jekyll-theme-0.5.0rc2 _includes/image.html
editorial-autogestiva-jekyll-theme-0.5.0rc1 _includes/image.html
radios-comunitarias-jekyll-theme-0.3.0rc1 _includes/image.html