decidim-surveys 0.30.3 → 0.31.0.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/README.md +3 -3
 - data/app/commands/decidim/surveys/admin/create_survey.rb +14 -2
 - data/app/commands/decidim/surveys/admin/publish_survey.rb +3 -3
 - data/app/commands/decidim/surveys/admin/update_survey.rb +0 -13
 - data/app/commands/decidim/surveys/admin/update_survey_settings.rb +53 -0
 - data/app/commands/decidim/surveys/{publish_answers.rb → publish_responses.rb} +8 -8
 - data/app/commands/decidim/surveys/{unpublish_answers.rb → unpublish_responses.rb} +8 -8
 - data/app/controllers/decidim/surveys/admin/application_controller.rb +13 -0
 - data/app/controllers/decidim/surveys/admin/{publish_answers_controller.rb → publish_responses_controller.rb} +9 -9
 - data/app/controllers/decidim/surveys/admin/questions/surveys_controller.rb +48 -0
 - data/app/controllers/decidim/surveys/admin/{answers_controller.rb → responses_controller.rb} +18 -13
 - data/app/controllers/decidim/surveys/admin/settings/surveys_controller.rb +42 -0
 - data/app/controllers/decidim/surveys/admin/surveys_controller.rb +20 -39
 - data/app/controllers/decidim/surveys/surveys_controller.rb +15 -12
 - data/app/forms/decidim/surveys/admin/survey_form.rb +3 -7
 - data/app/forms/decidim/surveys/admin/survey_settings_form.rb +18 -0
 - data/app/helpers/decidim/surveys/{publish_answers_helper.rb → publish_responses_helper.rb} +11 -11
 - data/app/helpers/decidim/surveys/survey_helper.rb +1 -1
 - data/app/jobs/decidim/surveys/{clean_survey_answers_job.rb → clean_survey_responses_job.rb} +4 -4
 - data/app/jobs/decidim/surveys/settings_change_job.rb +5 -5
 - data/app/mailers/decidim/surveys/survey_confirmation_mailer.rb +6 -6
 - data/app/models/decidim/surveys/survey.rb +4 -4
 - data/app/permissions/decidim/surveys/admin/permissions.rb +4 -4
 - data/app/permissions/decidim/surveys/permissions.rb +1 -1
 - data/app/serializers/decidim/surveys/data_importer.rb +5 -5
 - data/app/serializers/decidim/surveys/data_serializer.rb +5 -5
 - data/app/views/decidim/surveys/admin/publish_responses/_toggle_button.html.erb +22 -0
 - data/app/views/decidim/surveys/admin/{publish_answers → publish_responses}/index.html.erb +5 -5
 - data/app/views/decidim/surveys/admin/questions/surveys/edit.html.erb +44 -0
 - data/app/views/decidim/surveys/admin/responses/index.html.erb +101 -0
 - data/app/views/decidim/surveys/admin/responses/show.html.erb +43 -0
 - data/app/views/decidim/surveys/admin/{surveys → settings/surveys}/_form.html.erb +2 -3
 - data/app/views/decidim/surveys/admin/settings/surveys/edit.html.erb +23 -0
 - data/app/views/decidim/surveys/admin/surveys/_tabs_menu.html.erb +11 -0
 - data/app/views/decidim/surveys/admin/surveys/edit.html.erb +18 -18
 - data/app/views/decidim/surveys/admin/surveys/index.html.erb +101 -23
 - data/app/views/decidim/surveys/admin/surveys/new.html.erb +23 -0
 - data/app/views/decidim/surveys/survey_confirmation_mailer/confirmation.html.erb +1 -1
 - data/app/views/decidim/surveys/surveys/{_published_questions_answers.html.erb → _published_questions_responses.html.erb} +2 -2
 - data/app/views/decidim/surveys/surveys/not_allowed.html.erb +2 -2
 - data/app/views/layouts/decidim/admin/surveys.html.erb +18 -0
 - data/config/assets.rb +1 -1
 - data/config/locales/ar.yml +0 -20
 - data/config/locales/bg.yml +0 -28
 - data/config/locales/ca-IT.yml +50 -29
 - data/config/locales/ca.yml +50 -29
 - data/config/locales/cs.yml +37 -39
 - data/config/locales/de.yml +42 -26
 - data/config/locales/el.yml +0 -23
 - data/config/locales/en.yml +54 -33
 - data/config/locales/es-MX.yml +49 -28
 - data/config/locales/es-PY.yml +49 -28
 - data/config/locales/es.yml +49 -28
 - data/config/locales/eu.yml +48 -27
 - data/config/locales/fi-plain.yml +46 -25
 - data/config/locales/fi.yml +46 -25
 - data/config/locales/fr-CA.yml +40 -32
 - data/config/locales/fr.yml +40 -32
 - data/config/locales/ga-IE.yml +0 -13
 - data/config/locales/gl.yml +0 -22
 - data/config/locales/hu.yml +0 -16
 - data/config/locales/id-ID.yml +0 -15
 - data/config/locales/is-IS.yml +0 -2
 - data/config/locales/it.yml +0 -22
 - data/config/locales/ja.yml +48 -27
 - data/config/locales/lb.yml +0 -22
 - data/config/locales/lt.yml +0 -25
 - data/config/locales/lv.yml +0 -17
 - data/config/locales/nl.yml +0 -22
 - data/config/locales/no.yml +0 -22
 - data/config/locales/pl.yml +0 -30
 - data/config/locales/pt-BR.yml +0 -22
 - data/config/locales/pt.yml +0 -22
 - data/config/locales/ro-RO.yml +18 -23
 - data/config/locales/ru.yml +0 -13
 - data/config/locales/sk.yml +0 -18
 - data/config/locales/sl.yml +0 -8
 - data/config/locales/sv.yml +13 -23
 - data/config/locales/tr-TR.yml +0 -22
 - data/config/locales/uk.yml +0 -13
 - data/config/locales/zh-CN.yml +0 -15
 - data/config/locales/zh-TW.yml +0 -22
 - data/db/migrate/20250317110501_rename_answer_to_response_in_decidim_surveys.rb +8 -0
 - data/lib/decidim/api/survey_type.rb +12 -0
 - data/lib/decidim/surveys/admin_engine.rb +46 -7
 - data/lib/decidim/surveys/component.rb +24 -19
 - data/lib/decidim/surveys/engine.rb +8 -25
 - data/lib/decidim/surveys/seeds.rb +42 -42
 - data/lib/decidim/surveys/test/factories.rb +3 -3
 - data/lib/decidim/surveys/version.rb +1 -1
 - data/lib/tasks/surveys/upgrade/decidim_surveys_upgrade_tasks.rake +16 -82
 - metadata +35 -28
 - data/app/queries/decidim/surveys/metrics/answers_metric_manage.rb +0 -65
 - data/app/queries/decidim/surveys/metrics/survey_participants_metric_measure.rb +0 -30
 - data/app/views/decidim/surveys/admin/answers/index.html.erb +0 -49
 - data/app/views/decidim/surveys/admin/answers/show.html.erb +0 -43
 - data/app/views/decidim/surveys/admin/publish_answers/_toggle_button.html.erb +0 -22
 - data/app/views/decidim/surveys/admin/surveys/edit_questions.html.erb +0 -47
 
| 
         @@ -1,12 +1,11 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            <%= render "decidim/forms/admin/questionnaires/form", form: %>
         
     | 
| 
       2 
1 
     | 
    
         
             
            <div class="form__wrapper">
         
     | 
| 
       3 
2 
     | 
    
         
             
              <div class="card pt-4">
         
     | 
| 
       4 
3 
     | 
    
         
             
                <div class="card-section">
         
     | 
| 
       5 
4 
     | 
    
         
             
                  <div class="row column">
         
     | 
| 
       6 
     | 
    
         
            -
                    <%= form.check_box : 
     | 
| 
      
 5 
     | 
    
         
            +
                    <%= form.check_box :allow_responses, label: t("models.components.allow_responses", scope: "decidim.forms.admin"), aria: { label: :allow_responses } %>
         
     | 
| 
       7 
6 
     | 
    
         
             
                  </div>
         
     | 
| 
       8 
7 
     | 
    
         
             
                  <div class="row column">
         
     | 
| 
       9 
     | 
    
         
            -
                    <%= form.check_box : 
     | 
| 
      
 8 
     | 
    
         
            +
                    <%= form.check_box :allow_editing_responses, label: t("models.components.allow_editing_responses", scope: "decidim.forms.admin"), aria: { label: :allow_editing_responses } %>
         
     | 
| 
       10 
9 
     | 
    
         
             
                  </div>
         
     | 
| 
       11 
10 
     | 
    
         
             
                  <div class="row column">
         
     | 
| 
       12 
11 
     | 
    
         
             
                    <%= form.check_box :allow_unregistered, label: t("models.components.allow_unregistered", scope: "decidim.forms.admin"), aria: { label: :allow_unregistered }, help_text: t("models.components.allow_unregistered_help", scope: "decidim.forms.admin") %>
         
     | 
| 
         @@ -0,0 +1,23 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            <% add_decidim_page_title(t(".title")) %>
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            <div class="item_show__header" style="border-bottom: none;">
         
     | 
| 
      
 4 
     | 
    
         
            +
              <h1 class="item_show__header-title">
         
     | 
| 
      
 5 
     | 
    
         
            +
                <%= t(".title") %>
         
     | 
| 
      
 6 
     | 
    
         
            +
              </h1>
         
     | 
| 
      
 7 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            <%= render "decidim/surveys/admin/surveys/tabs_menu" %>
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            <div class="grid-cols-1 2xl:mr-80">
         
     | 
| 
      
 12 
     | 
    
         
            +
              <div class="item__edit-form pb-24">
         
     | 
| 
      
 13 
     | 
    
         
            +
                <%= decidim_form_for(@form, url: settings_survey_path, html: { id: "survey-form", class: "form-defaults form edit_questionnaire" }) do |form| %>
         
     | 
| 
      
 14 
     | 
    
         
            +
                  <%= render partial: "form", object: form %>
         
     | 
| 
      
 15 
     | 
    
         
            +
                <% end %>
         
     | 
| 
      
 16 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
              <div class="item__edit-sticky">
         
     | 
| 
      
 19 
     | 
    
         
            +
                <div class="item__edit-sticky-container">
         
     | 
| 
      
 20 
     | 
    
         
            +
                  <%= button_tag t("save", scope: "decidim.forms.admin.questionnaires.edit"), class: "button button__sm button__secondary", form: "survey-form" %>
         
     | 
| 
      
 21 
     | 
    
         
            +
                </div>
         
     | 
| 
      
 22 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 23 
     | 
    
         
            +
            </div>
         
     | 
| 
         @@ -0,0 +1,11 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            <% show_button = local_assigns.fetch(:show_button, true) %>
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            <div class="main-tabs-menu">
         
     | 
| 
      
 4 
     | 
    
         
            +
              <div class="main-tabs-menu__tabs">
         
     | 
| 
      
 5 
     | 
    
         
            +
                <%= admin_tabs(:admin_surveys_menu).render %>
         
     | 
| 
      
 6 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
              <div class="main-tabs-menu__buttons">
         
     | 
| 
      
 9 
     | 
    
         
            +
                <%= yield if block_given? %>
         
     | 
| 
      
 10 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 11 
     | 
    
         
            +
            </div>
         
     | 
| 
         @@ -1,23 +1,23 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            <% add_decidim_page_title(t(".title")) %>
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
               
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
               
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
      
 3 
     | 
    
         
            +
            <div class="item_show__header" style="border-bottom: none;">
         
     | 
| 
      
 4 
     | 
    
         
            +
              <h1 class="item_show__header-title">
         
     | 
| 
      
 5 
     | 
    
         
            +
                <%= t(".title") %>
         
     | 
| 
      
 6 
     | 
    
         
            +
              </h1>
         
     | 
| 
      
 7 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            <%= render "decidim/surveys/admin/surveys/tabs_menu" %>
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            <div class="grid-cols-1 2xl:mr-80">
         
     | 
| 
      
 12 
     | 
    
         
            +
              <div class="item__edit-form pb-24">
         
     | 
| 
      
 13 
     | 
    
         
            +
                <%= decidim_form_for(@form, url: survey_path(@survey), html: { id: "survey-form", class: "form-defaults form edit_questionnaire" }) do |form| %>
         
     | 
| 
      
 14 
     | 
    
         
            +
                  <%= render "decidim/forms/admin/questionnaires/form", form: %>
         
     | 
| 
      
 15 
     | 
    
         
            +
                <% end %>
         
     | 
| 
       10 
16 
     | 
    
         
             
              </div>
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
                    <div class="item__edit-sticky">
         
     | 
| 
       16 
     | 
    
         
            -
                      <div class="item__edit-sticky-container">
         
     | 
| 
       17 
     | 
    
         
            -
                        <%= form.submit t("save", scope: "decidim.forms.admin.questionnaires.edit"), class: "button button__sm button__secondary" %>
         
     | 
| 
       18 
     | 
    
         
            -
                      </div>
         
     | 
| 
       19 
     | 
    
         
            -
                    </div>
         
     | 
| 
       20 
     | 
    
         
            -
                  <% end %>
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
              <div class="item__edit-sticky">
         
     | 
| 
      
 19 
     | 
    
         
            +
                <div class="item__edit-sticky-container">
         
     | 
| 
      
 20 
     | 
    
         
            +
                  <%= button_tag t("save", scope: "decidim.forms.admin.questionnaires.edit"), class: "button button__sm button__secondary", form: "survey-form" %>
         
     | 
| 
       21 
21 
     | 
    
         
             
                </div>
         
     | 
| 
       22 
22 
     | 
    
         
             
              </div>
         
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
      
 23 
     | 
    
         
            +
            </div>
         
     | 
| 
         @@ -3,45 +3,123 @@ 
     | 
|
| 
       3 
3 
     | 
    
         
             
              <div class="item_show__header item_show__header--with-action-options">
         
     | 
| 
       4 
4 
     | 
    
         
             
                <h1 class="item_show__header-title">
         
     | 
| 
       5 
5 
     | 
    
         
             
                  <%= t(".title") %>
         
     | 
| 
       6 
     | 
    
         
            -
                  <%= link_to t("actions.new_survey", scope: "decidim.surveys"),  
     | 
| 
      
 6 
     | 
    
         
            +
                  <%= link_to t("actions.new_survey", scope: "decidim.surveys"), new_survey_path, class: "button button__sm button__secondary" %>
         
     | 
| 
       7 
7 
     | 
    
         
             
                  <%= render partial: "decidim/admin/components/resource_action" %>
         
     | 
| 
       8 
8 
     | 
    
         
             
                </h1>
         
     | 
| 
       9 
9 
     | 
    
         
             
              </div>
         
     | 
| 
       10 
     | 
    
         
            -
              <div class="table- 
     | 
| 
      
 10 
     | 
    
         
            +
              <div class="table-stacked mt-8">
         
     | 
| 
       11 
11 
     | 
    
         
             
                <table class="table-list">
         
     | 
| 
       12 
12 
     | 
    
         
             
                  <thead>
         
     | 
| 
       13 
13 
     | 
    
         
             
                    <tr>
         
     | 
| 
       14 
14 
     | 
    
         
             
                      <th><%= t("models.survey.fields.title", scope: "decidim.surveys") %></th>
         
     | 
| 
       15 
15 
     | 
    
         
             
                      <th><%= t("models.survey.fields.questions", scope: "decidim.surveys") %></th>
         
     | 
| 
       16 
     | 
    
         
            -
                      <th><%= t("models.survey.fields. 
     | 
| 
      
 16 
     | 
    
         
            +
                      <th><%= t("models.survey.fields.responses", scope: "decidim.surveys") %></th>
         
     | 
| 
       17 
17 
     | 
    
         
             
                      <th><%= t("models.survey.fields.status", scope: "decidim.surveys") %></th>
         
     | 
| 
      
 18 
     | 
    
         
            +
                      <th><%= t("models.survey.fields.published", scope: "decidim.surveys") %></th>
         
     | 
| 
       18 
19 
     | 
    
         
             
                      <th><%= t("actions.title", scope: "decidim.surveys") %></th>
         
     | 
| 
       19 
20 
     | 
    
         
             
                    </tr>
         
     | 
| 
       20 
21 
     | 
    
         
             
                  </thead>
         
     | 
| 
       21 
22 
     | 
    
         
             
                  <tbody>
         
     | 
| 
       22 
23 
     | 
    
         
             
                    <% surveys.each do |survey| %>
         
     | 
| 
       23 
24 
     | 
    
         
             
                      <tr>
         
     | 
| 
       24 
     | 
    
         
            -
                        <td 
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
                         
     | 
| 
       27 
     | 
    
         
            -
                        <td 
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
             
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
       39 
     | 
    
         
            -
                               
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
      
 25 
     | 
    
         
            +
                        <td data-label="<%= t("models.survey.fields.title", scope: "decidim.surveys") %>">
         
     | 
| 
      
 26 
     | 
    
         
            +
                          <%= link_to decidim_sanitize_translated(survey.title), edit_survey_path(survey) %>
         
     | 
| 
      
 27 
     | 
    
         
            +
                        </td>
         
     | 
| 
      
 28 
     | 
    
         
            +
                        <td data-label="<%= t("models.survey.fields.questions", scope: "decidim.surveys") %>">
         
     | 
| 
      
 29 
     | 
    
         
            +
                          <%= survey.questionnaire.questions.size %>
         
     | 
| 
      
 30 
     | 
    
         
            +
                        </td>
         
     | 
| 
      
 31 
     | 
    
         
            +
                        <td data-label="<%= t("models.survey.fields.responses", scope: "decidim.surveys") %>">
         
     | 
| 
      
 32 
     | 
    
         
            +
                          <%= survey.questionnaire.count_participants %>
         
     | 
| 
      
 33 
     | 
    
         
            +
                        </td>
         
     | 
| 
      
 34 
     | 
    
         
            +
                        <td data-label="<%= t("models.survey.fields.status", scope: "decidim.surveys") %>">
         
     | 
| 
      
 35 
     | 
    
         
            +
                          <%= survey.open? ? t("models.survey.status.open", scope: "decidim.surveys") : t("models.survey.status.closed", scope: "decidim.surveys") %>
         
     | 
| 
      
 36 
     | 
    
         
            +
                        </td>
         
     | 
| 
      
 37 
     | 
    
         
            +
                        <td data-label="<%= t("models.survey.fields.published", scope: "decidim.surveys") %>">
         
     | 
| 
      
 38 
     | 
    
         
            +
                          <% if survey.published? %>
         
     | 
| 
      
 39 
     | 
    
         
            +
                            <span class="label success !text-sm">
         
     | 
| 
      
 40 
     | 
    
         
            +
                              <%= t("models.survey.published.published", scope: "decidim.surveys") %>
         
     | 
| 
      
 41 
     | 
    
         
            +
                            </span>
         
     | 
| 
      
 42 
     | 
    
         
            +
                          <% else %>
         
     | 
| 
      
 43 
     | 
    
         
            +
                            <span class="label alert !text-sm">
         
     | 
| 
      
 44 
     | 
    
         
            +
                              <%= t("models.survey.published.unpublished", scope: "decidim.surveys") %>
         
     | 
| 
      
 45 
     | 
    
         
            +
                            </span>
         
     | 
| 
      
 46 
     | 
    
         
            +
                          <% end %>
         
     | 
| 
      
 47 
     | 
    
         
            +
                        </td>
         
     | 
| 
      
 48 
     | 
    
         
            +
                        <td data-label="<%= t("actions.title", scope: "decidim.surveys") %>" class="table-list__actions">
         
     | 
| 
      
 49 
     | 
    
         
            +
                          <button type="button" data-controller="dropdown" data-target="actions-survey-<%= survey.id %>" aria-label="<%= t("decidim.admin.actions.actions_label", resource: survey.title) %>">
         
     | 
| 
      
 50 
     | 
    
         
            +
                            <%= icon "more-fill", class: "text-secondary" %>
         
     | 
| 
      
 51 
     | 
    
         
            +
                          </button>
         
     | 
| 
      
 52 
     | 
    
         
            +
             
     | 
| 
      
 53 
     | 
    
         
            +
                          <div class="inline-block relative">
         
     | 
| 
      
 54 
     | 
    
         
            +
                            <ul id="actions-survey-<%= survey.id %>" class="dropdown dropdown__action" aria-hidden="true">
         
     | 
| 
      
 55 
     | 
    
         
            +
                              <li class="dropdown__item">
         
     | 
| 
      
 56 
     | 
    
         
            +
                                <%= link_to edit_survey_path(survey), class: "dropdown__button" do %>
         
     | 
| 
      
 57 
     | 
    
         
            +
                                  <%= icon "pencil-line" %>
         
     | 
| 
      
 58 
     | 
    
         
            +
                                  <%= t("actions.edit", scope: "decidim.surveys") %>
         
     | 
| 
      
 59 
     | 
    
         
            +
                                <% end %>
         
     | 
| 
      
 60 
     | 
    
         
            +
                              </li>
         
     | 
| 
      
 61 
     | 
    
         
            +
             
     | 
| 
      
 62 
     | 
    
         
            +
                              <li class="dropdown__item">
         
     | 
| 
      
 63 
     | 
    
         
            +
                                <%= link_to edit_questions_questions_survey_path(survey), class: "dropdown__button" do %>
         
     | 
| 
      
 64 
     | 
    
         
            +
                                  <%= icon "survey-line" %>
         
     | 
| 
      
 65 
     | 
    
         
            +
                                  <%= t("actions.manage_questions", scope: "decidim.surveys") %>
         
     | 
| 
      
 66 
     | 
    
         
            +
                                <% end %>
         
     | 
| 
      
 67 
     | 
    
         
            +
                              </li>
         
     | 
| 
      
 68 
     | 
    
         
            +
             
     | 
| 
      
 69 
     | 
    
         
            +
                              <hr>
         
     | 
| 
      
 70 
     | 
    
         
            +
             
     | 
| 
      
 71 
     | 
    
         
            +
                              <% if allowed_to?(:update, :questionnaire) %>
         
     | 
| 
      
 72 
     | 
    
         
            +
                                <% if survey.published? %>
         
     | 
| 
      
 73 
     | 
    
         
            +
                                  <li class="dropdown__item">
         
     | 
| 
      
 74 
     | 
    
         
            +
                                    <%= link_to unpublish_survey_path(survey), method: :put, data: { confirm: t("actions.confirm_unpublish_survey", scope: "decidim.admin") }, class: "dropdown__button" do %>
         
     | 
| 
      
 75 
     | 
    
         
            +
                                      <%= icon "close-circle-line" %>
         
     | 
| 
      
 76 
     | 
    
         
            +
                                      <%= t("actions.unpublish", scope: "decidim.admin") %>
         
     | 
| 
      
 77 
     | 
    
         
            +
                                    <% end %>
         
     | 
| 
      
 78 
     | 
    
         
            +
                                  </li>
         
     | 
| 
      
 79 
     | 
    
         
            +
                                <% elsif survey.clean_after_publish? %>
         
     | 
| 
      
 80 
     | 
    
         
            +
                                  <li class="dropdown__item">
         
     | 
| 
      
 81 
     | 
    
         
            +
                                    <%= link_to publish_survey_path(survey), method: :put, data: { confirm: t("actions.responses_alert", scope: "decidim.surveys", responses_count: survey.questionnaire.responses.size) }, class: "dropdown__button" do %>
         
     | 
| 
      
 82 
     | 
    
         
            +
                                      <%= icon "check-line" %>
         
     | 
| 
      
 83 
     | 
    
         
            +
                                      <%= t("actions.publish", scope: "decidim.admin") %>
         
     | 
| 
      
 84 
     | 
    
         
            +
                                    <% end %>
         
     | 
| 
      
 85 
     | 
    
         
            +
                                  </li>
         
     | 
| 
      
 86 
     | 
    
         
            +
                                <% else %>
         
     | 
| 
      
 87 
     | 
    
         
            +
                                  <li class="dropdown__item">
         
     | 
| 
      
 88 
     | 
    
         
            +
                                    <%= link_to publish_survey_path(survey), method: :put, class: "dropdown__button" do %>
         
     | 
| 
      
 89 
     | 
    
         
            +
                                      <%= icon "check-line" %>
         
     | 
| 
      
 90 
     | 
    
         
            +
                                      <%= t("actions.publish", scope: "decidim.admin") %>
         
     | 
| 
      
 91 
     | 
    
         
            +
                                    <% end %>
         
     | 
| 
      
 92 
     | 
    
         
            +
                                  </li>
         
     | 
| 
      
 93 
     | 
    
         
            +
                                <% end %>
         
     | 
| 
      
 94 
     | 
    
         
            +
             
     | 
| 
      
 95 
     | 
    
         
            +
                                <hr>
         
     | 
| 
      
 96 
     | 
    
         
            +
                              <% end %>
         
     | 
| 
      
 97 
     | 
    
         
            +
             
     | 
| 
      
 98 
     | 
    
         
            +
                              <% if allowed_to? :preview, :questionnaire %>
         
     | 
| 
      
 99 
     | 
    
         
            +
                                <li class="dropdown__item">
         
     | 
| 
      
 100 
     | 
    
         
            +
                                  <%= link_to resource_locator(survey).path, target: :blank, data: { "external-link": false }, class: "dropdown__button" do %>
         
     | 
| 
      
 101 
     | 
    
         
            +
                                    <%= icon "eye-line" %>
         
     | 
| 
      
 102 
     | 
    
         
            +
                                    <%= t("actions.preview", scope: "decidim.surveys") %>
         
     | 
| 
      
 103 
     | 
    
         
            +
                                  <% end %>
         
     | 
| 
      
 104 
     | 
    
         
            +
                                </li>
         
     | 
| 
      
 105 
     | 
    
         
            +
             
     | 
| 
      
 106 
     | 
    
         
            +
                                <hr>
         
     | 
| 
       41 
107 
     | 
    
         
             
                              <% end %>
         
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
             
     | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
      
 108 
     | 
    
         
            +
             
     | 
| 
      
 109 
     | 
    
         
            +
                              <li class="dropdown__item">
         
     | 
| 
      
 110 
     | 
    
         
            +
                                <%= dropdown_resource_permissions_link(survey) %>
         
     | 
| 
      
 111 
     | 
    
         
            +
                              </li>
         
     | 
| 
      
 112 
     | 
    
         
            +
             
     | 
| 
      
 113 
     | 
    
         
            +
                              <hr>
         
     | 
| 
      
 114 
     | 
    
         
            +
             
     | 
| 
      
 115 
     | 
    
         
            +
                              <li class="dropdown__item">
         
     | 
| 
      
 116 
     | 
    
         
            +
                                <%= link_to survey_path(survey), method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.surveys") }, class: "dropdown__button" do %>
         
     | 
| 
      
 117 
     | 
    
         
            +
                                  <%= icon "delete-bin-line" %>
         
     | 
| 
      
 118 
     | 
    
         
            +
                                  <%= t("actions.destroy", scope: "decidim.surveys") %>
         
     | 
| 
      
 119 
     | 
    
         
            +
                                <% end %>
         
     | 
| 
      
 120 
     | 
    
         
            +
                              </li>
         
     | 
| 
      
 121 
     | 
    
         
            +
                            </ul>
         
     | 
| 
      
 122 
     | 
    
         
            +
                          </div>
         
     | 
| 
       45 
123 
     | 
    
         
             
                        </td>
         
     | 
| 
       46 
124 
     | 
    
         
             
                      </tr>
         
     | 
| 
       47 
125 
     | 
    
         
             
                    <% end %>
         
     | 
| 
         @@ -0,0 +1,23 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            <% add_decidim_page_title(t(".title")) %>
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            <div class="item_show__header" style="border-bottom: none;">
         
     | 
| 
      
 4 
     | 
    
         
            +
              <h1 class="item_show__header-title">
         
     | 
| 
      
 5 
     | 
    
         
            +
                <%= t(".title") %>
         
     | 
| 
      
 6 
     | 
    
         
            +
              </h1>
         
     | 
| 
      
 7 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            <%= render "decidim/surveys/admin/surveys/tabs_menu" %>
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            <div class="grid-cols-1 2xl:mr-80">
         
     | 
| 
      
 12 
     | 
    
         
            +
              <div class="item__edit-form pb-24">
         
     | 
| 
      
 13 
     | 
    
         
            +
                <%= decidim_form_for(@form, html: { id: "survey-form", class: "form-defaults form edit_questionnaire" }) do |form| %>
         
     | 
| 
      
 14 
     | 
    
         
            +
                  <%= render "decidim/forms/admin/questionnaires/form", form: %>
         
     | 
| 
      
 15 
     | 
    
         
            +
                <% end %>
         
     | 
| 
      
 16 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
              <div class="item__edit-sticky">
         
     | 
| 
      
 19 
     | 
    
         
            +
                <div class="item__edit-sticky-container">
         
     | 
| 
      
 20 
     | 
    
         
            +
                  <%= button_tag t("save", scope: "decidim.forms.admin.questionnaires.edit"), class: "button button__sm button__secondary", form: "survey-form" %>
         
     | 
| 
      
 21 
     | 
    
         
            +
                </div>
         
     | 
| 
      
 22 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 23 
     | 
    
         
            +
            </div>
         
     | 
| 
         @@ -1,11 +1,11 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            <% questionnaire.questions.each do |question| %>
         
     | 
| 
       2 
2 
     | 
    
         
             
              <% next if question.question_type == "separator" %>
         
     | 
| 
       3 
     | 
    
         
            -
              <% next unless question. 
     | 
| 
      
 3 
     | 
    
         
            +
              <% next unless question.survey_responses_published_at %>
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         
             
              <div class="mb-12">
         
     | 
| 
       6 
6 
     | 
    
         
             
                <div class="mb-4">
         
     | 
| 
       7 
7 
     | 
    
         
             
                  <h2 class="h5 inline"><%= translated_attribute question.body %></h2>
         
     | 
| 
       8 
     | 
    
         
            -
                  <span><%= I18n.t("decidim.surveys.admin. 
     | 
| 
      
 8 
     | 
    
         
            +
                  <span><%= I18n.t("decidim.surveys.admin.publish_responses.index.responses", count: question.responses.count) %></span>
         
     | 
| 
       9 
9 
     | 
    
         
             
                </div>
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
                <%= chart_for_question(question.id) %>
         
     | 
| 
         @@ -16,7 +16,7 @@ 
     | 
|
| 
       16 
16 
     | 
    
         | 
| 
       17 
17 
     | 
    
         
             
              <%= render partial: "decidim/shared/component_announcement" if current_component.manifest_name == "surveys" %>
         
     | 
| 
       18 
18 
     | 
    
         
             
              <section>
         
     | 
| 
       19 
     | 
    
         
            -
                <% body = t("decidim.forms.questionnaires.show. 
     | 
| 
       20 
     | 
    
         
            -
                <%= cell("decidim/announcement", { title: t("decidim.forms.questionnaires.show. 
     | 
| 
      
 19 
     | 
    
         
            +
                <% body = t("decidim.forms.questionnaires.show.questionnaire_responded.body") %>
         
     | 
| 
      
 20 
     | 
    
         
            +
                <%= cell("decidim/announcement", { title: t("decidim.forms.questionnaires.show.questionnaire_responded.title"), body: body }) %>
         
     | 
| 
       21 
21 
     | 
    
         
             
              </section>
         
     | 
| 
       22 
22 
     | 
    
         
             
            <% end %>
         
     | 
| 
         @@ -0,0 +1,18 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            <% add_secondary_root_menu(:admin_participatory_process_menu) %>
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            <% content_for :breadcrumb_context_menu do %>
         
     | 
| 
      
 4 
     | 
    
         
            +
              <div class="process-title-content-breadcrumb-container-right">
         
     | 
| 
      
 5 
     | 
    
         
            +
                <% if allowed_to? :preview, :questionnaire %>
         
     | 
| 
      
 6 
     | 
    
         
            +
                  <%= link_to public_url, class: "button button__sm button__transparent process-title-content-breadcrumb-container-right-link", target: :_blank, data: { "external-link": false } do %>
         
     | 
| 
      
 7 
     | 
    
         
            +
                    <%= icon "eye-line" %>
         
     | 
| 
      
 8 
     | 
    
         
            +
                    <span>
         
     | 
| 
      
 9 
     | 
    
         
            +
                      <%= t("actions.see_survey", scope: "decidim.admin") %>
         
     | 
| 
      
 10 
     | 
    
         
            +
                    </span>
         
     | 
| 
      
 11 
     | 
    
         
            +
                  <% end %>
         
     | 
| 
      
 12 
     | 
    
         
            +
                <% end %>
         
     | 
| 
      
 13 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 14 
     | 
    
         
            +
            <% end %>
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
            <%= render "layouts/decidim/admin/application" do %>
         
     | 
| 
      
 17 
     | 
    
         
            +
              <%= yield %>
         
     | 
| 
      
 18 
     | 
    
         
            +
            <% end %>
         
     | 
    
        data/config/assets.rb
    CHANGED
    
    
    
        data/config/locales/ar.yml
    CHANGED
    
    | 
         @@ -13,18 +13,9 @@ ar: 
     | 
|
| 
       13 
13 
     | 
    
         
             
                    few: الدراسات الاستقصائية
         
     | 
| 
       14 
14 
     | 
    
         
             
                    many: الدراسات الاستقصائية
         
     | 
| 
       15 
15 
     | 
    
         
             
                    other: الدراسات الاستقصائية
         
     | 
| 
       16 
     | 
    
         
            -
                  decidim/surveys/survey_answer:
         
     | 
| 
       17 
     | 
    
         
            -
                    zero: الأجوبة
         
     | 
| 
       18 
     | 
    
         
            -
                    one: إجابة
         
     | 
| 
       19 
     | 
    
         
            -
                    two: الأجوبة
         
     | 
| 
       20 
     | 
    
         
            -
                    few: الأجوبة
         
     | 
| 
       21 
     | 
    
         
            -
                    many: الأجوبة
         
     | 
| 
       22 
     | 
    
         
            -
                    other: الأجوبة
         
     | 
| 
       23 
16 
     | 
    
         
             
              decidim:
         
     | 
| 
       24 
17 
     | 
    
         
             
                components:
         
     | 
| 
       25 
18 
     | 
    
         
             
                  surveys:
         
     | 
| 
       26 
     | 
    
         
            -
                    actions:
         
     | 
| 
       27 
     | 
    
         
            -
                      answer: إجابة
         
     | 
| 
       28 
19 
     | 
    
         
             
                    settings:
         
     | 
| 
       29 
20 
     | 
    
         
             
                      global:
         
     | 
| 
       30 
21 
     | 
    
         
             
                        announcement: إعلان
         
     | 
| 
         @@ -42,24 +33,13 @@ ar: 
     | 
|
| 
       42 
33 
     | 
    
         
             
                      email_outro: لقد تلقيت هذا الإشعار لأنك تتابع %{participatory_space_title}. يمكنك إيقاف تلقي الإخطارات باتباع الرابط السابق.
         
     | 
| 
       43 
34 
     | 
    
         
             
                      email_subject: استطلاع جديد في %{participatory_space_title}
         
     | 
| 
       44 
35 
     | 
    
         
             
                      notification_title: المسح <a href="%{resource_path}">%{resource_title}</a> في <a href="%{participatory_space_url}">%{participatory_space_title}</a> مفتوح الآن.
         
     | 
| 
       45 
     | 
    
         
            -
                metrics:
         
     | 
| 
       46 
     | 
    
         
            -
                  survey_answers:
         
     | 
| 
       47 
     | 
    
         
            -
                    description: عدد الاستطلاعات التي أجاب عليها المشاركون
         
     | 
| 
       48 
     | 
    
         
            -
                    object: إجابات على الدراسات الاستقصائية
         
     | 
| 
       49 
     | 
    
         
            -
                    title: إجابات للمسوحات
         
     | 
| 
       50 
36 
     | 
    
         
             
                surveys:
         
     | 
| 
       51 
37 
     | 
    
         
             
                  actions:
         
     | 
| 
       52 
38 
     | 
    
         
             
                    edit: تعديل
         
     | 
| 
       53 
39 
     | 
    
         
             
                    preview: معاينة
         
     | 
| 
       54 
40 
     | 
    
         
             
                    title: الإجراءات
         
     | 
| 
       55 
41 
     | 
    
         
             
                  admin:
         
     | 
| 
       56 
     | 
    
         
            -
                    exports:
         
     | 
| 
       57 
     | 
    
         
            -
                      survey_user_answers: إجابات المشاركين في الاستطلاع
         
     | 
| 
       58 
42 
     | 
    
         
             
                    surveys:
         
     | 
| 
       59 
43 
     | 
    
         
             
                      update:
         
     | 
| 
       60 
44 
     | 
    
         
             
                        invalid: كانت هناك مشكلة في إنقاذ المسح.
         
     | 
| 
       61 
45 
     | 
    
         
             
                        success: تم حفظ الاستطلاع بنجاح.
         
     | 
| 
       62 
     | 
    
         
            -
                  surveys:
         
     | 
| 
       63 
     | 
    
         
            -
                    answer:
         
     | 
| 
       64 
     | 
    
         
            -
                      invalid: كانت هناك مشكلة في الإجابة على الاستبيان.
         
     | 
| 
       65 
     | 
    
         
            -
                      success: مسح أجاب بنجاح.
         
     | 
    
        data/config/locales/bg.yml
    CHANGED
    
    | 
         @@ -9,14 +9,9 @@ bg: 
     | 
|
| 
       9 
9 
     | 
    
         
             
                  decidim/surveys/survey:
         
     | 
| 
       10 
10 
     | 
    
         
             
                    one: Анкета
         
     | 
| 
       11 
11 
     | 
    
         
             
                    other: Анкети
         
     | 
| 
       12 
     | 
    
         
            -
                  decidim/surveys/survey_answer:
         
     | 
| 
       13 
     | 
    
         
            -
                    one: Отговор
         
     | 
| 
       14 
     | 
    
         
            -
                    other: Отговори
         
     | 
| 
       15 
12 
     | 
    
         
             
              decidim:
         
     | 
| 
       16 
13 
     | 
    
         
             
                components:
         
     | 
| 
       17 
14 
     | 
    
         
             
                  surveys:
         
     | 
| 
       18 
     | 
    
         
            -
                    actions:
         
     | 
| 
       19 
     | 
    
         
            -
                      answer: Отговор
         
     | 
| 
       20 
15 
     | 
    
         
             
                    settings:
         
     | 
| 
       21 
16 
     | 
    
         
             
                      global:
         
     | 
| 
       22 
17 
     | 
    
         
             
                        announcement: Съобщение
         
     | 
| 
         @@ -34,34 +29,11 @@ bg: 
     | 
|
| 
       34 
29 
     | 
    
         
             
                      email_outro: Получавате това известие, защото следвате %{participatory_space_title}. Може да прекратите известията чрез предходния линк.
         
     | 
| 
       35 
30 
     | 
    
         
             
                      email_subject: Нова анкета в(ъв) %{participatory_space_title}
         
     | 
| 
       36 
31 
     | 
    
         
             
                      notification_title: Анкетата <a href="%{resource_path}">%{resource_title}</a> в(ъв) <a href="%{participatory_space_url}">%{participatory_space_title}</a> вече е отворена.
         
     | 
| 
       37 
     | 
    
         
            -
                metrics:
         
     | 
| 
       38 
     | 
    
         
            -
                  survey_answers:
         
     | 
| 
       39 
     | 
    
         
            -
                    description: Брой на анкетите с отговори от участници
         
     | 
| 
       40 
     | 
    
         
            -
                    object: отговори на анкети
         
     | 
| 
       41 
     | 
    
         
            -
                    title: Отговори на анкети
         
     | 
| 
       42 
     | 
    
         
            -
                statistics:
         
     | 
| 
       43 
     | 
    
         
            -
                  answers_count: Отговори
         
     | 
| 
       44 
32 
     | 
    
         
             
                surveys:
         
     | 
| 
       45 
33 
     | 
    
         
             
                  admin:
         
     | 
| 
       46 
     | 
    
         
            -
                    exports:
         
     | 
| 
       47 
     | 
    
         
            -
                      survey_user_answers: Отговори на участник в анкети
         
     | 
| 
       48 
34 
     | 
    
         
             
                    surveys:
         
     | 
| 
       49 
35 
     | 
    
         
             
                      update:
         
     | 
| 
       50 
36 
     | 
    
         
             
                        invalid: Възникна проблем при запазването на анкетата.
         
     | 
| 
       51 
37 
     | 
    
         
             
                        success: Анкетата беше запазена успешно.
         
     | 
| 
       52 
38 
     | 
    
         
             
                  last_activity:
         
     | 
| 
       53 
39 
     | 
    
         
             
                    new_survey: 'Нова анкета:'
         
     | 
| 
       54 
     | 
    
         
            -
                  models:
         
     | 
| 
       55 
     | 
    
         
            -
                    survey:
         
     | 
| 
       56 
     | 
    
         
            -
                      fields:
         
     | 
| 
       57 
     | 
    
         
            -
                        answers: Отговори
         
     | 
| 
       58 
     | 
    
         
            -
                  survey_confirmation_mailer:
         
     | 
| 
       59 
     | 
    
         
            -
                    confirmation:
         
     | 
| 
       60 
     | 
    
         
            -
                      body: Вие успешно отговорихте на анкетата %{questionnaire_title} в %{participatory_space}
         
     | 
| 
       61 
     | 
    
         
            -
                      subject: Въпросникът %{questionnaire_title} се нуждае от потвърждение
         
     | 
| 
       62 
     | 
    
         
            -
                    export_name: Анкетни отговори
         
     | 
| 
       63 
     | 
    
         
            -
                  surveys:
         
     | 
| 
       64 
     | 
    
         
            -
                    answer:
         
     | 
| 
       65 
     | 
    
         
            -
                      invalid: Възникна проблем при попълването на отговорите на анкетата.
         
     | 
| 
       66 
     | 
    
         
            -
                      spam_detected: Възникна проблем при попълването на отговорите във формуляра. Навярно сте били твърде бързи, бихте ли опитали отново?
         
     | 
| 
       67 
     | 
    
         
            -
                      success: Отговорите на анкетата са попълнени успешно.
         
     | 
    
        data/config/locales/ca-IT.yml
    CHANGED
    
    | 
         @@ -9,18 +9,27 @@ ca-IT: 
     | 
|
| 
       9 
9 
     | 
    
         
             
                  decidim/surveys/survey:
         
     | 
| 
       10 
10 
     | 
    
         
             
                    one: Enquesta
         
     | 
| 
       11 
11 
     | 
    
         
             
                    other: Enquestes
         
     | 
| 
       12 
     | 
    
         
            -
                  decidim/surveys/ 
     | 
| 
      
 12 
     | 
    
         
            +
                  decidim/surveys/survey_response:
         
     | 
| 
       13 
13 
     | 
    
         
             
                    one: Resposta
         
     | 
| 
       14 
14 
     | 
    
         
             
                    other: Respostes
         
     | 
| 
       15 
15 
     | 
    
         
             
              decidim:
         
     | 
| 
       16 
16 
     | 
    
         
             
                admin:
         
     | 
| 
      
 17 
     | 
    
         
            +
                  actions:
         
     | 
| 
      
 18 
     | 
    
         
            +
                    confirm_unpublish_survey: Segur que vols despublicar aquesta enquesta?
         
     | 
| 
      
 19 
     | 
    
         
            +
                    see_survey: Veure enquesta
         
     | 
| 
       17 
20 
     | 
    
         
             
                  admin_log:
         
     | 
| 
       18 
21 
     | 
    
         
             
                    changeset:
         
     | 
| 
       19 
22 
     | 
    
         
             
                      surveys: enquestes
         
     | 
| 
      
 23 
     | 
    
         
            +
                  menu:
         
     | 
| 
      
 24 
     | 
    
         
            +
                    surveys_menu:
         
     | 
| 
      
 25 
     | 
    
         
            +
                      main: Principal
         
     | 
| 
      
 26 
     | 
    
         
            +
                      questions: Preguntes
         
     | 
| 
      
 27 
     | 
    
         
            +
                      responses: Respostes
         
     | 
| 
      
 28 
     | 
    
         
            +
                      settings: Configuració
         
     | 
| 
       20 
29 
     | 
    
         
             
                components:
         
     | 
| 
       21 
30 
     | 
    
         
             
                  surveys:
         
     | 
| 
       22 
31 
     | 
    
         
             
                    actions:
         
     | 
| 
       23 
     | 
    
         
            -
                       
     | 
| 
      
 32 
     | 
    
         
            +
                      respond: Respondre
         
     | 
| 
       24 
33 
     | 
    
         
             
                    name: Enquestes
         
     | 
| 
       25 
34 
     | 
    
         
             
                    settings:
         
     | 
| 
       26 
35 
     | 
    
         
             
                      announcement: Avís
         
     | 
| 
         @@ -40,44 +49,50 @@ ca-IT: 
     | 
|
| 
       40 
49 
     | 
    
         
             
                      email_outro: Has rebut aquesta notificació perquè estàs seguint l'espai "%{participatory_space_title}". Pots deixar de rebre notificacions seguint l'enllaç anterior.
         
     | 
| 
       41 
50 
     | 
    
         
             
                      email_subject: Una nova enquesta a %{participatory_space_title}
         
     | 
| 
       42 
51 
     | 
    
         
             
                      notification_title: L'enquesta <a href="%{resource_path}">%{resource_title}</a> en <a href="%{participatory_space_url}">%{participatory_space_title}</a> ja està oberta.
         
     | 
| 
       43 
     | 
    
         
            -
                metrics:
         
     | 
| 
       44 
     | 
    
         
            -
                  survey_answers:
         
     | 
| 
       45 
     | 
    
         
            -
                    description: Nombre d'enquestes contestades per les participants
         
     | 
| 
       46 
     | 
    
         
            -
                    object: respostes a enquestes
         
     | 
| 
       47 
     | 
    
         
            -
                    title: Respostes a enquestes
         
     | 
| 
       48 
52 
     | 
    
         
             
                statistics:
         
     | 
| 
       49 
     | 
    
         
            -
                   
     | 
| 
      
 53 
     | 
    
         
            +
                  responses: 'Respostes:'
         
     | 
| 
      
 54 
     | 
    
         
            +
                  responses_count: Respostes
         
     | 
| 
      
 55 
     | 
    
         
            +
                  surveys_count_tooltip: El nombre d'enquestes fetes i de respostes recollides.
         
     | 
| 
       50 
56 
     | 
    
         
             
                surveys:
         
     | 
| 
       51 
57 
     | 
    
         
             
                  actions:
         
     | 
| 
       52 
     | 
    
         
            -
                    answers_alert: L'opció d'esborrar les respostes en publicar l'enquesta està activada. Si segueixes, s'esborraran les %{answers_count} existents actualment.
         
     | 
| 
       53 
58 
     | 
    
         
             
                    confirm_destroy: Segur que ho vols eliminar?
         
     | 
| 
       54 
59 
     | 
    
         
             
                    destroy: Eliminar
         
     | 
| 
       55 
60 
     | 
    
         
             
                    edit: Editar
         
     | 
| 
       56 
     | 
    
         
            -
                    manage_questions:  
     | 
| 
      
 61 
     | 
    
         
            +
                    manage_questions: Preguntes
         
     | 
| 
       57 
62 
     | 
    
         
             
                    new_survey: Nova enquesta
         
     | 
| 
       58 
63 
     | 
    
         
             
                    preview: Previsualitzar
         
     | 
| 
      
 64 
     | 
    
         
            +
                    responses_alert: L'opció d'esborrar les respostes en publicar l'enquesta està activada. Si segueixes, s'esborraran les %{responses_count} existents actualment.
         
     | 
| 
       59 
65 
     | 
    
         
             
                    title: Accions
         
     | 
| 
       60 
66 
     | 
    
         
             
                  admin:
         
     | 
| 
       61 
     | 
    
         
            -
                    answers:
         
     | 
| 
       62 
     | 
    
         
            -
                      index:
         
     | 
| 
       63 
     | 
    
         
            -
                        title: "%{total} respostes en total"
         
     | 
| 
       64 
     | 
    
         
            -
                      show:
         
     | 
| 
       65 
     | 
    
         
            -
                        title: 'Resposta #%{number}'
         
     | 
| 
       66 
67 
     | 
    
         
             
                    exports:
         
     | 
| 
       67 
     | 
    
         
            -
                       
     | 
| 
       68 
     | 
    
         
            -
                     
     | 
| 
      
 68 
     | 
    
         
            +
                      survey_user_responses: Respostes de les participants de l'enquesta
         
     | 
| 
      
 69 
     | 
    
         
            +
                    publish_responses:
         
     | 
| 
       69 
70 
     | 
    
         
             
                      index:
         
     | 
| 
       70 
     | 
    
         
            -
                        answers:
         
     | 
| 
       71 
     | 
    
         
            -
                          one: "%{count} resposta"
         
     | 
| 
       72 
     | 
    
         
            -
                          other: "%{count} respostes"
         
     | 
| 
       73 
71 
     | 
    
         
             
                        description: |-
         
     | 
| 
       74 
     | 
    
         
            -
                          Publicant les respostes a les  
     | 
| 
       75 
     | 
    
         
            -
                          Pots seleccionar les  
     | 
| 
      
 72 
     | 
    
         
            +
                          Publicant les respostes a les repostes de l'enquesta, aquestes seran visibles per a les visitants.
         
     | 
| 
      
 73 
     | 
    
         
            +
                          Pots seleccionar les repostes que vols publicar marcant el "checkbox" de cadascuna d'elles.
         
     | 
| 
       76 
74 
     | 
    
         
             
                          Només pots publicar les respostes de les preguntes que són del tipus de resposta: "Opció única", "Opció múltiple", "Matriu (opció única)", "Matriu (opció múltiple), i "Ordenació".
         
     | 
| 
      
 75 
     | 
    
         
            +
                        responses:
         
     | 
| 
      
 76 
     | 
    
         
            +
                          one: "%{count} resposta"
         
     | 
| 
      
 77 
     | 
    
         
            +
                          other: "%{count} respostes"
         
     | 
| 
       77 
78 
     | 
    
         
             
                        status:
         
     | 
| 
       78 
79 
     | 
    
         
             
                          not_published: No publicades
         
     | 
| 
       79 
80 
     | 
    
         
             
                          published: Publicades
         
     | 
| 
       80 
     | 
    
         
            -
                        title: Publicar respostes
         
     | 
| 
      
 81 
     | 
    
         
            +
                        title: Publicar les respostes
         
     | 
| 
      
 82 
     | 
    
         
            +
                    questions:
         
     | 
| 
      
 83 
     | 
    
         
            +
                      surveys:
         
     | 
| 
      
 84 
     | 
    
         
            +
                        edit:
         
     | 
| 
      
 85 
     | 
    
         
            +
                          title: Preguntes
         
     | 
| 
      
 86 
     | 
    
         
            +
                    responses:
         
     | 
| 
      
 87 
     | 
    
         
            +
                      index:
         
     | 
| 
      
 88 
     | 
    
         
            +
                        no_responses: Encara no hi ha cap resposta
         
     | 
| 
      
 89 
     | 
    
         
            +
                        title: "%{total} respostes en total"
         
     | 
| 
      
 90 
     | 
    
         
            +
                      show:
         
     | 
| 
      
 91 
     | 
    
         
            +
                        title: 'Resposta #%{number}'
         
     | 
| 
      
 92 
     | 
    
         
            +
                    settings:
         
     | 
| 
      
 93 
     | 
    
         
            +
                      surveys:
         
     | 
| 
      
 94 
     | 
    
         
            +
                        edit:
         
     | 
| 
      
 95 
     | 
    
         
            +
                          title: Configuració
         
     | 
| 
       81 
96 
     | 
    
         
             
                    surveys:
         
     | 
| 
       82 
97 
     | 
    
         
             
                      create:
         
     | 
| 
       83 
98 
     | 
    
         
             
                        invalid: S'ha produït un error creant l'enquesta.
         
     | 
| 
         @@ -88,6 +103,8 @@ ca-IT: 
     | 
|
| 
       88 
103 
     | 
    
         
             
                        title: Editar l'enquesta
         
     | 
| 
       89 
104 
     | 
    
         
             
                      index:
         
     | 
| 
       90 
105 
     | 
    
         
             
                        title: Enquestes
         
     | 
| 
      
 106 
     | 
    
         
            +
                      new:
         
     | 
| 
      
 107 
     | 
    
         
            +
                        title: Nova enquesta
         
     | 
| 
       91 
108 
     | 
    
         
             
                      publish:
         
     | 
| 
       92 
109 
     | 
    
         
             
                        invalid: S'ha produït un error en publicar aquesta enquesta.
         
     | 
| 
       93 
110 
     | 
    
         
             
                        success: Enquesta publicada correctament.
         
     | 
| 
         @@ -113,10 +130,14 @@ ca-IT: 
     | 
|
| 
       113 
130 
     | 
    
         
             
                  models:
         
     | 
| 
       114 
131 
     | 
    
         
             
                    survey:
         
     | 
| 
       115 
132 
     | 
    
         
             
                      fields:
         
     | 
| 
       116 
     | 
    
         
            -
                         
     | 
| 
      
 133 
     | 
    
         
            +
                        published: Publicada
         
     | 
| 
       117 
134 
     | 
    
         
             
                        questions: Preguntes
         
     | 
| 
      
 135 
     | 
    
         
            +
                        responses: Respostes
         
     | 
| 
       118 
136 
     | 
    
         
             
                        status: Estat
         
     | 
| 
       119 
137 
     | 
    
         
             
                        title: Títol
         
     | 
| 
      
 138 
     | 
    
         
            +
                      published:
         
     | 
| 
      
 139 
     | 
    
         
            +
                        published: Publicada
         
     | 
| 
      
 140 
     | 
    
         
            +
                        unpublished: Despublicada
         
     | 
| 
       120 
141 
     | 
    
         
             
                      status:
         
     | 
| 
       121 
142 
     | 
    
         
             
                        closed: Tancada
         
     | 
| 
       122 
143 
     | 
    
         
             
                        open: Oberta
         
     | 
| 
         @@ -124,12 +145,8 @@ ca-IT: 
     | 
|
| 
       124 
145 
     | 
    
         
             
                    confirmation:
         
     | 
| 
       125 
146 
     | 
    
         
             
                      body: Has respost amb èxit a l'enquesta %{questionnaire_title} dins de %{participatory_space}
         
     | 
| 
       126 
147 
     | 
    
         
             
                      subject: Confirmació de resposta al qüestionari %{questionnaire_title}
         
     | 
| 
       127 
     | 
    
         
            -
                    export_name:  
     | 
| 
      
 148 
     | 
    
         
            +
                    export_name: Respuestas a l'encuesta
         
     | 
| 
       128 
149 
     | 
    
         
             
                  surveys:
         
     | 
| 
       129 
     | 
    
         
            -
                    answer:
         
     | 
| 
       130 
     | 
    
         
            -
                      invalid: S'ha produït un error en respondre l'enquesta.
         
     | 
| 
       131 
     | 
    
         
            -
                      spam_detected: Hi ha hagut un problema responent el formulari. Potser has anat massa ràpid, ho pots tornar a intentar?
         
     | 
| 
       132 
     | 
    
         
            -
                      success: Enquesta resposta correctament.
         
     | 
| 
       133 
150 
     | 
    
         
             
                    count:
         
     | 
| 
       134 
151 
     | 
    
         
             
                      surveys_count:
         
     | 
| 
       135 
152 
     | 
    
         
             
                        one: "%{count} enquesta"
         
     | 
| 
         @@ -140,6 +157,10 @@ ca-IT: 
     | 
|
| 
       140 
157 
     | 
    
         
             
                        closed: Tancada
         
     | 
| 
       141 
158 
     | 
    
         
             
                        open: Obertes
         
     | 
| 
       142 
159 
     | 
    
         
             
                    no_surveys_warning: No hi ha enquestes que coincideixin amb el teu criteri de cerca o no hi ha cap enquesta.
         
     | 
| 
      
 160 
     | 
    
         
            +
                    response:
         
     | 
| 
      
 161 
     | 
    
         
            +
                      invalid: S'ha produït un error en respondre l'enquesta.
         
     | 
| 
      
 162 
     | 
    
         
            +
                      spam_detected: Hi ha hagut un problema responent el formulari. Potser has anat massa ràpid, ho pots tornar a intentar?
         
     | 
| 
      
 163 
     | 
    
         
            +
                      success: L'enquesta s'ha respost correctament.
         
     | 
| 
       143 
164 
     | 
    
         
             
                    show:
         
     | 
| 
       144 
165 
     | 
    
         
             
                      closed: Tancada
         
     | 
| 
       145 
166 
     | 
    
         
             
                      open: Oberta
         
     |