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

{% block scripts %}
<script src="{{ STATIC_URL }}lib/jquery/jquery-2.1.3.min.js"></script>
{% endblock %}

{% block competition_content %}
<h2>Create entry for {{ archer }}</h2>
<p>
    {% if competition.use_county_teams %}
        <a class="btn" href="{% url 'county_create' %}?next={{ request.path }}">Add county</a>
    {% else %}
        <a class="btn" href="{% url 'club_create' %}?next={{ request.path }}">Add club</a>
    {% endif %}
</p>
<form method="POST" action="">
    {% csrf_token %}
    <ul>
        {{ form.as_ul }}
    </ul>
    <input type="submit" class="btn" value="Save">
</form>
{% endblock %}

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

{% block scripts %}
<script src="{{ STATIC_URL }}lib/jquery/jquery-2.1.3.min.js"></script>
{% endblock %}

{% block competition_content %}
<p>
    {% if competition.use_county_teams %}
        <a class="btn add pull-right" href="{% url 'county_create' %}?next={{ request.path }}">Add county</a>
    {% else %}
        <a class="btn add pull-right" href="{% url 'club_create' %}?next={{ request.path }}">Add club</a>
    {% endif %}
</p>
{% with archer|stringformat:"s" as title_suffix %}
    {% form form using "core/form_layout.html" with form_title="Create entry for "|add:title_suffix %}
{% endwith %}
{% endblock %}

Refactor add entry form to floppyforms
Refactor add entry form to floppyforms
