Commit graph

675 commits

Author SHA1 Message Date
Alex Tselegidis
81044eb9c6 Corrected issue with routing and CORS while running from the terminal 2021-11-18 17:17:08 +01:00
Alex Tselegidis
255d1b5d95 Corrected the CORS headers hanlding 2021-11-18 15:01:17 +01:00
alextselegidis
2d1fb357c8 Ported the business logic settings functionality to a new standalone page 2021-11-18 08:49:23 +01:00
alextselegidis
753237d003 Ported the general settings functionality to a new standalone page 2021-11-18 07:53:41 +01:00
alextselegidis
fa97f743ae Added settings related callbacks to the Settings controller (copied from Backend_api) 2021-11-18 07:34:43 +01:00
alextselegidis
f5cedbd0d5 Added calendar related callbacks to the Calendar controller (copied from Backend_api) 2021-11-18 07:30:52 +01:00
alextselegidis
4b4d8887e8 Added google related callbacks to the Google controller (copied from Backend_api) 2021-11-18 07:30:31 +01:00
alextselegidis
b06a2505b2 Created a new unavailabilities resource controller 2021-11-18 07:29:41 +01:00
alextselegidis
8a8f4a7ce0 Changed the cancellation URL to point to the Booking controller 2021-11-18 07:13:11 +01:00
alextselegidis
fa52b14bb7 The default route should point to the booking controller 2021-11-18 07:12:30 +01:00
alextselegidis
7eac5b8638 Moved the frontend book functionality to a new controller called Booking.php and created a new resource controller for appointments 2021-11-18 07:12:16 +01:00
alextselegidis
28f6a58211 Updated comment 2021-11-18 07:09:21 +01:00
alextselegidis
fec42278c8 Created a new customers resource controller 2021-11-18 06:34:07 +01:00
alextselegidis
df13336af5 Changed page ID attribute (service categories) 2021-11-18 06:28:00 +01:00
alextselegidis
d8a5460397 Changed page ID attribute (providers) 2021-11-18 06:28:00 +01:00
alextselegidis
16cfd17536 Dropdown navbar menu for users 2021-11-18 06:25:30 +01:00
alextselegidis
7a3aa38622 Created a new secretaries resource controller 2021-11-18 06:23:21 +01:00
alextselegidis
e842089694 Removed semicolon 2021-11-18 06:13:28 +01:00
alextselegidis
d6b294a12b Created a new admins resource controller 2021-11-18 06:11:18 +01:00
alextselegidis
4bbcb9fff8 Created a new providers resource controller 2021-11-18 06:08:36 +01:00
alextselegidis
8682fc886b Removed the services part from the service categories page 2021-11-18 05:35:56 +01:00
alextselegidis
2a599f11b8 Removed the service categories part from the services page 2021-11-18 05:32:46 +01:00
alextselegidis
54ee7ac924 Dropdown navbar menu for services 2021-11-18 05:28:16 +01:00
alextselegidis
aadac6a060 Created a new service categories resource controller 2021-11-18 05:23:54 +01:00
alextselegidis
8dd509d4dc Created a new services resource controller 2021-11-18 05:21:30 +01:00
alextselegidis
af42c7c532 The availability generation algorithm needs performance improvements when many appointments are stored in the system (#1171). 2021-11-17 18:10:06 +01:00
alextselegidis
f7b2e60f95 PHP formatting 2021-11-17 09:28:35 +01:00
alextselegidis
e86b01dada Added background color to the standalone error pages 2021-11-17 09:28:04 +01:00
alextselegidis
8bad857edb Modified the exception and error messages so that they display nicely within the modal and on standalone pages 2021-11-17 09:26:13 +01:00
alextselegidis
758e556f56 Use the bootstrap.bundle.min.js in the installations page 2021-11-17 08:49:51 +01:00
alextselegidis
8c353917b2 Load the working plan exceptions modal via the component helper 2021-11-17 08:46:58 +01:00
alextselegidis
81b93fc17d The set setting may also get int and bool values 2021-11-17 08:46:48 +01:00
alextselegidis
8ce3a8ffce The timezone dropdown becomes a component for customers_page.php 2021-11-17 08:42:12 +01:00
alextselegidis
532ee4fabc Allow multiple renders with the loader class during the rendering of a layout page 2021-11-17 08:41:51 +01:00
alextselegidis
35f9a6eb1c Replaced bootstrap.min.js with bootstrap.bundle.min.js so that popper dependent widgets work 2021-11-17 08:28:44 +01:00
alextselegidis
d3787b2b29 The calendar page must also extend from the backend layout 2021-11-16 10:40:54 +01:00
alextselegidis
aa760e827e Fixed variable problems of the manage_appointment_modal.php component 2021-11-16 10:40:15 +01:00
alextselegidis
12a12caa36 Added missing slots to the backend layout file 2021-11-16 10:39:51 +01:00
alextselegidis
4a49800674 Minor formatting 2021-11-16 10:22:24 +01:00
alextselegidis
a3ab7ad898 Added the meta and styles slots to the account layout 2021-11-16 10:21:42 +01:00
alextselegidis
2966b89a59 Added the missing scripts section to the account layout 2021-11-16 10:20:53 +01:00
alextselegidis
ca8f3524ef Replaced the render function with the new component function 2021-11-16 10:15:37 +01:00
alextselegidis
5fb2fcdf71 Relative paths in booking_page.php 2021-11-16 10:15:23 +01:00
alextselegidis
f0109226ce Render the layout filename prop 2021-11-16 10:15:05 +01:00
alextselegidis
62b0651ce8 Fixed issues with component rendering 2021-11-16 10:14:47 +01:00
alextselegidis
8f74643437 Updated the controller classes to use the slots instead 2021-11-15 09:49:19 +01:00
alextselegidis
914ed84a40 The view files use the new layout slots 2021-11-15 09:49:08 +01:00
alextselegidis
79d2460b2a Added slots to the layouts 2021-11-15 09:48:51 +01:00
alextselegidis
ae408c4bfb Adjusted the components html helper function 2021-11-15 09:48:26 +01:00
alextselegidis
31b6c104c3 Removed the layout method as it is no longer needed 2021-11-15 09:47:51 +01:00
alextselegidis
b7bcaa86be Override the "view" method of the CI_Loader class so that layouts are supported 2021-11-15 08:53:59 +01:00
alextselegidis
b7c39e94a2 Renamed the component_helper.php file to html_helper.php 2021-11-15 08:53:24 +01:00
alextselegidis
4a29034418 Added new layout helper methods in the component_helper.php file 2021-11-15 08:52:35 +01:00
alextselegidis
abf9bdd049 Set the page title of the booking page 2021-11-12 21:27:11 +01:00
alextselegidis
702089beb7 Removed period from translation key 2021-11-12 21:26:43 +01:00
alextselegidis
1103db92df Loaded scripts from the appointments controller 2021-11-12 17:30:09 +01:00
alextselegidis
2d1c7c0f7a Miscellaneous fixes and refactoring on Appointments.php 2021-11-12 17:23:43 +01:00
alextselegidis
548bc04c88 Corrected moment timezone script URL 2021-11-12 17:22:39 +01:00
alextselegidis
d2be2327e8 Minor refactoring for the appointments page 2021-11-12 17:09:39 +01:00
alextselegidis
eb64b6c7ef The google analytics code does not need to be loaded twice 2021-11-12 17:09:01 +01:00
alextselegidis
3fa817d52d Renamed the email templates for more consistency 2021-11-12 16:58:55 +01:00
alextselegidis
007e95ed7a Moved the installation and update pages to the new view/pages directory 2021-11-12 16:57:05 +01:00
alextselegidis
0b9f7ecea2 Updated the routes.php config file comments and added the missing "translate_uri_dashes" config entry 2021-11-12 16:54:21 +01:00
alextselegidis
cf579dddc2 Removed the error override configuration and files 2021-11-12 16:53:42 +01:00
alextselegidis
ee6729cf0b Converted all the account related pages to the new layout structure 2021-11-12 16:51:25 +01:00
alextselegidis
64846e0107 Removed the appointments directory from the view files 2021-11-12 16:40:12 +01:00
alextselegidis
9fdafa5497 Converted the booking message to the booking message layout 2021-11-12 16:39:38 +01:00
alextselegidis
b31b4c87bd Converted the booking success page to the layout structure 2021-11-12 16:33:01 +01:00
alextselegidis
35393642fa Default value for the styles, scripts and global variables entry 2021-11-12 16:32:31 +01:00
alextselegidis
d96e65792b Converted the booking page view files to the layout structure 2021-11-12 08:38:20 +01:00
alextselegidis
2479ffb3a1 Changed the users callback to use the layout loading method 2021-11-12 08:37:50 +01:00
alextselegidis
3ca9211449 Created the backend layout and moved all of its templates into the new "pages" directory 2021-11-12 08:25:27 +01:00
alextselegidis
fa313c3ef3 Moved partial and other reusable view files into the new "components" directory 2021-11-12 08:24:43 +01:00
alextselegidis
ad3d726d1a Added new layout loading method to the EA_Loader.php file. 2021-11-12 08:22:49 +01:00
alextselegidis
2d681a774a Autoload the new component helper 2021-11-11 09:01:57 +01:00
alextselegidis
179e72bfb9 Changed the directory of the render functions to "components" 2021-11-11 09:01:42 +01:00
alextselegidis
538ded7d69 Added new component helper file 2021-11-11 09:00:48 +01:00
alextselegidis
0e8ebc8110 Added doc blocks for template vars and did minor template fixes 2021-11-10 08:32:46 +01:00
alextselegidis
44fffb1c56 Moved the remaining modals into their own files. 2021-11-09 08:53:09 +01:00
alextselegidis
2068f70840 Moved the modal view files to a new modals directory 2021-11-09 08:47:09 +01:00
alextselegidis
fb92fa1832 Updated the meta html tag of the view files 2021-11-09 08:44:37 +01:00
alextselegidis
6c356aec50 Added new functions to the render helper that render the global variables and EALang scripts into a view file 2021-11-09 08:40:20 +01:00
alextselegidis
6d567a74a4 Added new layout method to the loader 2021-11-09 08:39:30 +01:00
alextselegidis
cd9a92bed9 Removed the polyfill scripts as it is no longer needed. 2021-11-09 08:11:33 +01:00
Alex Tselegidis
f371177fb6 Updated the vendor script paths in the view files 2021-11-08 10:57:03 +01:00
Alex Tselegidis
f41547b77d Method could also return null and not always an int 2021-11-08 10:44:36 +01:00
Alex Tselegidis
85bd7b9b38 Renamed attach to load in Backend_api.php 2021-11-06 17:14:57 +01:00
Alex Tselegidis
331aa8c174 Moved the old BASE URL to the app configuration for use in mails etc where a public facing URL is required 2021-11-06 17:11:09 +01:00
Alex Tselegidis
1c88a2f987 The app will now automatically detect the BASE URL based on the current request. 2021-11-06 17:07:03 +01:00
Alex Tselegidis
4a696fc992 Changed the develop state version 2021-11-06 16:54:34 +01:00
Alex Tselegidis
5f211f3cf1 Updated comment 2021-11-06 16:53:57 +01:00
Alex Tselegidis
356629fab6 Minor formatting 2021-11-06 16:52:52 +01:00
Alex Tselegidis
3e1381c302 Moved the app related config in a new app.php config file 2021-11-06 16:52:46 +01:00
Alex Tselegidis
a20f2e9e33 Corrected the login HTTP callback 2021-11-06 16:51:36 +01:00
Alex Tselegidis
54e86795d5 Minor comment changes for consistency 2021-11-06 16:21:27 +01:00
Alex Tselegidis
245fc43ec1 Replaced the old engine class use with the new Email_messages library 2021-11-06 16:11:55 +01:00
Alex Tselegidis
130adf88c3 Created new email messages library (ported the deprecated engine email class) 2021-11-06 16:11:44 +01:00
Alex Tselegidis
31b452766d Refactored the login controller callback 2021-11-06 16:09:59 +01:00
Alex Tselegidis
e38df7452b Renamed the attach query paramter of API controllers to with 2021-11-06 15:41:11 +01:00
Alex Tselegidis
c68565e2c3 Renamed the attached method to load for all models 2021-11-06 15:40:55 +01:00
Alex Tselegidis
f36c49819c Added support for the "attach" query parameter to all API controllers 2021-11-06 15:34:54 +01:00
Alex Tselegidis
bd8144f7cb Make sure the attach method works with API properties 2021-11-06 15:34:35 +01:00
Alex Tselegidis
89b9c802a2 Unavailabilities can only attach a provider record 2021-11-06 15:21:11 +01:00
Alex Tselegidis
bcc9b88623 Added support for upgrading and downgrading manually the database via the CLI 2021-11-06 15:17:03 +01:00
Alex Tselegidis
0a88442aa2 Corrected the settings routing config 2021-11-06 15:04:26 +01:00
Alex Tselegidis
8603a8ae33 Refactored all the API controller classes (and renamed them) to work well on top of the models 2021-11-06 15:03:08 +01:00
Alex Tselegidis
b4f903e724 Various fixes and additions to the model classes 2021-11-06 15:02:40 +01:00
Alex Tselegidis
1883b97630 Fixed API authorization issue 2021-11-06 15:01:17 +01:00
Alex Tselegidis
27c5c3ab35 Replaced the appointments model with the unavailabilities model in the Backend_api.php 2021-11-06 14:56:56 +01:00
Alex Tselegidis
00f54dcfec Added the new Unavailabilities_model @property to EA_Controller.php 2021-11-06 14:56:12 +01:00
Alex Tselegidis
c7bb9d3a47 Added new Unavailabilities_model.php to enable handling such records as an independent resource 2021-11-06 14:55:36 +01:00
Alex Tselegidis
2406eefd39 Added validation to the sort direction value 2021-11-06 13:30:12 +01:00
Alex Tselegidis
01dfdf22f1 Added manual imports so that the migration system works again 2021-11-06 11:15:32 +01:00
Alex Tselegidis
4020e40a25 Corrected settings and availabilities routes 2021-11-06 11:15:15 +01:00
Alex Tselegidis
169b9818a6 Use the new routes helper in the routes.php config file 2021-11-06 10:23:25 +01:00
Alex Tselegidis
308e41bbe1 Autoload the new routes_helper.php file 2021-11-06 10:22:09 +01:00
Alex Tselegidis
3476807b40 Added the routes helper file 2021-11-06 10:18:46 +01:00
Alex Tselegidis
ba77658551 Ported the api parser encode and decode into the model classes 2021-11-05 09:37:14 +01:00
Alex Tselegidis
95a4e94a53 The response helper function must properly set the status code and the headers 2021-11-05 08:31:37 +01:00
Alex Tselegidis
3c5be0d12b The set setting method could also get a NULL value 2021-11-05 08:28:59 +01:00
Alex Tselegidis
afc05577a4 Refactored the admins API controller (no engine code is being used). 2021-11-03 08:38:59 +01:00
Alex Tselegidis
ea659ccb9f The base model knows how to map an API resource field to a DB field. 2021-11-03 08:22:27 +01:00
Alex Tselegidis
c390a6552a Using the request helper without specifying a key should return the entire request body. 2021-11-03 08:22:05 +01:00
Alex Tselegidis
10ee3401e4 The API library can correctly sort and set the CORS headers 2021-11-03 08:21:30 +01:00
Alex Tselegidis
6eaa6e52a5 Added API resource mapping 2021-11-03 08:21:03 +01:00
Alex Tselegidis
4c6c5b5913 Remove the old and deprecated API_V1_Controller.php 2021-11-02 10:45:05 +01:00
Alex Tselegidis
7d3bc3104c Created new library that handles common API functionality. 2021-11-02 10:44:37 +01:00
Alex Tselegidis
c2127a28fb Added missing comments 2021-11-02 10:04:46 +01:00
Alex Tselegidis
dc50f8dee1 Updated @since tag 2021-11-02 09:24:28 +01:00
Alex Tselegidis
bdaa46459c The new settings model does not have the set_setting and get_setting values. 2021-10-29 13:21:03 +02:00
Alex Tselegidis
306e94a082 The delete model method does not return a result any more. 2021-10-29 13:20:33 +02:00
Alex Tselegidis
4ed7465784 Corrected the name of the exception variable 2021-10-29 13:16:21 +02:00
Alex Tselegidis
182cebfb74 Renamed the add_unavailable method to save_unavailable for consistency 2021-10-29 13:12:39 +02:00
Alex Tselegidis
e29c2198de Removed the delete_unavailable method 2021-10-29 13:11:56 +02:00
Alex Tselegidis
8b02cbb369 Added missing type hints for method params 2021-10-29 13:10:54 +02:00
Alex Tselegidis
3dee2ef4ef Added missing @method tag in phpdoc comments 2021-10-29 13:10:36 +02:00
Alex Tselegidis
8947500968 If the request does not have the application/json content type header then return NULL 2021-10-29 13:08:41 +02:00
Alex Tselegidis
d886f6db16 Override the CSRF validation to support the X-CSRF header. 2021-10-29 13:06:56 +02:00
Alex Tselegidis
3233c19571 Added overrides for all the framework classes as templates and for consistency 2021-10-29 13:04:26 +02:00
Alex Tselegidis
12ec5c1ac3 The request helper can now also fetch JSON-payload attributes 2021-10-29 12:54:49 +02:00
Alex Tselegidis
dd546164fb Common type casting functionality 2021-10-29 12:39:49 +02:00
Alex Tselegidis
b7305be038 Type casting for the Users_model.php 2021-10-29 12:39:38 +02:00
Alex Tselegidis
d62dd9b053 Type casting for the Settings_model.php 2021-10-29 12:39:32 +02:00
Alex Tselegidis
83777d35ba Type casting for the Services_model.php 2021-10-29 12:39:27 +02:00
Alex Tselegidis
791f1e38e4 Type casting for the Service_categories_model.php 2021-10-29 12:39:20 +02:00
Alex Tselegidis
879b58ad6a Type casting for the Secretaries_model.php 2021-10-29 12:39:14 +02:00
Alex Tselegidis
23cdaa2c6b Type casting for the Roles_model.php 2021-10-29 12:39:08 +02:00
Alex Tselegidis
e0dbdeccfc Type casting for the Providers_model.php 2021-10-29 12:39:02 +02:00
Alex Tselegidis
9338ec4445 Type casting for the Customers_model.php 2021-10-29 12:38:56 +02:00
Alex Tselegidis
6cc17d7bf5 Type casting for the Consents_model.php 2021-10-29 12:38:49 +02:00