Closed apuertadelaguila closed 1 year ago
We have found an issue in the next context: If we want to access our component without being an administrator user, we get a forbidden permission's error. We have actually a permissions file which looks like the "pages" module permissions file. You can check the file under "decidim-module-survey_sections_group/app/permissions/decidim/survey_sections_group/permissions.rb"
This branch implement a new Component, "SurveySectionsGroup" and a "Lite" version of SatSets named "SatLite", following the next diagram Through this component, SurveySectionsGroup, we are going to be able to create different sections of surveys (or SurveySections) and to order them through it attribute "weight" and inside every SurveySection, to add the desired Surveys. We will also able to export our survey's answers. After submitting a survey, we will get feedback and navigate to the next or previous unfilled survey.
If we access within our admin dashboard and then to "Indices", "Processes" or "Assemblies" we will be able to create our new component SurveySectionsGroup.
"Add component" must be clicked and then SurveySectionsGroup. Next, we have to fill the field "name". The fields Order position and Announcement are inherited from the parent class Component, but right now they do not influence the operation of this development.
By clicking on "manage" we can edit our SurveySectionGroup and to add SurveySections to it.
After creating a new section, we can see the list of sections with its surveys and to edit or remove each of them.
In the edit view, we will be able to add Surveys to the SurveySection parent. We can add only the surveys included in this participatory process.
Our other feature inside this branch is the SatLite. A SatLite is a shortened version of a SatSet, which can also have an image or an iframe.
Within InDICEs section, we will find the next Self-Assessment Tool feature: the SatLite.
We can create it by clicking "New SatLite".
A Questionnaire must be linked to the SatLite. In order to follow the SatLite logic, it should be a shortened questionnaire. A SatLite also has Feedbacks. These Feedbacks can be added just like we can do with the SatSets.