Closed (fixed)
Project:
DvG Appointments
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Oct 2019 at 12:54 UTC
Updated:
28 Oct 2019 at 14:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tvoesenek commentedI've added a new custom form to cancel an appointment, based on the solution in #3074229: Add appointment changing functionality for the "change appointment"-form.
For backwards compatibility, on the admin page you may now select if you want to use the "webform" or the "custom" solution for cancelling appointments.
When the "custom" solution is selected, a new token
[submission:dvg_appointments_cancel_url]is available which can be used in the appointment confirmation email message to render a link to the "cancel"-form, with prefilled appointment data. It also has the option to specify the path of the form in all enabled languages.The custom form falls back on the manual input if no appointment data is provided in the url parameters.
Comment #3
paulvandenburg commentedThere are a few issues that should be solved:
Overall looks like a great addition if the few mentioned issues are resolved.
Comment #4
tvoesenek commentedBased on paulvandenburg's review I've made the following changes to the patch:
1. Replaced the constants with a boolean variable, set by a checkbox in the admin form.
2. Renamed the access callback, as suggested.
3. Fixed the typo.
4. Probably the result of some refactoring to prevent duplicate code, I agree it looks better when inverted.
5. Specified the allowed object, also on line 303 of dvg_appointments.cance.inc
6. Fixed the typo.
Comment #5
paulvandenburg commentedLooks good and works good!
Only 1 very small thing, which I've changed in the commit; In the dvg_appointments_form_cancel_appointment() function you used the short list() syntax. For consistency I've changed that to the longer "list()" version.
Comment #7
paulvandenburg commented