I have a nested list like this:
- Intro (ID: 1)
- Strings in introduction:
- "Once upon a time",
- "His name was Jack",
- "Welcome",
- "Time passed"
- Pictures' ID in introduction:
- 1,
- 6,
- 123
- Strings in introduction:
- Chapter 1 (ID: 2)
- Strings in Chapter 1:
- "As the time passed",
- "Old McDonald had a farm"
- Pictures' ID in Chapter 1:
- 13,
- 566,
- Strings in Chapter 1:
- Chapter 2 (ID: 3)
- Strings in Chapter 2:
- "somesomesome",
- "El final",
- "Me gustan los barcos"
- Pictures' ID in Chapter 2:
- 1,
- 63,
- 1523
- Strings in Chapter 2:
I want to be able to select either none, one or more strings, either none, one or more picture ids and submit as a form input.
What I have already tried:
Input fields + buttons
<input type="hidden" name="strings" value="StringsInChapter"><br>
<button type="submit" value="Submit">Add</button>
But with that option if there are many characteristics, there are dozens of buttons "Add", and the View is simply flooded with them, which just looks awful.
Select + options
<select name="CharacteristicsIntro" multiple>
<option value="string1">"Once upon a time"</option>
<option value="string2">"Welcome"</option>
<option value="pictureId1">1</option>
<option value="pictureId6">6</option>
</select>
With that option there appears a box:
That doesn't look well and, again, the View is flooded with these boxes. Besides, scrolling in that case is very uncomfortable. I would like that all the contents is displayed on the View.
My aim is somewhat close to the second option, but without the surrounding box with scrolling button. What I want to achieve, is that the user only sees my nested list, no buttons. User selects multiple rows and with each selection info is saved in HttpContext.Session. Then the user can go to something like a shopping cart where all selections are displayed in a table, click "Submit" button and send info via post to the server. I suspect there is no way to do it without JS, but still may be there are any adrices on how to do it in a simple way?
The following picture roughly represents the desired output:
So, each pie has a name, price, long, short description, and week-of-the-day flag. User can choose several or none characteristics of a pie, which change color on user tap (other behavior scenarios are possible, it's just an example) and added to session context. If the user taps again, color reverts back to normal and the item is deleted from the session context. The idea is very close to a normal cart behavior, but without using check boxes or buttons.
Thanks in advance!

