Sha256: 877e199e2d4cf97c207f20e24eac7797105ab033bd3937db94f4bfefdee3ca0f

Contents?: true

Size: 1014 Bytes

Versions: 9

Compression:

Stored size: 1014 Bytes

Contents

{%- comment -%}

Form: type boolean

@param :field [Integer] El campo del formulario
@param :boolean_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].label[site.locale] -%}
{%- assign help = include.field[1].help[site.locale] -%}
{%- assign autocomplete = include.field[1].autocomplete -%}

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

  <label class="form-check-label" for="{{ id }}">{{ label }}</label>

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

Version data entries

9 entries across 9 versions & 2 rubygems

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