diff --git a/denpointment.py b/denpointment.py index fbc65b8..d989804 100644 --- a/denpointment.py +++ b/denpointment.py @@ -521,7 +521,7 @@ def book_an_appointment(): flash(message="You have an upcoming appointment, you can get another appointment after that one.", category="danger") cursor.close() - return redirect(url_for("book_an_appointment")) + return redirect(url_for("my_appointments")) query = """ SELECT dentists.dentist_id, dentists.room_number, persons.first_name, persons.last_name diff --git a/templates/appointments.html b/templates/appointments.html index eef36bd..0b36dde 100644 --- a/templates/appointments.html +++ b/templates/appointments.html @@ -63,8 +63,14 @@
Past Treatments:
{{ appointment.charge }} {{ appointment.action }} {{ appointment.complaint }} - Medicines + + {% if appointment.medicine_id %} + Medicines + {% else %} + Not assigned + {% endif %} + {% endif %} {% endfor %} diff --git a/templates/includes/_footer.html b/templates/includes/_footer.html index a15f92d..f5e0e88 100644 --- a/templates/includes/_footer.html +++ b/templates/includes/_footer.html @@ -38,7 +38,7 @@

About project

Designed by Tzesh

-

Designed by Uğur Dindar (Tzesh)

+

Designed by Uğur Dindar (Tzesh)

diff --git a/templates/includes/_navbar.html b/templates/includes/_navbar.html index 564447a..45d2d63 100644 --- a/templates/includes/_navbar.html +++ b/templates/includes/_navbar.html @@ -1,9 +1,9 @@ -