Koha/koha-tmpl/intranet-tmpl/prog/css
Owen Leonard 5a8e78fab0 Bug 29030: Make authorized value and description fields required
This patch modifies the markup of the "Create a new authorized value"
modal so that a minimum set of fields is required: Authorized value and
description.

The patch also modifies the JavaScript which handles the submission so
that the jQuery Validation plugin can handle the field checks.

The spelling "authorised" is changed to "authorized" following coding
guidelines.

To test, apply the patch and rebuild the staff interface CSS
(https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client).

- Locate a record in the catalog which has items and open an item for
  editing.
- In the add item form, test the process of adding an authorized
  value on the fly with the following fields: Withdrawn, Lost,
  Damaged, Use restrictions, Not for loan, Collection code, Shelving
  location, and Shelving control number.
  - In each case you should be able to type a new value in the
    dropdown's search box and be shown the option "Select to create."
  - Selecting should trigger a modal window, "Create a new authorized
    value."
  - Test that both "Authorized value" and "Description" fields are
    required, and the form can't be submitted without them.
  - Test that an error message shows up when you submit an authorized
    value which already exists, e.g. authval "1" for "DAMAGED."
  - After triggering this error, click the "Cancel" button and try
    creating another new authorized value. When the modal reopens the
    form should be reset: No previously-entered data, no error messages.
  - Submitting a valid form with a new authorized value should work
    correctly. The modal window should close automatically.

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

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-09-29 12:47:33 +02:00
..
src Bug 29030: Make authorized value and description fields required 2021-09-29 12:47:33 +02:00
addbiblio.css Bug 28611: Fix width to 50% for additem form elements 2021-07-06 10:18:52 +02:00
calendar.css Bug 27773: Hide unique holidays and exceptions which have passed 2021-04-14 15:25:29 +02:00
cateditor.css
hierarchy.css
humanmsg.css
installer.css
itemsearchform.css
login.css Bug 27055: Fix compatibility with newer Firefox+Selenium version 2020-12-30 12:04:49 -03:00
mainpage.css Bug 28819: (follow-up) Use stacked icons for different searches 2021-08-16 11:55:56 +02:00
preferences.css Bug 27805: (follow-up) Update more instances 2021-04-06 15:56:30 +02:00
print.css Bug 22152: Hide tools navigation when printing reports 2021-01-22 14:59:27 +01:00
printreceiptinvoice.css Bug 26962: (follow-up) Catch other #000066 occurrences 2021-01-13 17:17:05 +01:00
quotes.css
reports.css
right-to-left.css
select2.css
spinelabel.css
staff-global.css Bug 28376: Compiled CSS 2021-08-30 18:08:26 +02:00
tinymce.css
uploader.css