Commit graph

725 commits

Author SHA1 Message Date
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
Alex Tselegidis
5d8a35f120 Renamed service categories table to categories 2021-12-15 07:31:42 +01:00
Alex Tselegidis
ba38392c46 Corrected validation check in routes.php file 2021-12-15 07:31:05 +01:00
Alex Tselegidis
c8bd47d1e5 Removed the "_page" postfix from page view files 2021-12-14 08:08:06 +01:00
Alex Tselegidis
12e4eebd1f Set the "dest_url" js config 2021-12-14 08:06:10 +01:00
Alex Tselegidis
e8a1976521 The dest_url may have not been set by all account layout pages 2021-12-14 08:05:49 +01:00
Alex Tselegidis
d1e79910a9 Moved scripts to the scripts section 2021-12-14 08:05:22 +01:00
Alex Tselegidis
58e38fd488 Load common JS config for all requests 2021-12-14 07:59:11 +01:00
Alex Tselegidis
c761f6d37c Use the js_config component in all pages 2021-12-14 07:52:41 +01:00
Alex Tselegidis
1eaa59d192 Corrected the js_config helper function 2021-12-14 07:51:26 +01:00
Alex Tselegidis
62a5ace98e Added the config_script.php file that will load the application config values to the global App object 2021-12-14 07:48:09 +01:00
Alex Tselegidis
29b22ece3c Added the js_config helper method that will assign public JS config values 2021-12-14 07:47:35 +01:00
Alex Tselegidis
9c44b8644f Renamed csrfToken var to csrf_token for consistency 2021-12-14 07:29:51 +01:00
Alex Tselegidis
6376fea885 Added the find method to controllers 2021-12-14 07:18:46 +01:00
Alex Tselegidis
d0ad54ce49 Replaced EALang with the global App.Lang object 2021-12-13 07:52:09 +01:00
Alex Tselegidis
4f9fbc05e3 Added the language script in the layout templates 2021-12-13 07:48:56 +01:00
Alex Tselegidis
530422608a Moved scripts inside the script section 2021-12-13 07:44:01 +01:00
Alex Tselegidis
a95df871b9 Load the app and the layout JS files 2021-12-13 07:41:02 +01:00
Alex Tselegidis
885dcbf5c8 Moved the footer and header templates to the component directory 2021-12-13 07:34:51 +01:00
Alex Tselegidis
271be99f05 Layout view file improvements 2021-12-10 22:21:44 +01:00
Alex Tselegidis
450bc49932 Moved setting JS files to the pages directory. 2021-12-10 22:00:26 +01:00
Alex Tselegidis
bd412eba8e Refactored the installation page functionality 2021-12-10 09:12:08 +01:00
Alex Tselegidis
17b7ff6631 The login page now links to the new recovery route 2021-12-10 08:41:28 +01:00
Alex Tselegidis
6ab32781ad Moved the recovery functionality into its own controller and files 2021-12-10 08:41:16 +01:00
Alex Tselegidis
c00bfd9948 Changed var order 2021-12-10 08:34:56 +01:00
Alex Tselegidis
246d25c7f4 Moved the logout functionality into its own controller and files 2021-12-10 08:26:05 +01:00
Alex Tselegidis
63da7afce2 Renamed and moved the controller and view files of the settings page 2021-12-07 11:09:34 +01:00
Alex Tselegidis
622a4e9390 Moved the about controller and renamed the view file 2021-12-07 11:00:13 +01:00
Alex Tselegidis
523db7e5e3 Moved the login functionality into its own controller and files 2021-12-07 10:53:59 +01:00
Alex Tselegidis
db0b4fbdbd Removed the unused account_no_permissions_page.php file 2021-12-07 10:53:44 +01:00
Alex Tselegidis
cd5eff8819 Use the show_error function instead of the no-permissions callback 2021-12-07 10:53:20 +01:00
Alex Tselegidis
8528713ea2 Corrected script paths for the settings pages 2021-12-07 10:22:10 +01:00
Alex Tselegidis
f1849e3a16 Restructured the view/js/css files (flatter file structure) 2021-12-06 09:00:02 +01:00
Alex Tselegidis
e7d7307cd6 Corrected users menu item 2021-11-29 08:58:51 +01:00
Alex Tselegidis
617ada7641 Major assets restructuring (for better scalability). 2021-11-29 08:55:29 +01:00
Alex Tselegidis
3601cf14fc Footer styling 2021-11-29 08:12:02 +01:00
Alex Tselegidis
c188e678bc Link styling 2021-11-29 08:10:09 +01:00
Alex Tselegidis
ba3655266e Easily customize the bootstrap theme 2021-11-25 09:24:07 +01:00
Alex Tselegidis
8fc4e9587d Use the permission helper functions in backend_header.php 2021-11-25 09:17:07 +01:00
Alex Tselegidis
c9457a30e7 Various calendar page variable fixes 2021-11-25 09:13:27 +01:00
Alex Tselegidis
d94617945b Added missing index method of Calendar controller 2021-11-25 09:13:19 +01:00
Alex Tselegidis
e2d6dd7f4f Updated header link to calendar controller 2021-11-25 09:13:00 +01:00
Alex Tselegidis
056e445dba Corrected prop name 2021-11-25 09:08:30 +01:00
Alex Tselegidis
7841535802 Corrections in the customers page 2021-11-25 08:46:01 +01:00
Alex Tselegidis
bc723c2609 Added legal-contents to the backend header navigation 2021-11-25 08:41:46 +01:00
Alex Tselegidis
f2bb4519a5 Load the appointment and customer data after inserting them for the first time 2021-11-25 08:40:37 +01:00
Alex Tselegidis
232fa89b15 Load roles model 2021-11-24 09:23:48 +01:00
Alex Tselegidis
5906ae2aef Removed the datejs from the layouts 2021-11-24 08:34:13 +01:00
Alex Tselegidis
73bc0659cd Corrected the database table name 2021-11-24 08:33:27 +01:00
Alex Tselegidis
bea81e4aa3 Since Bootstrap 5 is using popper v2, we can use the bootstrap.min.js file directly 2021-11-23 10:12:49 +01:00
Alex Tselegidis
3808185ac9 Replaced the use of the "hidden" class with the "hidden" attribute 2021-11-23 10:06:13 +01:00
Alex Tselegidis
633cf0a722 Adjusted the form elements based on the new Bootstrap 5 structure 2021-11-23 09:53:10 +01:00
Alex Tselegidis
ec2109db54 Changed data-dismiss to data-bs-dismiss 2021-11-23 08:46:32 +01:00
Alex Tselegidis
01fe98602f Further utility class fixes 2021-11-23 08:43:40 +01:00
Alex Tselegidis
0088065e43 Updated the margin helper classes 2021-11-23 08:41:37 +01:00
Alex Tselegidis
684b7e700e Changed data-toggle to data-bs-toggle 2021-11-23 08:37:41 +01:00
Alex Tselegidis
4a9f5f4a87 Updated the modal close button 2021-11-23 08:35:39 +01:00
Alex Tselegidis
c2cb077850 There are no badge color classes any more 2021-11-23 08:34:03 +01:00
Alex Tselegidis
6eaebe449e Corrected typo 2021-11-23 08:21:50 +01:00
alextselegidis
35301e769a Renamed migration class 2021-11-22 08:09:56 +01:00
alextselegidis
e0a6f9482e Removed the tabindex prop as it makes problems with datepickers in iOS mobile devices 2021-11-22 08:09:56 +01:00
alextselegidis
d6debb40f5 Removed old settings files 2021-11-22 08:09:56 +01:00
alextselegidis
1cd0d45153 Converted the settings menu to a dropdown widget 2021-11-22 08:09:56 +01:00
alextselegidis
83bfd87d5d Ported the current about content to a new standalone page 2021-11-22 08:09:56 +01:00
alextselegidis
a622f2f295 Ported the current user settings functionality to a new standalone page 2021-11-22 08:09:56 +01:00
alextselegidis
35a05de1f0 Ported the legal contents settings functionality to a new standalone page 2021-11-22 08:09:56 +01:00
alextselegidis
fc48db0ea4 Ported the client form settings functionality to a new standalone page 2021-11-22 08:09:56 +01:00