Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add templates for answering proposals #34

Open
6 of 8 tasks
microstudi opened this issue Sep 29, 2022 · 0 comments · May be fixed by #37
Open
6 of 8 tasks

Add templates for answering proposals #34

microstudi opened this issue Sep 29, 2022 · 0 comments · May be fixed by #37

Comments

@microstudi
Copy link

microstudi commented Sep 29, 2022

Original request

As a process-admin, I would like to be able to store at least one individual response template for each process, built into the response field or below (e.g. customizable with Term Customizer).

Specs

  • Add a new template controller (module decidim-templates) and an admin menu "Proposals answers" below the templates for forms (Fig. 2).
  • CRUD methods for adding a template (Fig. 3)
  • A template must be able to:
    • Store the text of the response, with some variables to interpolate: %{organization} (organization's name), %{name} (proposal author's name), %{admin} (current administrator name). Consider all configured languages
    • Store the status for this response (Not answered, answered, etc)
    • Define the scope for this template: Global (available anywhere), Select a specific Participatory Space.
  • Add to the managing proposal answer form a select (Fig. 1) with all the templates available (according to scope: All global + the ones targeting this participatory space). Consider the possibility that the module decidim-templates is not installed, then nothing should shown.
  • Specs

Mockups

Fig. 1. Selecting a template answer from a list:

image

Fig. 2. Managing proposal answers templates

image

Fig. 3. Creating/editing proposal answers templates

image

Methodology

Start with the branch release/0.26-stable and create a PR to openpoke/decidim to this very same branch.
In the future we will have to "port" this feature to develop (but this won't be possible until 0.28 is out with the new redesign)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants