pattern_genders.html 454 Bytes
{% load i18n %}

{% if pattern_type.genders.all %}
    <span class="genders-label">{% trans "Genders:" %}</span>
    {% for gender in pattern_type.genders.all %}
        <label for="gender{{ gender.id }}">{{ gender.symbol }}</label>
        <input type="checkbox" id="gender{{ gender.id }}"
               name="genders" value="{{ gender.id }}"
               {% if gender in selected_genders %}checked="checked"{% endif %}/>
    {% endfor %}
{% endif %}