forked from DGNum/gestioCOF
registration est cassé
This commit is contained in:
parent
3cd618e60d
commit
34830f897e
5 changed files with 127 additions and 73 deletions
|
@ -1,21 +1,27 @@
|
|||
{% 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 id="profile" method="post" action="{% url 'gestioncof.views.registration' %}">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
{{ user_form.as_table }}
|
||||
{{ profile_form.as_table }}
|
||||
{% if event_forms %}
|
||||
</table>
|
||||
{% for event_form in event_forms %}
|
||||
<hr />
|
||||
<h4>Inscription {{ event_form.event.title }} :</h2>
|
||||
<table>
|
||||
{{ event_form.as_table }}
|
||||
</table>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if login_clipper or member %}<input type="hidden" name="user_exists" value="1" />{% endif %}
|
||||
<input type="submit" class="btn-submit" value="Enregistrer l'inscription" />
|
||||
</form>
|
||||
{% 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 id="profile" method="post" action="{% url 'gestioncof.views.registration' %}">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
{{ user_form.as_table }}
|
||||
{{ profile_form.as_table }}
|
||||
{% if event_forms %}
|
||||
</table>
|
||||
{% for event_form in event_forms %}
|
||||
<hr />
|
||||
<h4>Inscription {{ event_form.event.title }} :</h2>
|
||||
<table>
|
||||
{{ event_form.as_table }}
|
||||
</table>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if login_clipper or member %}
|
||||
<input type="hidden" name="user_exists" value="1" />
|
||||
{% endif %}
|
||||
<input type="submit" class="btn-submit" value="Enregistrer l'inscription" />
|
||||
</form>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue