Koha/koha-tmpl/intranet-tmpl/prog/css
Owen Leonard 0117c6da8e Bug 22844: Simplify the process of selecting database columns for system preferences
This patch introduces a new way for users to select database columns for
system preferences like BorrowerMandatoryField, which currently
require hand-typing of database names.

This new system uses a JSON file containing label:column pairs for
database columns which are relevant to preferences which reference
borrower table columns. My intention was to have user-friendly values as
the labels, but embedding English strings in JSON would make them
untranslatable.

The following preferences are affected:

 - BorrowerMandatoryField
 - BorrowerUnwantedField
 - PatronSelfModificationBorrowerUnwantedField
 - PatronSelfRegistrationBorrowerMandatoryField
 - PatronSelfRegistrationBorrowerUnwantedField

== Test plan ==
 - apply the patches
 - regenerate the staff client CSS (yarn build)
 - updatedatabase
 - dbic
 - flush_memcached
 - restart_all to make sure the updated .pref file is used

 - Go to Administration -> System preferences, and search for
   "PatronSelf"
 - The input fields for PatronSelfModificationBorrowerUnwantedField,
   PatronSelfRegistrationBorrowerMandatoryField, and
   PatronSelfRegistrationBorrowerUnwantedField should appear as "locked"
   (read-only) inputs.
 - Clicking the input field should trigger a modal window with
   checkboxes for each available column from the borrowers table.
 - Test that the "select all" and "clear all" links work correctly.
 - Test that the "cancel" link closes the modal without saving your
   selections.
 - Test that the "Save" button closes the modal, copies your selections
   to the form field, and triggers the preference-saving function (this
   eliminates the need to click a save button again after closing the
   modal).
   - Test this process by making modifications to all three different
     preferences, confirming that the right data is preselected each
     time the modal is shown and the right data is saved to the right
     field each time.

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-07-20 16:08:22 +02:00
..
src Bug 22844: Simplify the process of selecting database columns for system preferences 2020-07-20 16:08:22 +02:00
addbiblio.css Bug 24373: Correct basic cataloging editor CSS 2020-01-10 10:45:25 +00:00
cateditor.css Bug 24452: Advanced editor - show multiple spaces visually 2020-01-23 10:24:53 +00:00
hierarchy.css
humanmsg.css Bug 16239: Update css files 2017-01-13 14:41:23 +00:00
installer.css Bug 17942 [Follow-up] Update style of the web installer with Bootstrap 3 2017-05-09 20:54:31 +00:00
itemsearchform.css Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
login.css
mainpage.css Bug 23711: Icons on staff main page should be font icons 2019-10-03 10:57:56 +01:00
preferences.css Bug 22844: Simplify the process of selecting database columns for system preferences 2020-07-20 16:08:22 +02:00
print.css Bug 25072: Fix details.tt print CSS 2020-04-29 16:22:24 +01:00
printreceiptinvoice.css
quotes.css
reports.css Bug 23197: Add more batch operation options to SQL report results 2019-07-15 11:28:06 +01:00
right-to-left.css Bug 23410: Add submenus to system preferences sidebar menu 2020-06-29 12:37:02 +02:00
select2.css Bug 21148: Dropdowns styled by the Select2 plugin do not highlight missing required fields 2018-08-09 10:44:31 +00:00
spinelabel.css Bug 23464: Update the process of quick spine label printing 2019-09-09 11:26:55 +01:00
staff-global.css Bug 25658: Compiled CSS 2020-06-15 11:53:20 +02:00
tinymce.css
uploader.css