No button if not logged in
This commit is contained in:
parent
9d82b20151
commit
60212ad62a
1 changed files with 7 additions and 3 deletions
|
@ -6,9 +6,13 @@
|
|||
<p>{{ event.count_interested }} in wachtlijst</p>
|
||||
{% endif %}
|
||||
|
||||
{% if not my_registration %}
|
||||
<p><input type="submit" value="Ik wil komen"></p>
|
||||
{% if user.is_authenticated %}
|
||||
{% if not my_registration %}
|
||||
<p><input type="submit" value="Ik wil komen"></p>
|
||||
{% else %}
|
||||
<p>Mijn status: {{ my_registration.state_str }} <input type="button" disabled="disabled" value="Uitschrijven (todo)"></input></p>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<p>Mijn status: {{ my_registration.state_str }} <input type="button" disabled="disabled" value="Uitschrijven (todo)"></input></p>
|
||||
<p>Je moet inloggen voor je je kan inschrijven</p>
|
||||
{% endif %}
|
||||
</form>
|
||||
|
|
Loading…
Reference in a new issue