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>
|
<p>{{ event.count_interested }} in wachtlijst</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if not my_registration %}
|
{% if user.is_authenticated %}
|
||||||
<p><input type="submit" value="Ik wil komen"></p>
|
{% 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 %}
|
{% 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 %}
|
{% endif %}
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue