Skip to content

Commit

Permalink
v1.01
Browse files Browse the repository at this point in the history
  • Loading branch information
Tzesh committed Jun 8, 2021
1 parent 1029823 commit 8601797
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion denpointment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions templates/appointments.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,14 @@ <h5>Past Treatments:</h5>
<td scope="row">{{ appointment.charge }}</td>
<td scope="row">{{ appointment.action }}</td>
<td scope="row">{{ appointment.complaint }}</td>
<td scope="row"><a href="./treatment-medicines-{{ appointment.treatment_id }}"
class="btn btn-primary">Medicines</a></td>
<td scope="row">
{% if appointment.medicine_id %}
<a href="./treatment-medicines-{{ appointment.treatment_id }}"
class="btn btn-primary">Medicines</a>
{% else %}
Not assigned
{% endif %}
</td>
{% endif %}
</tr>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion templates/includes/_footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h3>About project</h3>
<div class="col-sm-12 col-xl-4 multi-collapse show" id="multiCollapse3">
<div class="card card-body">
<h3>Designed by Tzesh</h3>
<p>Designed by <a href="https://www.ugurdindar.com" style="color: gray;">Uğur Dindar (Tzesh)</a></p>
<p>Designed by <a href="https://www.ugurdindar.com">Uğur Dindar (Tzesh)</a></p>
</div>
</div>
</div>
Expand Down
10 changes: 5 additions & 5 deletions templates/includes/_navbar.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!-- Denpointment System
github.com/Tzesh/Denpointment -->

<nav class="navbar navbar-expand-lg navbar-light bg-white">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">Denpointment</a>
<a class="navbar-brand" href="#"><i class="fas fa-tooth"></i> Denpointment</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown"
aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
Expand All @@ -18,7 +18,7 @@
data-bs-toggle="dropdown" aria-expanded="false">
Appointments
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="./book-an-appointment">Book an
appointment</a></li>
<li><a class="dropdown-item" href="./appointments">My Appointments</a></li>
Expand All @@ -30,7 +30,7 @@
data-bs-toggle="dropdown" aria-expanded="false">
Treatments
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="./upcoming-appointments">Upcoming appointments</a></li>
<li><a class="dropdown-item" href="./todays-appointments">Today's appointments</a></li>
<li><a class="dropdown-item" href="./past-treatments">Past treatments</a></li>
Expand All @@ -41,7 +41,7 @@
data-bs-toggle="dropdown" aria-expanded="false">
Statistics
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="./patient-statistics">Patients</a></li>
<li><a class="dropdown-item" href="./dentist-statistics">Dentists</a></li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% extends "_outer_layout.html" %}
{% block title %}Login{% endblock %}
{% block section %}
<h1>Denpointment</h1>
<h1><i class="fas fa-tooth"></i> Denpointment</h1>
<h4>Get your dentist appointment online!</h4>
{% endblock %}
{% block article %}
Expand Down
2 changes: 1 addition & 1 deletion templates/register.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% extends "_outer_layout.html" %}
{% block title %}Register{% endblock %}
{% block section %}
<h1>Denpointment</h1>
<h1><i class="fas fa-tooth"></i> Denpointment</h1>
<h4>Please fullfil the necessary information to register.</h4>
{% endblock %}
{% block article %}
Expand Down

0 comments on commit 8601797

Please sign in to comment.