code4romania / sunrise

Mozilla Public License 2.0
0 stars 0 forks source link

[Admin/ Cazuri] The user should not be able to completely delete a section that is a repeater #107

Open teodoranegru opened 2 months ago

teodoranegru commented 2 months ago

The user should not be able to completely delete a section that is a repeater. There are sections in the app that behave as repeaters, meaning that a group of fields can be multiplied as many times as the user needs. Although the user should be able to delete a copy/a repeater of the main group that was multiplied, the user should not be able to completely delete that section, only the copies. For example, we have the ''Informații despre agresor'' section which is a repeater. We shouldn't have a delete button on the first group of fields, only of the copies. This rule applies to all repeaters!

Remove the delete button from the first/original group in a sequence of repeaters. Apply this rule to all repeaters in the platform.

Image