Project

General

Profile

Task #2722

Updated by victor piousbox about 2 years ago


Views:

In galleries#show:

In section with "mini's":

1. Add a checkbox to each mini

2. add a form-field with label "move selected to", a select2 input with galleries list, and button "Go"

See newsitems#new for example of select2 usage.

Controllers:

new action photos#bulk-update:

3. update gallery of selected photos.

4. set flash (alert or notice) to success or failure, respectively.

In test:

5. The setup is to have two galleries and three photos in the 1st gallery. Write a test that moves two photos to second gallery, and observes that one photo is left in the first, and two photos are now in the second galleries.

In the following wireframe, red means additional elements. Blue is commentary, black is what's already there.

!%202022-10-17%20a%20la%28s%29%202242.jpg!

!%202022-10-17%20a%20la%28s%29%202249.jpg!

Back