Sha256: 461c56c1257f6d2f232def0ef6f58cd303eab8f715caecb8b7d08d962033338a
Contents?: true
Size: 1.08 KB
Versions: 4
Compression:
Stored size: 1.08 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="#parent__{{ question_slug }}" data-parsley-error-message="{{ include.validation_message }}" value="{{ question_slug }}__{{ option_slug }}"> <span class="uikit-control-input__text">{{ option }}</span> </label> </p> {% endfor %} </div>
Version data entries
4 entries across 4 versions & 1 rubygems