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.0.0 _includes/forms/control-input.html
dta_rapid-0.7.14 _includes/forms/control-input.html
dta_rapid-0.7.13 _includes/forms/control-input.html
dta_rapid-0.7.12 _includes/forms/control-input.html
dta_rapid-0.7.11 _includes/forms/control-input.html
dta_rapid-0.7.10 _includes/forms/control-input.html
dta_rapid-0.7.9 _includes/forms/control-input.html
dta_rapid-0.7.8 _includes/forms/control-input.html
dta_rapid-0.7.7 _includes/forms/control-input.html
dta_rapid-0.7.6 _includes/forms/control-input.html
dta_rapid-0.7.5 _includes/forms/control-input.html
dta_rapid-0.7.4 _includes/forms/control-input.html
dta_rapid-0.7.3 _includes/forms/control-input.html
dta_rapid-0.7.2 _includes/forms/control-input.html
dta_rapid-0.7.1 _includes/forms/control-input.html