diff --git a/app/views/appointments/index.html.erb b/app/views/appointments/index.html.erb index 8a288cc..bc1b0ef 100644 --- a/app/views/appointments/index.html.erb +++ b/app/views/appointments/index.html.erb @@ -3,55 +3,29 @@
Appointment date: <%= appointment.date %>
-Appointment time: <%= appointment.start_time %>
-<%= appointment.doctor_profile.user.last_name%>, for <%= appointment.doctor_profile.specialty %>
+Appointment date: <%= appointment.date %>
+Appointment time: <%= appointment.start_time %>
+Appointment address: <%= appointment.doctor_profile.practice_address %>
Appointment date: <%= appointment.date %>
-Appointment time: <%= appointment.start_time %>
-Start Time: <%= @appointment.start_time %>
-Duration: <%= @appointment.end_time.to_i - @appointment.start_time.to_i %> hours
-with patient: <%= @appointment.user.first_name %> <%= @appointment.user.last_name %>
+<%= @appointment.note %>
+Start Time: <%= @appointment.start_time %>
+Duration: <%= @appointment.end_time.to_i - @appointment.start_time.to_i %> hours
+with patient: <%= @appointment.user.first_name %> <%= @appointment.user.last_name %>
+<%= @appointment.note %>
+Start Time: <%= @appointment.start_time %>
-Duration: <%= @appointment.end_time.to_i - @appointment.start_time.to_i %> hours
-with: Dr <%= @appointment.doctor_profile.user.last_name %>, <%= @appointment.doctor_profile.specialty %>
-Address: <%= @appointment.doctor_profile.practice_address %>
+<%= @appointment.note %>
+Date: <%= @appointment.date %>
+Start Time: <%= @appointment.start_time %>
+Duration: <%= @appointment.end_time.to_i - @appointment.start_time.to_i %> hours
+with: Dr <%= @appointment.doctor_profile.user.last_name %>, <%= @appointment.doctor_profile.specialty %>
+Address: <%= @appointment.doctor_profile.practice_address %>
+<%= @appointment.note %>
+