Skip to content
This repository was archived by the owner on Jul 20, 2025. It is now read-only.

Commit 8601797

Browse files
committed
v1.01
1 parent 1029823 commit 8601797

6 files changed

Lines changed: 17 additions & 11 deletions

File tree

denpointment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ def book_an_appointment():
521521
flash(message="You have an upcoming appointment, you can get another appointment after that one.",
522522
category="danger")
523523
cursor.close()
524-
return redirect(url_for("book_an_appointment"))
524+
return redirect(url_for("my_appointments"))
525525

526526
query = """
527527
SELECT dentists.dentist_id, dentists.room_number, persons.first_name, persons.last_name

templates/appointments.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,14 @@ <h5>Past Treatments:</h5>
6363
<td scope="row">{{ appointment.charge }}</td>
6464
<td scope="row">{{ appointment.action }}</td>
6565
<td scope="row">{{ appointment.complaint }}</td>
66-
<td scope="row"><a href="./treatment-medicines-{{ appointment.treatment_id }}"
67-
class="btn btn-primary">Medicines</a></td>
66+
<td scope="row">
67+
{% if appointment.medicine_id %}
68+
<a href="./treatment-medicines-{{ appointment.treatment_id }}"
69+
class="btn btn-primary">Medicines</a>
70+
{% else %}
71+
Not assigned
72+
{% endif %}
73+
</td>
6874
{% endif %}
6975
</tr>
7076
{% endfor %}

templates/includes/_footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h3>About project</h3>
3838
<div class="col-sm-12 col-xl-4 multi-collapse show" id="multiCollapse3">
3939
<div class="card card-body">
4040
<h3>Designed by Tzesh</h3>
41-
<p>Designed by <a href="https://www.ugurdindar.com" style="color: gray;">Uğur Dindar (Tzesh)</a></p>
41+
<p>Designed by <a href="https://www.ugurdindar.com">Uğur Dindar (Tzesh)</a></p>
4242
</div>
4343
</div>
4444
</div>

templates/includes/_navbar.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!-- Denpointment System
22
github.com/Tzesh/Denpointment -->
33

4-
<nav class="navbar navbar-expand-lg navbar-light bg-white">
4+
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
55
<div class="container-fluid">
6-
<a class="navbar-brand" href="#">Denpointment</a>
6+
<a class="navbar-brand" href="#"><i class="fas fa-tooth"></i> Denpointment</a>
77
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown"
88
aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
99
<span class="navbar-toggler-icon"></span>
@@ -18,7 +18,7 @@
1818
data-bs-toggle="dropdown" aria-expanded="false">
1919
Appointments
2020
</a>
21-
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
21+
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDropdownMenuLink">
2222
<li><a class="dropdown-item" href="./book-an-appointment">Book an
2323
appointment</a></li>
2424
<li><a class="dropdown-item" href="./appointments">My Appointments</a></li>
@@ -30,7 +30,7 @@
3030
data-bs-toggle="dropdown" aria-expanded="false">
3131
Treatments
3232
</a>
33-
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
33+
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDropdownMenuLink">
3434
<li><a class="dropdown-item" href="./upcoming-appointments">Upcoming appointments</a></li>
3535
<li><a class="dropdown-item" href="./todays-appointments">Today's appointments</a></li>
3636
<li><a class="dropdown-item" href="./past-treatments">Past treatments</a></li>
@@ -41,7 +41,7 @@
4141
data-bs-toggle="dropdown" aria-expanded="false">
4242
Statistics
4343
</a>
44-
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
44+
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDropdownMenuLink">
4545
<li><a class="dropdown-item" href="./patient-statistics">Patients</a></li>
4646
<li><a class="dropdown-item" href="./dentist-statistics">Dentists</a></li>
4747
</ul>

templates/login.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% extends "_outer_layout.html" %}
55
{% block title %}Login{% endblock %}
66
{% block section %}
7-
<h1>Denpointment</h1>
7+
<h1><i class="fas fa-tooth"></i> Denpointment</h1>
88
<h4>Get your dentist appointment online!</h4>
99
{% endblock %}
1010
{% block article %}

templates/register.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% extends "_outer_layout.html" %}
55
{% block title %}Register{% endblock %}
66
{% block section %}
7-
<h1>Denpointment</h1>
7+
<h1><i class="fas fa-tooth"></i> Denpointment</h1>
88
<h4>Please fullfil the necessary information to register.</h4>
99
{% endblock %}
1010
{% block article %}

0 commit comments

Comments
 (0)