Sha256: 0c6c06c16f784d3ac7de35180a6c8c8baf3d98fcbde833c6e9c91b1df37bdf60

Contents?: true

Size: 1.32 KB

Versions: 84

Compression:

Stored size: 1.32 KB

Contents

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

<div class="multiple-choice {{ include.className}}">
  <label class="multiple-choice__label" id="q-{{ question_slug }}">{{ include.question }}</label>
  {% if include.hint %}
    <label class="multiple-choice__hint">{{ include.hint }}</label>
  {% endif %}
  <ul class="multiple-choice__list">
    {% for option in options %}
      {% assign option_slug = option | slugify %}
      <li class="multiple-choice__option">
        <input
          {% if include.required %}data-parsley-required{% endif %}
          aria-describedby="q-{{ question_slug}}"
          class="multiple-choice__input"
          id="{{ question_slug }}__{{ option_slug }}"
          name="{{ question_slug }}"
          type="{{ include.type | default: 'radio' }}"
          data-parsley-errors-container="#parent__{{ question_slug }}"
          data-parsley-error-message="{{ include.validation_message }}"
          value="{{ question_slug }}__{{ option_slug }}">
        <label
          class="multiple-choice__option-label"
          for="{{ question_slug }}__{{ option_slug }}">{{ option }}</label>
      </li>
    {% endfor %}
  </ul>
  {% if include.description %}
    <p class="multiple-choice__description">{{ include.description }}</p>
  {% endif %}
</div>

Version data entries

84 entries across 84 versions & 1 rubygems

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