allow editing of boat damages

This commit is contained in:
philipp 2023-10-12 12:05:12 +02:00
parent c91a329676
commit 3e327e98f1

View File

@ -59,7 +59,7 @@
{% else %} {% else %}
{% if loggedin_user.is_cox %} {% if loggedin_user.is_cox %}
<form action="/boatdamage/{{ boatdamage.id }}/fixed" method="post" class="mt-3"> <form action="/boatdamage/{{ boatdamage.id }}/fixed" method="post" class="mt-3">
<input type="hidden" name="desc" value="{{ boatdamage.desc }}" /> <input type="text" name="desc" value="{{ boatdamage.desc }}" />
{% if loggedin_user.is_tech %} {% if loggedin_user.is_tech %}
<input type="submit" class="btn btn-primary" value="Repariert und verifiziert" /> <input type="submit" class="btn btn-primary" value="Repariert und verifiziert" />
{% else %} {% else %}
@ -74,7 +74,7 @@
{% else %} {% else %}
{% if loggedin_user.is_tech and boatdamage.fixed_at %} {% if loggedin_user.is_tech and boatdamage.fixed_at %}
<form action="/boatdamage/{{ boatdamage.id }}/verified" method="post" class="mt-3"> <form action="/boatdamage/{{ boatdamage.id }}/verified" method="post" class="mt-3">
<input type="hidden" name="desc" value="{{ boatdamage.desc }}" /> <input type="text" name="desc" value="{{ boatdamage.desc }}" />
<input type="submit" class="btn btn-dark" value="Verifiziert" /> <input type="submit" class="btn btn-dark" value="Verifiziert" />
</form> </form>
{% endif %} {% endif %}