From c65e27a8b1104f7601c5935fccfd4b0d885e0698 Mon Sep 17 00:00:00 2001 From: Jiri Kalvoda <jirikalvoda@kam.mff.cuni.cz> Date: Sun, 19 Dec 2021 21:33:37 +0100 Subject: [PATCH] =?UTF-8?q?Tla=C4=8D=C3=ADtko=20na=20maz=C3=A1n=C3=AD=20re?= =?UTF-8?q?gistrace=20do=20ro=C4=8Dn=C3=ADku?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mo/web/templates/org_user.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mo/web/templates/org_user.html b/mo/web/templates/org_user.html index 56f9559e..edf1f768 100644 --- a/mo/web/templates/org_user.html +++ b/mo/web/templates/org_user.html @@ -61,7 +61,12 @@ <td><a href="{{ url_for('org_place', id=participant.school) }}">{{ participant.school_place.name }}</a> <td>{{ participant.grade }} <td>{{ participant.birth_year }} - <td><a class="btn btn-xs btn-primary" href="{{ url_for('org_user_participant_edit', user_id=user.user_id, year=participant.year) }}">Editovat</a> + <td><div class="btn-group"> + <a class="btn btn-xs btn-primary" href="{{ url_for('org_user_participant_edit', user_id=user.user_id, year=participant.year) }}">Editovat</a> + <form class="btn-group" method="POST" onsubmit="return confirm('Opravdu nenávratně smazat?')" action='{{ url_for('org_user_participant_delete', user_id=user.user_id, year=participant.year) }}'> + <input class="btn btn-xs btn-danger" type=submit value='Smazat'> + </form> + </div> </tr> {% endfor %} </table> -- GitLab