Caluculate time between dates for appt requests #113
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I've added some functions to calculate how many hours and days have passed since an appointment was requested. This will display on the admin appointment popup and will only be seen on appointments before they have been scheduled.
Related Issue
closes #112
Acceptance Criteria
Add how many hours ago a request has been submitted and have that information appear on the admin appointment popup. Once one day has passed, it should change from tracking how many hours have passed to how many days. This information should not be available on scheduled appointments.
Type of Changes
Updates
Before
After
Testing Steps / QA Criteria
Login to admin and click on any requested appointment in the dashboard. The amount of hours or days since the appointment was requested (which is based on the difference between Today and the created_at date on the appointment) should be shown next to the status badges. This should not be available on scheduled appointments. Any brand new appointments made less than one hour ago should say 'Requested < 1 hour ago'.