Sha256: 57c80060280e4a41fbdc54c148b3d3b770f1366ef1732fa87ba305135ea11fb3

Contents?: true

Size: 1003 Bytes

Versions: 62

Compression:

Stored size: 1003 Bytes

Contents

{%- 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">

    <option value="" selected></option>

    {%- for option in include.field[1].values -%}
      <option value="{{ option }}">{{ option }}</option>
    {%- endfor -%}
  </select>

  {%- if help -%}
    <small id="help-{{ id }}" class="form-text">
      {{ help }}
    </small>
  {%- endif -%}
</div>

Version data entries

62 entries across 62 versions & 8 rubygems

Version Path
empresa-recuperada-jekyll-theme-0.2.6 _includes/predefined_array.html
empresa-recuperada-jekyll-theme-0.2.5 _includes/predefined_array.html
empresa-recuperada-jekyll-theme-0.2.4 _includes/predefined_array.html
empresa-recuperada-jekyll-theme-0.2.3 _includes/predefined_array.html
empresa-recuperada-jekyll-theme-0.2.2 _includes/predefined_array.html
empresa-recuperada-jekyll-theme-0.2.1 _includes/predefined_array.html
empresa-recuperada-jekyll-theme-0.2.0 _includes/predefined_array.html
adhesiones-jekyll-theme-0.4.1 _includes/predefined_array.html
sutty-donaciones-jekyll-theme-0.3.0rc0 _includes/predefined_array.html
editorial-autogestiva-jekyll-theme-0.5.0rc0 _includes/predefined_array.html
radios-comunitarias-jekyll-theme-0.3.0rc0 _includes/predefined_array.html
adhesiones-jekyll-theme-0.4.0 _includes/predefined_array.html
observatorio-jekyll-theme-0.1.7 _includes/predefined_array.html
adhesiones-jekyll-theme-0.3.2 _includes/predefined_array.html
adhesiones-jekyll-theme-0.3.1 _includes/predefined_array.html
recursero-jekyll-theme-0.3.0 _includes/predefined_array.html
editorial-autogestiva-jekyll-theme-0.4.2 _includes/predefined_array.html
adhesiones-jekyll-theme-0.3.0 _includes/predefined_array.html
sutty-donaciones-jekyll-theme-0.2.0 _includes/predefined_array.html
radios-comunitarias-jekyll-theme-0.2.0 _includes/predefined_array.html