{% extends 'base.html' %} {% load widget_tweaks %} {% block content %}
{% if messages %}
{% for message in messages %} {% endfor %}
{% endif %}

Update Player Information

{% csrf_token %} {% for field in form.visible_fields %}
{% if field.field.widget.input_type == "checkbox" %}
{{ field|add_class:"form-check-input" }}
{% else %} {% if field.errors %} {{ field|add_class:"form-control is-invalid" }}
{{ field.errors|striptags }}
{% else %} {{ field|add_class:"form-control" }} {% endif %} {% if field.help_text %} {{ field.help_text }} {% endif %} {% endif %}
{% endfor %} {% comment %} {% if show_consent %}
{% if player.parental_consent %} A consent document is already uploaded. You may replace it if needed. {% else %} {% endif %}
{% endif %} {% endcomment %}
{% endblock %}