]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP1907863 Bootstrap Opac: My Lists formatting
authorGarry Collum <gcollum@gmail.com>
Thu, 15 Apr 2021 19:50:55 +0000 (15:50 -0400)
committerMichele Morgan <mmorgan@noblenet.org>
Fri, 22 Apr 2022 20:35:19 +0000 (16:35 -0400)
commit59a3000be00e3c7392efd9a907ba26cc6fa7eede
tree0a99f47a595a85d5f2955cbf5a66d269f9c9d765
parent6c89e2ffe9f9ac4efe3f51a59af35c1cdc731a1b
LP1907863 Bootstrap Opac: My Lists formatting

This patch moves the buttons for each list row underneath the title and descriptions fields.
It makes the create list form collapsible using a button.
If there are lists, the create form is collapsed.
The create form is expanded on load, if the user selects move bucket to new list, or add rec to new list from a menu or button from another page.
The "Move contents of basket to this list?" in the creation form now defaults to 'yes' if an option to move a basket to a new list is chosen from a menu.
It adds localization functions to the button texts and removes a dangling </div> in anon-list.tt2
It moves the create form from a <table> design and uses Bootstrap elements instead.

To Test.

1. After applying the patch view the list page and notice that the form is expanded.
2. Create a list.  The form is now collapse.
3. Perform a search and add some of the titles to a basket.
4. From one of the result rows drop-down the Add to My List menu and select 'Add to New List'.
   The form is expanded and the "Move contents of basket to this list" should be 'yes'.
5. From the basket screen or from the lists screen click on the 'Add to New List' button.  The results should be the same as step 4.
6. After creating a few lists, notice that the buttons for each list are now displayed under the list title and description and
   each row is distinguished by a bottom border.

Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Ruth Frasur <rfrasur@library.in.gov>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/src/templates-bootstrap/opac/myopac/lists.tt2
Open-ILS/src/templates-bootstrap/opac/parts/anon_list.tt2
Open-ILS/src/templates-bootstrap/opac/parts/bookbag_actions.tt2