Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2022-06-29 21:43:08 +02:00
parent 966b5454d3
commit 7fff546dbd
2 changed files with 3 additions and 2 deletions

View File

@@ -41,6 +41,7 @@
<td>{{ athlete.last_name }}</td>
<td>{{ athlete.club }}</td>
<td>{{ athlete.gender }}</td>
<td><a href="/boatmovers/athlete/{{ athlete.id }}/">results</a></td>
{% if user.is_authenticated and user.is_staff %}
<td><a href="/admin/boatmovers/athlete/{{ athlete.id }}/change/">edit</a></td>
{% endif %}

View File

@@ -2,10 +2,10 @@
{% block main %}
<h1>
{{ athlete.first_name }} {{ athlete.last_name }}
{{ race.name }}
</h1>
<p>
<form method="post" nctype="multipart/form-data">
<form method="post" enctype="multipart/form-data">{% csrf_token %}
{{ form.as_p }}
<input type="hidden" name="action" value="create" />
<input type="submit" value="Submit"/>