@@ -, +, @@
page
- In Administration -> Patron categories, confirm that you have two
patron categories with different default messaging preferences
defined.
- Go to Patrons -> New patron
- Create a new patron using one of the categories with messaging
preferences.
- Confirm that when you switch the category selection to the other
patron category, the patron messaging preference checkboxes are
changed to the default for that category.
- A "Loading" indicator should appear above the checkboxes to show
that an operation is in process. It should disappear when new
default prefs are loaded.
- Manually change one or more patron messaging preference checkboxes.
- Switch the patron category again and confirm that you are prompted
to confirm resetting the preferences to the default for that
category.
- Perform the same set of tests when editing a patron.
- Defaults should not be loaded during the edit process.
- Confirm that there are no other JavaScript errors in the console.
- Test again with EnhancedMessagingPreferences disabled.
---
.../intranet-tmpl/prog/css/src/staff-global.scss | 9 ++++
.../prog/en/modules/members/memberentrygen.tt | 50 ++--------------------
.../prog/js/messaging-preference-form.js | 48 +++++++++++++++++++++
3 files changed, 61 insertions(+), 46 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
+++ a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
@@ -3882,6 +3882,15 @@ span {
}
}
+
+.form-message {
+ background-color: #FFF;
+ border: 1px solid #A4BEDD;
+ border-radius: 5px;
+ margin: 1em;
+ padding: .5em;
+}
+
.modal-textarea {
width: 98%;
}
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
@@ -1083,52 +1083,9 @@
[% IF ( step_5 ) %][% IF ( EnhancedMessagingPreferences ) %]