Project

General

Profile

Task #2722

Rails: allow bulk-moving photos from one gallery to another

Added by victor piousbox about 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
DEV ROR JS
Start date:
2022-10-18
Due date:
% Done:

0%

Estimated time:

Description

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.


Files

2022-10-17 a la(s) 2242.jpg (188 KB) 2022-10-17 a la(s) 2242.jpg victor piousbox, 2022-10-17 10:49 PM
2022-10-17 a la(s) 2249.jpg (237 KB) 2022-10-17 a la(s) 2249.jpg victor piousbox, 2022-10-17 10:49 PM

History

#2

Updated by victor piousbox about 2 years ago

  • Project changed from Wasya Co to [P] Infinite Shelter
#3

Updated by victor piousbox almost 2 years ago

  • Category set to DEV ROR JS

Also available in: Atom PDF