Sha256: 99e009003cea8a0e7d7c072e5e11581af697855aa4ef63be9d999c481718a470

Contents?: true

Size: 1.12 KB

Versions: 55

Compression:

Stored size: 1.12 KB

Contents

{% assign options = include.options | split: "|" %}
{% assign question_slug = include.question | slugify %}

<div id="control-input__{{ question_slug}}" class="{{ include.className}}">
  <label class="uikit-text-input__label" id="control-input__{{ question_slug}}">{{include.question}}</label>
  {% for option in options %}
    {% assign option_slug = option | slugify %}
    <p>
    <label
      class="uikit-control-input"
      for="{{ question_slug }}__{{ option_slug }}">
      <input
        {% if include.required %}data-parsley-required{% endif %}
        aria-describedby="control-input--{{ question_slug}}"
        class="uikit-control-input__input"
        id="{{ question_slug }}__{{ option_slug }}"
        name="{{ question_slug }}"
        type="{{ include.type | default: 'radio' }}"
        data-parsley-errors-container="#control-input__{{ question_slug }}"
        data-parsley-error-message="{{ include.validation_message }}"
        data-value="{{ option }}"
        value="{{ question_slug }}__{{ option_slug }}">
        <span class="uikit-control-input__text">{{ option }}</span>
      </label>
    </p>
  {% endfor %}
</div>

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
dta_rapid-1.6.2 _includes/forms/control-input.html
dta_rapid-1.6.1 _includes/forms/control-input.html
dta_rapid-1.6.0 _includes/forms/control-input.html
dta_rapid-1.5.12 _includes/forms/control-input.html
dta_rapid-1.4.12 _includes/forms/control-input.html
dta_rapid-1.4.11 _includes/forms/control-input.html
dta_rapid-1.4.10 _includes/forms/control-input.html
dta_rapid-1.4.9 _includes/forms/control-input.html
dta_rapid-1.4.8 _includes/forms/control-input.html
dta_rapid-1.4.7 _includes/forms/control-input.html
dta_rapid-1.4.6 _includes/forms/control-input.html
dta_rapid-1.4.5 _includes/forms/control-input.html
dta_rapid-1.4.4 _includes/forms/control-input.html
dta_rapid-1.4.3 _includes/forms/control-input.html
dta_rapid-1.4.2 _includes/forms/control-input.html
dta_rapid-1.4.1 _includes/forms/control-input.html
dta_rapid-1.4.0 _includes/forms/control-input.html
dta_rapid-1.3.11 _includes/forms/control-input.html
dta_rapid-1.3.10 _includes/forms/control-input.html
dta_rapid-1.3.9 _includes/forms/control-input.html