From 2852579a6deffe0829e6ef68ce3fad89c477ef0d Mon Sep 17 00:00:00 2001 From: Frank Poetzsch-Heffter <p-h@katharineum.de> Date: Sat, 28 Dec 2019 05:19:50 +0100 Subject: [PATCH] costcenter form in new layout --- schoolapps/fibu/templates/fibu/booking/check.html | 8 +++++--- schoolapps/fibu/templates/fibu/index.html | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/schoolapps/fibu/templates/fibu/booking/check.html b/schoolapps/fibu/templates/fibu/booking/check.html index f6f26b267..4d75f0ab5 100755 --- a/schoolapps/fibu/templates/fibu/booking/check.html +++ b/schoolapps/fibu/templates/fibu/booking/check.html @@ -10,7 +10,7 @@ <th>Antragsteller</th> <th>Anschaffungswunsch</th> <th>Geplante Kosten</th> - <th>Zugeordnete Kostenstelle</th> + <th>Buchungskonto</th> <th>Aktionen</th> </tr> </thead> @@ -26,8 +26,9 @@ {% for booking in filter.qs %} <tr> - <form method="POST"> + <form method="POST" action=""> {% csrf_token %} + <input type="hidden" value="{{ booking.id }}" name="booking-id"> {% if booking.status < 2 %} <td>{{ booking.contact }}</td> @@ -41,9 +42,10 @@ class="waves-effect waves-light btn-flat btn-flat-medium" title="Annehmen"> <i class="material-icons center green-text">check_circle</i> </button> + {% endif %} {% if booking.status < 3 %} - <button type="submit" name="deny" + <button type="submit" name="deny" value="Blubb" class="waves-effect waves-light btn-flat btn-flat-medium" title="Ablehnen"> <i class="material-icons center red-text">not_interested</i> </button> diff --git a/schoolapps/fibu/templates/fibu/index.html b/schoolapps/fibu/templates/fibu/index.html index fb4ba3089..ada1dbde6 100755 --- a/schoolapps/fibu/templates/fibu/index.html +++ b/schoolapps/fibu/templates/fibu/index.html @@ -24,7 +24,8 @@ {% form form=form %} {% part form.planned_amount prefix %}<i class="material-icons prefix">euro_symbol</i> {% endpart %} - {% endform %} </div> + {% endform %} + </div> <div class="modal-footer"> <button type="submit" class="waves-effect waves-light btn green"> <i class="material-icons left">send</i> Antrag stellen -- GitLab