Commit Graph
17 Commits
Author SHA1 Message Date
Guillaume ARNOUX e154086ec5 fix some input types (#1326) 2023-06-13 19:37:02 +02:00
Belle Aerni 1e32a600b0 Make client profile respect "required" params (#1097) 2023-04-11 09:23:49 +01:00
Adam Daley 9fb19e02d7 Improve date/datetime format handling and customisability (#948)
* Replace custom Twig bb_date/bb_datetime filters

Replace bb_date and bb_datetime Twig filters with format_date / format_datetime to better support i18n and customisability.

* Update templates to use format_date/format_datetime

Update all templates to use format_date/format_datetime (where appropriate and where not already used).

* Update locale configuration options

Update configuration options to include new locale settings, and ensure new options are used throughout.

* Add reset button to admin theme date picker

Add a reset button to the admin_default theme date picker to allow dates to be cleared, and fix an issue with Order module not allow blank dates. Resolves #938.
2023-03-24 23:16:07 +00:00
Shamshid dd36cf6362 revert admin datepicker from client area (#910) 2023-03-08 10:07:45 +01:00
Shamshid e4d7996530 Upgrade jquery to v3 and cleanup related deprecations (#904)
* fix deprecations by using `.on()` method

* replace keyCode event with key

* use jquery v3 from npm

* fix support ticket canned response by replacing select2 lib

* fix `ajaxStart()` method requirement to be document

* remove jquery uniform()

* remove jquery.scrollTo

* finally, remove jquery v1

* remove unused CSS

* move canned_ticket_response style

* fix deprecated `:eq()` selector

* fix jquery.alert by adding package to bring in removed $.browser feat from v1

* fix escape key

* add comment for clarity on the added package

* remove unused css

* remove duplicate jquery-ui css
2023-03-08 08:57:35 +00:00
Shamshid 19197a5997 Replace admin_default datepicker and remove jquery-ui (#899)
* add litepicker

* init and set litepicker

* remove jquery-ui
2023-03-06 03:23:19 -08:00
Jaap Marcus 4f61366065 Fix: Path profile update mod_client (#879)
See release notes 0.3.0
2023-03-01 17:22:57 +01:00
Adam edeaab5404 Add verification before permitting password change (#839)
Verify current password before allowing staff or clients to change password (#541).

API Endpoints Changed

    /api/admin/profile/change_password
        Required fields:
            current_password - Current admin user password.
            new_password - New admin user password.
            confirm_password - New admin user password confirmation.
    /api/client/profile/change_password
        Required fields:
            current_password - Current client user password.
            new_password - New client user password.
            confirm_password - New client user password confirmation.

Affected Theme Files

    mod_client_profile.html.twig
    mod_staff_profile.html.twig
2023-02-23 09:35:00 +02:00
Belle Aerni 714e7c1768 Fix custom fields not being displayed on the client profile 2023-02-12 20:48:08 -08:00
Belle Aerni a67fbeb8a0 Update old API call
This is removed as of 0.3.0, so this PR points it to the new API endpoint under the profile module
2023-02-08 23:05:26 -08:00
Belle Aerni 4d7b341e03 Removed / cleaned up deprecated functions (#755)
* Add PHPStan extension for deprecation function usage

* Removed some deprecated functions

* And a few more

* Also remove the deprecated API calls

* Fix references to deprecated API calls

* Oh, and this too
2023-02-01 03:36:02 -08:00
Belle Aerni 82bb879097 Add more inclusive gender options (#753)
And allow it to be updated from within the client's profile.

This doesn't appear to be used anywhere in our default modules, but it's at least nice to give more inclusive options and allow it to be update by the client, for if it is ever used by a module.
2023-01-30 08:10:55 +01:00
John @ S4 98fef2e1d1 Update mod_client_profile.html.twig 2023-01-11 14:38:00 +02:00
John @ S4 0d32d8ea46 Update mod_client_balance.html.twig 2023-01-11 14:37:08 +02:00
Belle Aerni 8821d50cff Created a CSRF token system (#526)
* Implement a basic CSRF token system

* Update forms for all modules

* Added to the theme forms

* Create a config option for CSRF prevention

* Slightly rework the filter

* Let's actually use a global var

* Added the token to API hrefs

* Fixup

* Remove old reference

* Added the token to the installer twig globals

* The token isn't actually needed in the installer

* Fix client searching

* Whoops - those need quotes
2022-12-06 18:47:14 +01:00
evrifaessa 8cd8f57003 Typos and wording 2022-12-03 19:28:03 +03:00
Belle Aerni edd6f72634 Drop the "BB" prefix 2022-11-28 17:22:50 +03:00