{% extends "layout/landing_page.html" %}

{% load i18n %}
{% load event_tags %}


{% block landing_content %}
    <div class="w3-padding w3-padding-top-64">

        <h4>Prezentovat registraci</h4>

        <p>Zavodnik: {{ registration.first_name }} {{ registration.last_name }} ({{ registration.nickname }})</p>
        <p>Kontakt: {{ registration.email }}, {{ registration.phone }}</p>
        <p>Kategorie: {{ registration.category }}</p>
        <hr>
    <p class="w3-text-amber">Nezabudni priradit kartu</p>

        <form method="post">
            {% csrf_token %}
            {% if form.non_field_errors %}
                <div class="w3-panel w3-red">
                    {{ form.non_field_errors }}
                </div>
            {% endif %}


            <table class="w3-table w3-bordered">
                {% for field in form %}
                    <tr>
                        <td class="w3-third"><label class="w3-small"
                                                    for="{{ field.id_for_label }}">{{ field.label }}</label></td>
                        <td>
                            {{ field }}
                            {% if field.errors %}
                                <span class="w3-text-red w3-small">{{ field.errors }}</span>
                            {% endif %}
                        </td>
                    </tr>
                {% endfor %}
            </table>


            <button class="w3-button w3-blue-gray w3-section" type="submit">Potvrdit</button>


        </form>


    </div>
    {% include 'layout/landing_footer.html' %}
{% endblock %}


