Commit graph

791 commits

Author SHA1 Message Date
Alex Tselegidis
1690ba7b10 Remove unused "users.php" view file. 2022-01-18 08:45:15 +01:00
Alex Tselegidis
9f08ce329e Replace direct use of variables inside views with the new "vars" helper method. 2022-01-18 08:45:02 +01:00
Alex Tselegidis
8dad2d9624 Replace the global App.Lang with the "lang" helper method, which is more appropriate due to the dynamic load of script translation strings. 2022-01-18 08:22:25 +01:00
Alex Tselegidis
e93565500d Replace the global App.Vars with the "vars" helper method, which is more appropriate due to the dynamic load of script vars. 2022-01-18 08:18:22 +01:00
Alex Tselegidis
ca4e58313a Pull the available languages from the App.Vars.* object. 2022-01-18 07:20:04 +01:00
Alex Tselegidis
6589e4e5c8 The scripts section must be at the bottom of the file. 2022-01-17 21:18:59 +01:00
Alex Tselegidis
7ca93f5eeb Pass the calendar view to both the html and script vars 2022-01-17 21:18:43 +01:00
Alex Tselegidis
0da73ab43e Remove the "ajax_" prefix from all new AJAX endpoints. 2022-01-17 19:44:44 +01:00
Alex Tselegidis
8d93f283f8 Redirect to the login page if the user is not logged in or display the no permissions message when the permissions are insufficient. 2022-01-17 18:24:02 +01:00
Alex Tselegidis
3c0f925596 Login works again using the new login HTTP client. 2022-01-17 18:23:11 +01:00
Alex Tselegidis
4580d095ee Automatically load the common utility modules directly inside layout view files. 2022-01-17 18:21:44 +01:00
Alex Tselegidis
a8b5062bd3 Correct login href value based on logged-in state. 2022-01-17 18:06:31 +01:00
Alex Tselegidis
2b0eb8d18b Remove remanining GlobalVariables occurrences. 2022-01-17 18:02:50 +01:00
Alex Tselegidis
46f0a27998 The layout modules will initialize the language selection on their own. 2022-01-17 17:54:30 +01:00
Alex Tselegidis
d333869952 Port the change language callback to the Account controller. 2022-01-17 17:42:47 +01:00
Alex Tselegidis
390d66f8d2 Code refactoring and improvements for the recovery page. 2022-01-17 14:45:20 +01:00
Alex Tselegidis
1ebc50893e Code refactoring and improvements for the unavailabilities modal component. 2022-01-17 04:46:18 +01:00
Alex Tselegidis
f2c40a58b2 Rename the manage-unavailable-modal to unavailabilities-modal 2022-01-14 08:43:53 +01:00
Alex Tselegidis
7126d75988 Rename the manage-appointment-modal to appointments-modal 2022-01-14 08:39:11 +01:00
Alex Tselegidis
778edf0b21 Redirect to "calendar" route instead of "backend" after a successful log in. 2022-01-14 08:34:28 +01:00
Alex Tselegidis
f327fd5221 Refactor the booking confirmation related JS files so that they become standalone modules. 2022-01-13 11:33:46 +01:00
Alex Tselegidis
43ad017d7a Refactor the booking related JS files so that they become standalone modules. 2022-01-13 11:33:40 +01:00
Alex Tselegidis
795eccb165 The booking footer "backend" link must point to the new calendar controller. 2022-01-13 11:33:19 +01:00
Alex Tselegidis
745f70848a Refactor the calendar related JS files so that they become standalone modules. 2022-01-12 11:22:54 +01:00
Alex Tselegidis
44b438440b Add missing phpdoc template variable. 2022-01-12 11:20:07 +01:00
Alex Tselegidis
64eecc5895 Add missing utils to installations.php template. 2022-01-12 11:18:57 +01:00
Alex Tselegidis
21be3e7b50 Refactor the providers helper JS file so that it becomes a standalone module. 2022-01-11 10:54:46 +01:00
Alex Tselegidis
5e59c3b5a3 Add missing utulity scripts to business_settings.php. 2022-01-11 10:54:14 +01:00
Alex Tselegidis
c5a1c2a8c0 Add support for nested layout sections 2022-01-11 10:26:49 +01:00
Alex Tselegidis
0a005d570b Support multiple additions of the same section content 2022-01-11 10:11:09 +01:00
Alex Tselegidis
cd2fe86aa3 The working_plan_exceptions_modal.php will load its own script automatically 2022-01-10 09:38:06 +01:00
Alex Tselegidis
d574a3b981 Make sure the user ID and role slug are available on all backend pages. 2022-01-10 09:36:11 +01:00
Alex Tselegidis
e2bffc5e95 Refactor the categories helper JS file so that it becomes a standalone module. 2022-01-10 09:26:28 +01:00
Alex Tselegidis
195680e8b3 Refactor the services helper JS file so that it becomes a standalone module. 2022-01-10 09:16:28 +01:00
Alex Tselegidis
41f25026de Convert the secretaries page to the new js module structure. 2022-01-07 09:44:51 +01:00
Alex Tselegidis
30418468e8 Convert the admins page to the new js module structure. 2022-01-07 09:29:04 +01:00
Alex Tselegidis
7f4756a6df Correct input filter component and remove the clear button for other pages 2022-01-07 08:56:46 +01:00
Alex Tselegidis
7b54377f92 Correct input filter component and remove the clear button 2022-01-07 08:47:19 +01:00
Alex Tselegidis
fe06d8382e Add missing scripts to customers template 2022-01-07 08:42:28 +01:00
Alex Tselegidis
5f211ff005 Add the required script and html vars for the customers page to work. 2022-01-06 09:54:06 +01:00
Alex Tselegidis
1a2909f9d0 Removed the old customer javascript initialization code from customers.php 2022-01-06 09:52:27 +01:00
Alex Tselegidis
df84875314 Fine tuning the about page structure. 2022-01-05 09:16:23 +01:00
Alex Tselegidis
917f9c7ca4 Remove unnecessary loader calls 2022-01-05 09:08:50 +01:00
Alex Tselegidis
ae342f1671 Refactored the legal settings page functionality and structure 2022-01-05 09:08:39 +01:00
Alex Tselegidis
2589902a26 Changed menu item order 2022-01-05 08:37:42 +01:00
Alex Tselegidis
8065412915 Corrected section name in customers.php 2022-01-05 08:36:48 +01:00
Alex Tselegidis
4e9ed6bf52 Adjusted required customer fields based on booking to the appointments modal 2022-01-05 08:31:58 +01:00
Alex Tselegidis
d4005bd378 Adjusted required customer fields based on booking to the customers page 2022-01-05 08:31:57 +01:00
Alex Tselegidis
6ed5c8793e Removed semicolons 2022-01-05 08:12:06 +01:00
Alex Tselegidis
270b29dccc Removed unused variable 2022-01-05 08:06:56 +01:00
Alex Tselegidis
e4774ee991 Do not send an email to customer if no email is provided. 2021-12-20 09:39:01 +01:00
Alex Tselegidis
bd9b5f196a Customer model will honor the display/require settings 2021-12-20 09:38:51 +01:00
Alex Tselegidis
afad7920eb The booking page will render based on the selected displayed/required fields. 2021-12-20 09:38:37 +01:00
Alex Tselegidis
4eec5fbe46 Refactored the booking settings page functionality and structure 2021-12-20 09:16:44 +01:00
Alex Tselegidis
7799f08da6 The privileges variable is not needed by the account.php template 2021-12-20 09:16:05 +01:00
Alex Tselegidis
37c46c7286 Removed unnecessary validation from general settings 2021-12-20 09:15:05 +01:00
Alex Tselegidis
29423647b6 Added migration for displayed/required booking fields 2021-12-20 08:07:57 +01:00
Alex Tselegidis
745a2f7c67 Corrected field name in the downgrade method of a migration class 2021-12-20 07:09:23 +01:00
Alex Tselegidis
6017abea45 Refactored the business settings page functionality and structure 2021-12-18 21:36:25 +01:00
Alex Tselegidis
34fbd2060d Fixes on the general settings page 2021-12-18 21:06:24 +01:00
Alex Tselegidis
2342e0d3d0 Fixes on the general settings page 2021-12-18 21:04:59 +01:00
Alex Tselegidis
42ff670928 Refactored the general settings page functionality and structure 2021-12-18 20:53:59 +01:00
Alex Tselegidis
84df2423c2 Improved the footer display for mobile and desktop viewports 2021-12-18 19:32:26 +01:00
Alex Tselegidis
8ea5b1c4eb Removed the release label config form the app 2021-12-18 19:20:46 +01:00
Alex Tselegidis
3f35658643 HTML structure changes to the account page 2021-12-18 19:16:22 +01:00
Alex Tselegidis
a3282febc9 Added new callback to the account controller to validate usernames 2021-12-18 18:55:58 +01:00
Alex Tselegidis
f58d3b142b The user model can validate usernames 2021-12-18 18:55:42 +01:00
Alex Tselegidis
f0992fd4f6 Changed the account page attributes and added the validation script 2021-12-18 18:55:27 +01:00
Alex Tselegidis
c53cd000d8 Refactored the account page functionality and structure 2021-12-18 18:25:03 +01:00
Alex Tselegidis
a090b2eba9 Updated the file banner info 2021-12-18 17:44:07 +01:00
Alex Tselegidis
72bc5efe34 Removed obsolete permissions prop 2021-12-18 17:37:00 +01:00
Alex Tselegidis
526df6e4d7 Replaced the "show_error" with the "abort" equivalent 2021-12-18 17:32:05 +01:00
Alex Tselegidis
0ff19b050d Use the html_vars and script_vars for assigning the page variables 2021-12-18 17:22:40 +01:00
Alex Tselegidis
2cc3123a2f Added var tags in the template comments 2021-12-17 10:59:07 +01:00
Alex Tselegidis
5420ef1389 Updated the booking page so that it works with the new html_vars and script_vars helper functions. 2021-12-17 10:55:37 +01:00
Alex Tselegidis
74c48e8a9a Renamed and updated the js_lang_script and js_vars_script components 2021-12-17 10:55:10 +01:00
Alex Tselegidis
16cea9e6a9 Updated Login to use the script_vars helper function 2021-12-17 10:53:22 +01:00
Alex Tselegidis
a40bd3f6c6 Updated EA_Controller to use the script_vars helper function 2021-12-17 10:53:08 +01:00
Alex Tselegidis
238ca6c820 Renamed config helper methods to script_vars and html_vars for consistency 2021-12-17 10:52:46 +01:00
Alex Tselegidis
bd363d0725 Rename is_route helper functiont to is_callback 2021-12-17 10:36:47 +01:00
Alex Tselegidis
6c4a15b429 Treat undefined keys as NULL 2021-12-17 10:36:22 +01:00
Alex Tselegidis
5916ad47d1 Added support for the new "calendar/reschedule" callback 2021-12-17 09:20:54 +01:00
Alex Tselegidis
7b919e2c39 Changed reschedule links for both customer and provider 2021-12-17 09:19:31 +01:00
Alex Tselegidis
dbba0865e8 Removed caching from the settings helper as it may lead to unexpected behavior (if for example values get updated in another way). 2021-12-17 09:01:12 +01:00
Alex Tselegidis
bfe6664d58 Added new "page_vars" function that will handle the rendered page variables. 2021-12-17 08:46:47 +01:00
Alex Tselegidis
bfef58672c Added new "is_route" helper method 2021-12-17 08:45:28 +01:00
Alex Tselegidis
775d385e09 Added caching to the settings helper so that we avoid unnecessary queries to the database. 2021-12-17 08:44:38 +01:00
Alex Tselegidis
e071ec46dc Common CSRF token generation correctly 2021-12-16 08:45:55 +01:00
Alex Tselegidis
c49f141bbb Moved the booking confirmation and cancellation code out of the booking controller 2021-12-16 08:37:55 +01:00
Alex Tselegidis
bb3665272d Renamed language_script.php to js_language_script.php for clarity 2021-12-16 08:21:29 +01:00
Alex Tselegidis
c9d9153594 Renamed config_script.php to js_config_script.php for clarity 2021-12-16 08:20:10 +01:00
Alex Tselegidis
4ef2c0a9bb Changed cancellation frame view file name 2021-12-16 08:19:08 +01:00
Alex Tselegidis
1a0ed47fe3 Changed the names of the booking step components 2021-12-16 08:18:37 +01:00
Alex Tselegidis
3dee36d4c1 Moved booking sections into the components directory 2021-12-16 08:13:27 +01:00
Alex Tselegidis
dc8d6ad140 Update has its own controller class 2021-12-16 08:10:01 +01:00
Alex Tselegidis
ff03b71060 Replaced resource names with constants for "cannot" checks 2021-12-15 08:05:08 +01:00
Alex Tselegidis
568ff9be2e Renamed the service category resource to just category 2021-12-15 08:00:48 +01:00
Alex Tselegidis
41635413a1 Moved scripts to the script slot 2021-12-15 07:59:54 +01:00
Alex Tselegidis
16863bcf5b Renamed the id_service_categories field of services to id_categories 2021-12-15 07:45:41 +01:00
Alex Tselegidis
777dcb0d9e Reverted invalid migration changes 2021-12-15 07:41:05 +01:00