templates/v2/_yesno.html.twig line 1

Open in your IDE?
  1. <fieldset class="form-group">
  2.     <legend class="col-form-label {% if required is defined and required == true %}required{% endif %}">{{ label }}</legend>
  3.     {% if notes is defined %}<p class="form-notes text-muted"><small>{{ notes }}</small></p>{% endif %}
  4.     <div id="forms_{{ name }}" class="form-check-inline">
  5.         {% if na is defined and na == true %}
  6.             <div class="form-check">
  7.                 <input type="radio" id="forms_{{ name }}_0" name="forms[{{ name }}]"
  8.                        class="form-check-input" value="n/a">
  9.                 <label class="form-check-label required" for="forms_{{ name }}_0">n/a</label>
  10.             </div>
  11.         {% endif %}
  12.         <div class="form-check">
  13.             <input type="radio" id="forms_{{ name }}_2" name="forms[{{ name }}]"
  14.                    class="form-check-input" value="5"
  15.                    {% if required is defined and required == true %}required{% endif %}
  16.             >
  17.             <label class="form-check-label required" for="forms_{{ name }}_2">
  18.                 {# <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>#}
  19.                 Yes
  20.             </label>
  21.         </div>
  22.         <div class="form-check">
  23.             <input type="radio" id="forms_{{ name }}_1" name="forms[{{ name }}]"
  24.                    class="form-check-input" value="0"
  25.                    {% if required is defined and required == true %}required{% endif %}
  26.             >
  27.             <label class="form-check-label required" for="forms_{{ name }}_1">
  28.                 {# <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" style="vertical-align: -4px;"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>#}
  29.                 No
  30.             </label>
  31.         </div>
  32.         <div class="form-check form-check-text">
  33.             <input type="radio" id="forms_{{ name }}_clear" name="forms[{{ name }}]"
  34.                    class="form-check-input" value="">
  35.             <label class="form-check-label required" for="forms_{{ name }}_clear" title="Clear selection">
  36.                 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
  37.             </label>
  38.         </div>
  39.         {% if date is defined and date == true %}
  40.             <div>
  41.                 <input type="date" id="forms_{{ name }}_date" name="forms[{{ name }}_date]" class="form-control">
  42.             </div>
  43.         {% endif %}
  44.     </div>
  45. </fieldset>