]> 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:31:27 +0000 (16:31 -0400)
commit4f1a4030660e52282722a2b22165535bf4af7c44
tree1cabb188068c34a358984947ad9f502b5c9bd4a9
parentd436f5b4a409bdff0d597b596b07f71b63f398fc
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: 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