diff --git a/schoolapps/aub/templates/aub/check.html b/schoolapps/aub/templates/aub/check.html index afece7bf2397568be944280007c886f909052fe4..fcafc05af83e5b15aeaab3c6a7a41a8696324113 100755 --- a/schoolapps/aub/templates/aub/check.html +++ b/schoolapps/aub/templates/aub/check.html @@ -38,12 +38,16 @@ <form action="" method="POST" class="right"> {% csrf_token %} <input type="hidden" value="{{ aub.id }}" name="aub-id"> + {% if aub.status_id != 3 %} <button type="submit" name="allow" class="waves-effect waves-light btn-flat btn-flat-large" title="Annehmen"> <i class="material-icons center green-text">check_circle</i> </button> + {% endif %} + {% if aub.status_id != 4 %} <button type="submit" name="deny" class="waves-effect waves-light btn-flat btn-flat-large" title="Ablehnen"> <i class="material-icons center red-text">not_interested</i> </button> + {% endif %} </form> </p> </div> diff --git a/schoolapps/aub/templates/aub/index.html b/schoolapps/aub/templates/aub/index.html index 591970aa26306e3dcb7e1f6ac2a3ceb118bdfa14..e004f917826b9c30cb983555fb55cd7e6b8e1b7f 100755 --- a/schoolapps/aub/templates/aub/index.html +++ b/schoolapps/aub/templates/aub/index.html @@ -35,12 +35,16 @@ <form action="" method="POST" class="right"> {% csrf_token %} <input type="hidden" value="{{ aub.id }}" name="aub-id"> + {% if aub.status_id == 1 %} <button type="submit" name="edit" class="waves-effect waves-light btn-flat btn-flat-medium" title="Bearbeiten"> <i class="material-icons center green-text">create</i> </button> + {% endif %} + {% if aub.status_id == 1 or aub.status_id == 2 %} <button type="submit" onclick="return confirm('Wollen Sie den Antrag wirklich löschen?')" name="cancel" class="waves-effect waves-light btn-flat btn-flat-medium" title="Löschen"> <i class="material-icons center red-text">cancel</i> </button> + {% endif %} </form> </p>