Sha256: 8ee304493faa6f1013388c3e4d447c05ba9c85928646fbf9e11f2c879f46361f

Contents?: true

Size: 1.1 KB

Versions: 8

Compression:

Stored size: 1.1 KB

Contents

{%- comment -%}

Form: type text

@param :field [Integer] El campo del formulario
@param :text_class [String] Las clases del componente
@param :rows [String] La cantidad de filas que muestra el campo
{%- 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-group">
  <label for="{{ id }}">
    {{ label }}
    {% if include.field[1].required %}*{% endif %}
  </label>

  <textarea
    {% if help %}
      aria-describedby="help-{{ id }}"
    {% endif %}
    {% if include.field[1].required %}
      required
    {% endif %}
    name="{{ name }}"
    id="{{ id }}"
    {% if autocomplete %}
      autocomplete="{{ autocomplete }}"
    {% endif %}
    rows="{{ include.rows | default: "3" }}"
    class="form-control {{ include.text_class }}"></textarea>

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

Version data entries

8 entries across 8 versions & 1 rubygems

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