forked from DGNum/gestioCOF
c37754376b
The `registration` view was referencing this file using `"gestioncof/registration_form.html"` whereas the `registration_post` templated was referencing it in the global namespace `"registration_form.html"`. We choose the `gestioncof/` folder in order to avoid further conflicts with other apps.
32 lines
1.1 KiB
HTML
32 lines
1.1 KiB
HTML
{% load bootstrap %}
|
|
|
|
{% if login_clipper %}
|
|
<h3>Inscription associée au compte clipper <tt>{{ login_clipper }}</tt></h3>
|
|
{% elif member %}
|
|
<h3>Inscription du compte GestioCOF existant <tt>{{ member.username }}</tt></h3>
|
|
{% else %}
|
|
<h3>Inscription d'un nouveau compte (extérieur ?)</h3>
|
|
{% endif %}
|
|
<form role="form" id="profile" method="post" action="{% url 'gestioncof.views.registration' %}">
|
|
{% csrf_token %}
|
|
<table>
|
|
{{ user_form | bootstrap }}
|
|
{{ profile_form | bootstrap }}
|
|
</table>
|
|
<hr />
|
|
<table>
|
|
{{ clubs_form | bootstrap }}
|
|
</table>
|
|
{{ event_formset.management_form }}
|
|
{% for event_form in event_formset %}
|
|
<hr />
|
|
<h3>Inscription {{ event_form.event.title }} :</h3>
|
|
<table>
|
|
{{ event_form | bootstrap }}
|
|
</table>
|
|
{% endfor %}
|
|
{% if login_clipper or member %}
|
|
<input type="hidden" name="user_exists" value="1" />
|
|
{% endif %}
|
|
<input type="submit" class="btn btn-primary pull-right" value="Enregistrer l'inscription" />
|
|
</form>
|