Cast your vote

TODO: We plan to make "Binding" dynamic based on membership. Currently this form always says "Binding" which is known to be wrong.
{% include "check-selected-vote-email.html" %}
{{ form.hidden_tag() }}
{% for subfield in form.vote_value %} {% set btn_class = "btn-outline-secondary" %} {% if subfield.data == "+1" %} {% set btn_class = "btn-outline-success" %} {% endif %} {% if subfield.data == "-1" %} {% set btn_class = "btn-outline-danger" %} {% endif %} {{ subfield(class_="btn-check", autocomplete="off") }} {% endfor %}
{% if form.vote_value.errors %}
{{ form.vote_value.errors[0] }}
{% endif %}
{{ form.vote_comment(class_="form-control", rows="3") }} {% if form.vote_comment.errors %}
{{ form.vote_comment.errors[0] }}
{% endif %}
{{ form.submit(class_="btn btn-primary") }}

Resolve vote

NOTE: We are allowing a vote to be resolved early in order to facilitate testing. This is not the final behaviour.
{{ resolve_form.csrf_token }}
{% for subfield in resolve_form.vote_result %}
{{ subfield(class="form-check-input" + (" is-invalid" if resolve_form.vote_result.errors else "") , id=subfield.id ~ "_" ~ loop.index) }}
{% endfor %} {% if resolve_form.vote_result.errors %}
{{ resolve_form.vote_result.errors[0] }}
{% endif %}
{{ resolve_form.resolution_body(class_="form-control", rows="3") }}
{{ resolve_form.submit(class_="btn btn-primary mt-3") }}