forked from Ruderverein-Donau-Linz/rowt
final touches
This commit is contained in:
@ -83,5 +83,9 @@
|
||||
{% endfor %}
|
||||
|
||||
|
||||
{% if user.is_cox %}
|
||||
<a class="button" href="/?all">Alle heurigen Ausfahrten anzeigen</a>
|
||||
{% endif %}
|
||||
|
||||
{% endblock content %}
|
||||
|
||||
|
@ -3,8 +3,13 @@
|
||||
|
||||
<form action="/name" method="post">
|
||||
<input type="hidden" name="_method" value="put" />
|
||||
|
||||
<label for="name">Bitte deinen Namen eingeben</label>
|
||||
<input type="text" id="name" name="name"/>
|
||||
|
||||
<label for="pw">(Optional) Passwort eingeben</label>
|
||||
<input type="password" id="pw" name="pw"/>
|
||||
|
||||
<input type="submit" value="Weiter"/>
|
||||
</form>
|
||||
{% endblock content %}
|
||||
|
@ -5,6 +5,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Pw</th>
|
||||
<th>Cox</th>
|
||||
<th>Admin</th>
|
||||
<th>Action</th>
|
||||
@ -16,6 +17,12 @@
|
||||
<form action="/user/{{ user.id }}" method="post">
|
||||
<input type="hidden" name="_method" value="put" />
|
||||
<td>{{user.name}}</td>
|
||||
<td>
|
||||
{% if user.pw %}
|
||||
<input type="checkbox" checked disabled>
|
||||
{% endif %}
|
||||
<input type="password" name="pw" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" name="is_cox" {% if user.is_cox %} checked="true"{% endif %}
|
||||
</td>
|
||||
|
Reference in New Issue
Block a user