{% load customtags %}

Primary tumor

{% include 'dataexplorer/help/tooltip.html' with side="right" position="bottom" image='dataexplorer/help/subsite_t-stage.gif' markdown='dataexplorer/help/tumor.md' %}
{{ form.central }} {% include 'dataexplorer/three_way_toggle_stats.html' with stats=stats field='central' show_percent=show_percent %}
{{ form.extension }} {% include 'dataexplorer/three_way_toggle_stats.html' with stats=stats field='extension' show_percent=show_percent %}

Location & Subsite

Oropharynx:

{% for checkbox in form.subsite_oropharynx %}
{{ checkbox.tag }}

{% with counter=forloop.counter0|add:0 %} {% if show_percent %}{{ stats.subsites|percent:counter }}%{% else %}{{ stats.subsites|index:counter }}{% endif %} {% endwith %}

{% endfor %}

Hypopharynx:

{% for checkbox in form.subsite_hypopharynx %}
{{ checkbox.tag }}

{% with counter=forloop.counter0|add:3 %} {% if show_percent %}{{ stats.subsites|percent:counter }}%{% else %}{{ stats.subsites|index:counter }}{% endif %} {% endwith %}

{% endfor %}

Larynx:

{% for checkbox in form.subsite_larynx %}
{{ checkbox.tag }}

{% with counter=forloop.counter0|add:4 %} {% if show_percent %}{{ stats.subsites|percent:counter }}%{% else %}{{ stats.subsites|index:counter }}{% endif %} {% endwith %}

{% endfor %}

Oral cavity:

{% for checkbox in form.subsite_oral_cavity %}
{{ checkbox.tag }}

{% with counter=forloop.counter0|add:6 %} {% if show_percent %}{{ stats.subsites|percent:counter }}%{% else %}{{ stats.subsites|index:counter }}{% endif %} {% endwith %}

{% endfor %}

T-stage

{% for checkbox in form.t_stage__in %}
{{ checkbox.tag }}
{% if show_percent %}{{ stats.t_stages|percent:forloop.counter0 }}%{% else %}{{ stats.t_stages|index:forloop.counter0 }}{% endif %}
{% endfor %}