Sha256: cd6cd41f3facd9d9ee0c19f0ac98f0f3b42286573c34b84d281387c4945dff10

Contents?: true

Size: 863 Bytes

Versions: 39

Compression:

Stored size: 863 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>

  <input
    {% if help %}
      aria-describedby="help-{{ id }}"
    {% endif %}
    {% if include.field[1].required %}
      required
    {% endif %}
    type="{{ include.field[1].type }}"
    name="{{ name }}"
    id="{{ id }}"
    {% if autocomplete %}
      autocomplete="{{ autocomplete }}"
    {% endif %}
    class="form-control" />

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

Version data entries

39 entries across 39 versions & 6 rubygems

Version Path
radios-comunitarias-jekyll-theme-0.1.4 _includes/input.html
recursero-jekyll-theme-0.1.2 _includes/input.html
editorial-autogestiva-jekyll-theme-0.2.8 _includes/input.html
recursero-jekyll-theme-0.1.1 _includes/input.html
recursero-jekyll-theme-0.1.0 _includes/input.html
radios-comunitarias-jekyll-theme-0.1.3 _includes/input.html
radios-comunitarias-jekyll-theme-0.1.1 _includes/input.html
radios-comunitarias-jekyll-theme-0.1.0 _includes/input.html
adhesiones-jekyll-theme-0.2.1 _includes/input.html
adhesiones-jekyll-theme-0.2.0 _includes/input.html
adhesiones-jekyll-theme-0.1.2 _includes/input.html
adhesiones-jekyll-theme-0.1.1 _includes/input.html
share-to-fediverse-jekyll-theme-0.1.4 _includes/input.html
share-to-fediverse-jekyll-theme-0.1.3 _includes/input.html
share-to-fediverse-jekyll-theme-0.1.2 _includes/input.html
adhesiones-jekyll-theme-0.1.0 _includes/input.html
share-to-fediverse-jekyll-theme-0.1.1 _includes/input.html
sutty-donaciones-jekyll-theme-0.1.2 _includes/input.html
editorial-autogestiva-jekyll-theme-0.2.7 _includes/form/input.html