Sha256: 53ec5843eb190965b1d992f21f463bf523948107f00a801d82b7b622e16da996

Contents?: true

Size: 764 Bytes

Versions: 9

Compression:

Stored size: 764 Bytes

Contents

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

<fieldset id="parent__{{ question_slug }}">
  <legend id="q-{{ question_slug }}">{{ include.question }}</legend>
  {% for option in options %}
    {% assign option_slug = option | slugify %}
    <label for="{{ option_slug }}">
    <input
      {% if include.required %}data-parsley-required{% endif %}
      name="{{ question_slug }}"
      type="radio"
      id="{{ option_slug }}"
      value="{{ option_slug }}"
      aria-describedby="q-{{ question_slug}}"
      data-parsley-errors-container="#parent__{{ question_slug }}"
      data-parsley-error-message="{{ include.validation_message }}">
    &nbsp;{{ option }}</label>
  {% endfor %}
</fieldset>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dta_rapid-0.3.5 _includes/forms/radio-field.html
dta_rapid-0.3.4 _includes/forms/radio-field.html
dta_rapid-0.3.3 _includes/forms/radio-field.html
dta_rapid-0.3.2 _includes/forms/radio-field.html
dta_rapid-0.3.1 _includes/forms/radio-field.html
dta_rapid-0.3.0 _includes/forms/radio-field.html
dta_rapid-0.2.18 _includes/forms/radio-field.html
dta_rapid-0.2.17 _includes/forms/radio-field.html
dta_rapid-0.2.16 _includes/forms/radio-field.html