Canvis a "Add categories to initiatives"
Títol
- +{"en"=>"Add categories to initiatives"}
Cos
-
+["
Is your feature request related to a problem? Please describe.
Initiatives cannot be categorized. This can be useful if an administrator wants to dispatch the management of initiatives to different departments, for example.
Describe the solution you'd like
As an admin, I want to be able to associate categories to initiatives.
Allow admin to create, edit & destroy categories in a dedicated index
- This index must be available by clicking under the initative_type button in admin secondary navbar.
- You can't destroy a category if it's linked to an initiative.
- This index is only visible for admins.
Add a /new and /edit form to be able to create or edit a category
Allow admin to link a category to an initiative
- Add a dropdown field on the /edit form of initiatives that displays all the categories created.
- Permissions : The category field is only displayed for admins. Users can't see it nor edit it.
- When the initiative is updated, the category will be displayed automatically on initiative card & show in FO
Allow users to see categories & filter the index
- The category should appear as a tag under the description of the initiative
- When clicking on the category title, index is filtered to only display the initiatives linked to this category (same as scopes & categories)
Allow users to see categories on initiative show & filter the index
- The category title should be displayed as a tag under the description of the initiative
- When clicking on the category title, the user is redirected to a filtered index that only displays the initiatives linked to this category
Describe alternatives you've considered
Use the scopes, but they are already used for initiatives types scopes.
Does this issue could impact on users private data?
No
"]
Compartir