<form class="voting-bar pat-inject pat-autosubmit"
      id="voting-bar"
      action="${here/absolute_url}/@@promo-voting-bar"
      data-pat-inject="source: #voting-bar; target: #voting-bar"
      tal:define="
        attending view/attending_value;
      "
      i18n:domain="ploneintranet"
>
  <fieldset class="pat-checklist free-form voting-bar-button-group">
    <label class="voting-bar-button option-yes">
      <input checked="${python: 'checked' if attending == 'option-1' else None}"
             name="attending"
             type="radio"
             value="option-1"
      />
      <tal:i18n i18n:translate="">Attend</tal:i18n>
    </label>
    <label class="voting-bar-button option-maybe">
      <input checked="${python: 'checked' if attending == 'option-2' else None}"
             name="attending"
             type="radio"
             value="option-2"
      />
      <tal:i18n i18n:translate="">Maybe</tal:i18n>
    </label>
    <label class="voting-bar-button option-no">
      <input checked="${python: 'checked' if attending == 'option-3' else None}"
             name="attending"
             type="radio"
             value="option-3"
      />
      <tal:i18n i18n:translate="">Won't attend</tal:i18n>
    </label>
  </fieldset>
</form>
