{% extends 'entries/competition_detail.html' %}

{% block competition_content %}
<p>Enter an archer name:</p>
<form method="GET" action="">
    {{ search_form.query }}
    <input type="submit" class="btn" value="Search">
</form>

{% if archers %}
<div class="row">
    {% for archer in archers %}
    <div class="col2">
        <a href="{% url 'entry_add' slug=competition.slug archer_id=archer.pk %}">
            <div class="archer-block">
                <div class="name">
                    <p>{{ archer }}</p>
                </div>
                <div class="bottom">
                    <p>
                        {{ archer.club }}
                    </p>
                    <p>
                        <span class="pill bowstyle {{ archer.bowstyle|slugify }}">{{ archer.bowstyle }}</span>
                        <span class="pill gender {{ archer.get_gender_display|lower }}">{{ archer.get_gender_display }}</span>
                        {% if competition.has_novices and archer.novice == "N" %}
                        <span class="pill novice">{{ archer.get_novice_display }}</span>
                        {% endif %}
                        {% if competition.has_juniors and archer.age == "J" %}
                        <span class="pill junior">{{ archer.get_age_display }}</span>
                        {% endif %}
                    </p>
            </div>
        </a>
    </div>
    {% endfor %}
</div>
{% else %}
No archers found.
{% endif %}
{% endblock %}

{% extends 'entries/competition_detail.html' %}

{% block competition_content %}
<p>Enter an archer name:</p>
<form method="GET" action="">
    {{ search_form.query }}
    <input type="submit" class="btn" value="Search">
</form>

{% if archers %}
<div class="row">
    {% for archer in archers %}
    <div class="col2">
        <a href="{% url 'entry_add' slug=competition.slug archer_id=archer.pk %}">
            <div class="archer-block">
                <div class="name">
                    <p>{{ archer }}</p>
                </div>
                <div class="bottom">
                    <p>
                        {{ archer.club }}
                    </p>
                    <p>
                        <span class="pill bowstyle {{ archer.bowstyle|slugify }}">{{ archer.bowstyle }}</span>
                        <span class="pill gender {{ archer.get_gender_display|lower }}">{{ archer.get_gender_display }}</span>
                        {% if competition.has_novices and archer.novice == "N" %}
                        <span class="pill novice">{{ archer.get_novice_display }}</span>
                        {% endif %}
                        {% if competition.has_juniors and archer.age == "J" %}
                        <span class="pill junior">{{ archer.get_age_display }}</span>
                        {% endif %}
                    </p>
                </div>
            </div>
        </a>
    </div>
    {% endfor %}
</div>
{% else %}
No archers found.
{% endif %}
{% endblock %}

Fix missing closing div in template.
Fix missing closing div in template.
