TabbycatDebate/tabbycat

View on GitHub
tabbycat/results/templates/ballot/ballot_debate_info.html

Summary

Maintainability
Test Coverage
{% load add_field_css debate_tags i18n %}

<div class="card mt-3">
  <div class="list-group list-group-flush">

    {% trans "Debate Information" as title %}
    {% include "components/form-title.html" %}

    {% if form.choose_sides %}
      <div class="list-group-item">
        {% include "components/form-field.html" with field=form.choose_sides %}
      </div>
      <div hidden>
        {% for field in form.fake_speaker_selects %}
          {{ field }}
        {% endfor %}
      </div>
    {% endif %}

    {% if pref.enable_motions %}
      <div class="list-group-item">
        {% include "components/form-field.html" with field=form.motion %}
      </div>
    {% endif %}

    {% if pref.motion_vetoes_enabled %}
      <div class="list-group-item">
        <div class="row">
          {% for field in form.motion_veto_fields %}
            {% include "components/form-field.html" with double=True %}
          {% endfor %}
        </div>
      </div>
    {% endif %}

    {% if form.has_scores %}
      <div class="list-group-item pb-3 pt-3">
        <div class="form-group">
          <select class="required custom-select form-control" id="hasIron" name="iron"
                  tabindex="{{ form.irontabindex }}" required="" aria-required="true">
            <option value="0">
              {% trans "No speakers spoke twice (no 'iron-person' speeches)" %}
            </option>
            <option value="1">
              {% trans "A speaker spoke twice (an 'iron-person' speech)" %}
            </option>
          </select>
        </div>
      </div>
    {% endif %}

  </div>
</div>