decidim-participatory_processes 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +36 -0
- data/Rakefile +3 -0
- data/app/assets/config/admin/decidim_participatory_processes_manifest.js +1 -0
- data/app/assets/config/decidim_participatory_processes_manifest.js +2 -0
- data/app/assets/images/decidim/participatory_processes/process.svg +10 -0
- data/app/assets/javascripts/decidim/participatory_processes/admin/participatory_processes.js.es6 +12 -0
- data/app/assets/javascripts/decidim/participatory_processes/filters.js.es6 +25 -0
- data/app/commands/decidim/participatory_processes/admin/activate_participatory_process_step.rb +46 -0
- data/app/commands/decidim/participatory_processes/admin/copy_participatory_process.rb +116 -0
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process.rb +82 -0
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process_admin.rb +95 -0
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process_group.rb +57 -0
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process_step.rb +49 -0
- data/app/commands/decidim/participatory_processes/admin/deactivate_participatory_process_step.rb +38 -0
- data/app/commands/decidim/participatory_processes/admin/destroy_participatory_process_step.rb +46 -0
- data/app/commands/decidim/participatory_processes/admin/publish_participatory_process.rb +34 -0
- data/app/commands/decidim/participatory_processes/admin/reorder_participatory_process_steps.rb +54 -0
- data/app/commands/decidim/participatory_processes/admin/unpublish_participatory_process.rb +34 -0
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process.rb +77 -0
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_admin.rb +43 -0
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_group.rb +60 -0
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_step.rb +51 -0
- data/app/constraints/decidim/participatory_processes/current_feature.rb +28 -0
- data/app/constraints/decidim/participatory_processes/current_participatory_process.rb +37 -0
- data/app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb +21 -0
- data/app/controllers/concerns/decidim/participatory_processes/needs_participatory_process.rb +50 -0
- data/app/controllers/concerns/decidim/participatory_processes/participatory_process_context.rb +27 -0
- data/app/controllers/decidim/participatory_processes/admin/application_controller.rb +11 -0
- data/app/controllers/decidim/participatory_processes/admin/categories_controller.rb +13 -0
- data/app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb +26 -0
- data/app/controllers/decidim/participatory_processes/admin/exports_controller.rb +14 -0
- data/app/controllers/decidim/participatory_processes/admin/feature_permissions_controller.rb +14 -0
- data/app/controllers/decidim/participatory_processes/admin/features_controller.rb +14 -0
- data/app/controllers/decidim/participatory_processes/admin/moderations_controller.rb +12 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb +27 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_copies_controller.rb +35 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_groups_controller.rb +90 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_publications_controller.rb +45 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_step_activations_controller.rb +39 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_step_ordering_controller.rb +29 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_steps_controller.rb +91 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_user_roles_controller.rb +99 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_processes_controller.rb +102 -0
- data/app/controllers/decidim/participatory_processes/participatory_process_groups_controller.rb +28 -0
- data/app/controllers/decidim/participatory_processes/participatory_process_steps_controller.rb +20 -0
- data/app/controllers/decidim/participatory_processes/participatory_process_widgets_controller.rb +21 -0
- data/app/controllers/decidim/participatory_processes/participatory_processes_controller.rb +64 -0
- data/app/forms/decidim/participatory_processes/admin/participatory_process_copy_form.rb +35 -0
- data/app/forms/decidim/participatory_processes/admin/participatory_process_form.rb +72 -0
- data/app/forms/decidim/participatory_processes/admin/participatory_process_group_form.rb +26 -0
- data/app/forms/decidim/participatory_processes/admin/participatory_process_step_form.rb +37 -0
- data/app/forms/decidim/participatory_processes/admin/participatory_process_user_role_form.rb +31 -0
- data/app/helpers/decidim/participatory_processes/admin/process_groups_for_select_helper.rb +23 -0
- data/app/helpers/decidim/participatory_processes/admin/processes_for_select_helper.rb +25 -0
- data/app/helpers/decidim/participatory_processes/participatory_process_helper.rb +19 -0
- data/app/helpers/decidim/participatory_processes/participatory_process_steps_helper.rb +20 -0
- data/app/models/decidim/participatory_process.rb +62 -0
- data/app/models/decidim/participatory_process_group.rb +15 -0
- data/app/models/decidim/participatory_process_step.rb +39 -0
- data/app/models/decidim/participatory_processes/abilities/admin/admin_ability.rb +21 -0
- data/app/models/decidim/participatory_processes/abilities/admin_ability.rb +16 -0
- data/app/models/decidim/participatory_processes/abilities/everyone_ability.rb +19 -0
- data/app/presenters/decidim/participatory_processes/participatory_process_stats_presenter.rb +52 -0
- data/app/queries/decidim/participatory_processes/admin/admin_users.rb +46 -0
- data/app/queries/decidim/participatory_processes/filtered_participatory_process_groups.rb +29 -0
- data/app/queries/decidim/participatory_processes/filtered_participatory_processes.rb +26 -0
- data/app/queries/decidim/participatory_processes/highlighted_participatory_processes.rb +12 -0
- data/app/queries/decidim/participatory_processes/organization_participatory_process_groups.rb +16 -0
- data/app/queries/decidim/participatory_processes/organization_participatory_processes.rb +16 -0
- data/app/queries/decidim/participatory_processes/organization_prioritized_participatory_process_groups.rb +20 -0
- data/app/queries/decidim/participatory_processes/organization_prioritized_participatory_processes.rb +22 -0
- data/app/queries/decidim/participatory_processes/organization_published_participatory_processes.rb +19 -0
- data/app/queries/decidim/participatory_processes/prioritized_participatory_processes.rb +13 -0
- data/app/queries/decidim/participatory_processes/promoted_participatory_processes.rb +12 -0
- data/app/queries/decidim/participatory_processes/published_participatory_processes.rb +12 -0
- data/app/views/decidim/participatory_process_groups/_participatory_process_group.html.erb +22 -0
- data/app/views/decidim/participatory_process_steps/_participatory_process_step.html.erb +16 -0
- data/app/views/decidim/participatory_processes/_order_by_processes.html.erb +12 -0
- data/app/views/decidim/participatory_processes/_participatory_process.html.erb +28 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_copies/_form.html.erb +38 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_copies/new.html.erb +7 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/_form.html.erb +17 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/edit.html.erb +19 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/index.html.erb +44 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/new.html.erb +13 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_groups/show.html.erb +23 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/_form.html.erb +25 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/edit.html.erb +8 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/index.html.erb +63 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/new.html.erb +7 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_steps/show.html.erb +18 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/_form.html.erb +22 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/edit.html.erb +7 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/index.html.erb +65 -0
- data/app/views/decidim/participatory_processes/admin/participatory_process_user_roles/new.html.erb +7 -0
- data/app/views/decidim/participatory_processes/admin/participatory_processes/_form.html.erb +107 -0
- data/app/views/decidim/participatory_processes/admin/participatory_processes/edit.html.erb +19 -0
- data/app/views/decidim/participatory_processes/admin/participatory_processes/index.html.erb +66 -0
- data/app/views/decidim/participatory_processes/admin/participatory_processes/new.html.erb +11 -0
- data/app/views/decidim/participatory_processes/participatory_process_groups/show.html.erb +11 -0
- data/app/views/decidim/participatory_processes/participatory_process_steps/_timeline.html.erb +7 -0
- data/app/views/decidim/participatory_processes/participatory_process_steps/index.html.erb +14 -0
- data/app/views/decidim/participatory_processes/participatory_process_widgets/show.html.erb +17 -0
- data/app/views/decidim/participatory_processes/participatory_processes/_no_processes_yet.html.erb +3 -0
- data/app/views/decidim/participatory_processes/participatory_processes/_promoted_process.html.erb +32 -0
- data/app/views/decidim/participatory_processes/participatory_processes/_statistics.html.erb +10 -0
- data/app/views/decidim/participatory_processes/participatory_processes/index.html.erb +22 -0
- data/app/views/decidim/participatory_processes/participatory_processes/index.js.erb +6 -0
- data/app/views/decidim/participatory_processes/participatory_processes/show.html.erb +92 -0
- data/app/views/layouts/decidim/_process_header.html.erb +65 -0
- data/app/views/layouts/decidim/_process_header_steps.html.erb +27 -0
- data/app/views/layouts/decidim/admin/participatory_process.html.erb +64 -0
- data/app/views/layouts/decidim/admin/participatory_process_groups.html.erb +14 -0
- data/app/views/layouts/decidim/admin/participatory_processes.html.erb +14 -0
- data/app/views/layouts/decidim/participatory_process.html.erb +30 -0
- data/config/locales/ca.yml +281 -0
- data/config/locales/en.yml +281 -0
- data/config/locales/es.yml +281 -0
- data/config/locales/eu.yml +280 -0
- data/config/locales/fi.yml +280 -0
- data/config/locales/fr.yml +280 -0
- data/config/locales/it.yml +280 -0
- data/config/locales/nl.yml +280 -0
- data/config/locales/pl.yml +281 -0
- data/config/locales/uk.yml +282 -0
- data/db/migrate/20161005130108_add_participatory_processes.rb +19 -0
- data/db/migrate/20161010102356_translate_processes.rb +17 -0
- data/db/migrate/20161011125616_add_hero_image_to_processes.rb +7 -0
- data/db/migrate/20161011141033_add_banner_image_to_processes.rb +7 -0
- data/db/migrate/20161013134732_add_promoted_flag_to_processes.rb +7 -0
- data/db/migrate/20161017085822_add_participatory_process_steps.rb +18 -0
- data/db/migrate/20161019072016_add_active_flag_to_step.rb +13 -0
- data/db/migrate/20161020080756_add_position_to_steps.rb +9 -0
- data/db/migrate/20161025125300_add_published_at_to_processes.rb +7 -0
- data/db/migrate/20161107152228_remove_not_null_on_step_position.rb +7 -0
- data/db/migrate/20161110092735_add_index_for_process_slug_organization.rb +10 -0
- data/db/migrate/20161116115156_create_attachments.rb +18 -0
- data/db/migrate/20170116135237_loosen_step_requirements.rb +8 -0
- data/db/migrate/20170123134023_make_attachments_polymorphic.rb +20 -0
- data/db/migrate/20170125135937_rename_attachable_to_attached_to.rb +13 -0
- data/db/migrate/20170126151123_add_extra_info_to_processes.rb +10 -0
- data/db/migrate/20170206083118_rename_extra_info_on_processes.rb +14 -0
- data/db/migrate/20170220110740_remove_steps_short_description.rb +23 -0
- data/db/migrate/20170221094835_add_scopes_to_processes.rb +8 -0
- data/db/migrate/20170228142440_add_participatory_process_groups.rb +17 -0
- data/db/migrate/20170404132616_change_steps_end_and_start_date_to_date.rb +8 -0
- data/db/migrate/20170720120135_make_features_polymorphic.rb +27 -0
- data/db/migrate/20170725085104_add_show_statistics_to_participatory_processes.rb +7 -0
- data/db/migrate/20170804125402_attachment_description_nullable.rb +7 -0
- data/db/migrate/20170808080905_add_announcement_to_participatory_processes.rb +7 -0
- data/db/migrate/20170809084005_add_scopes_enabled_to_participatory_processes.rb +7 -0
- data/db/migrate/20170830081725_add_start_date_to_processes.rb +8 -0
- data/db/seeds/Exampledocument.pdf +0 -0
- data/db/seeds/city.jpeg +0 -0
- data/db/seeds/city2.jpeg +0 -0
- data/db/seeds/homepage_image.jpg +0 -0
- data/lib/decidim/participatory_processes.rb +12 -0
- data/lib/decidim/participatory_processes/admin.rb +10 -0
- data/lib/decidim/participatory_processes/admin_engine.rb +98 -0
- data/lib/decidim/participatory_processes/engine.rb +55 -0
- data/lib/decidim/participatory_processes/participatory_space.rb +118 -0
- data/lib/decidim/participatory_processes/test/factories.rb +97 -0
- metadata +266 -0
@@ -0,0 +1,65 @@
|
|
1
|
+
<div class="process-header row column">
|
2
|
+
<div class="row column process-header__main"
|
3
|
+
style="background-image:url(<%= current_participatory_process.banner_image.url %>);">
|
4
|
+
<div class="process-header__container row">
|
5
|
+
<div class="columns mediumlarge-9 process-header__info">
|
6
|
+
<div>
|
7
|
+
<h1 class="text-highlight heading2">
|
8
|
+
<%= translated_attribute(current_participatory_process.title) %>
|
9
|
+
</h1>
|
10
|
+
</div>
|
11
|
+
<div>
|
12
|
+
<h2 class="text-highlight heading-small">
|
13
|
+
<% if current_participatory_process.hashtag.present? %>
|
14
|
+
<span class="process-header__hashtag">
|
15
|
+
<%= link_to "##{current_participatory_process.hashtag}", "https://twitter.com/hashtag/#{current_participatory_process.hashtag}" %>
|
16
|
+
</span>
|
17
|
+
<% end %>
|
18
|
+
<%= translated_attribute(current_participatory_process.subtitle) %>
|
19
|
+
</h2>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
<%= render partial: "layouts/decidim/process_header_steps", locals: { participatory_process: current_participatory_process } %>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
<% if current_participatory_process.features.any? %>
|
26
|
+
<div class="row column">
|
27
|
+
<div class="process-nav">
|
28
|
+
<button class="process-nav__trigger hide-for-medium" data-toggle="process-nav-content">
|
29
|
+
<%= icon "caret-bottom", class: "icon--small process-nav__trigger__icon", aria_label: t('.unfold'), role: "img" %>
|
30
|
+
<div class="process-nav__link">
|
31
|
+
<% if self.try(:current_feature) %>
|
32
|
+
<%= feature_icon(current_feature) %>
|
33
|
+
<%= translated_attribute(current_feature.name) %>
|
34
|
+
<% else %>
|
35
|
+
<%= icon "process" %>
|
36
|
+
<%= t ".process_menu_item" %>
|
37
|
+
<% end %>
|
38
|
+
</div>
|
39
|
+
</button>
|
40
|
+
<div class="row column process-nav__content is-active" id="process-nav-content" data-toggler=".is-active">
|
41
|
+
<ul>
|
42
|
+
<li class="<%= "is-active" if is_active_link?(decidim_participatory_processes.participatory_process_path(current_participatory_process), :exclusive) %>">
|
43
|
+
<%= active_link_to decidim_participatory_processes.participatory_process_path(current_participatory_process), active: :exact, class: "process-nav__link", class_active: "is-active" do %>
|
44
|
+
<%= external_icon "decidim/participatory_processes/process.svg" %>
|
45
|
+
<%= t ".process_menu_item" %>
|
46
|
+
<% end %>
|
47
|
+
</li>
|
48
|
+
|
49
|
+
<% current_participatory_process.features.each do |feature| %>
|
50
|
+
<% if feature.published? || feature == self.try(:current_feature) %>
|
51
|
+
<li class="<%= "is-active" if is_active_link?(main_feature_path(feature), :inclusive) %>">
|
52
|
+
<%= active_link_to main_feature_path(feature), class: "process-nav__link", active: :inclusive, class_active: "is-active" do %>
|
53
|
+
<%= feature_icon(feature) %>
|
54
|
+
|
55
|
+
<%= translated_attribute(feature.name) %>
|
56
|
+
<% end %>
|
57
|
+
</li>
|
58
|
+
<% end %>
|
59
|
+
<% end %>
|
60
|
+
</ul>
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
</div>
|
64
|
+
<% end %>
|
65
|
+
</div>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<% if participatory_process.steps.any? %>
|
2
|
+
<div class="columns mediumlarge-3">
|
3
|
+
<div class="process-header__phase">
|
4
|
+
<div class="process-header__progress show-for-medium">
|
5
|
+
<ol>
|
6
|
+
<% past_step = true %>
|
7
|
+
<% participatory_process.steps.each_with_index do |step, index| %>
|
8
|
+
<% if past_step %>
|
9
|
+
<li class="phase-item--past"><span></span></li>
|
10
|
+
<% else %>
|
11
|
+
<li><span></span></li>
|
12
|
+
<% end %>
|
13
|
+
<% past_step = false if step.active? %>
|
14
|
+
<% end %>
|
15
|
+
</ol>
|
16
|
+
<span class="phase-current"><%= t(".step", current: (participatory_process.active_step.position + 1), total: current_participatory_process.steps.count) %></span>
|
17
|
+
</div>
|
18
|
+
<div>
|
19
|
+
<span class="phase-title"><%= translated_attribute participatory_process.active_step.title %></span>
|
20
|
+
<span class="phase-date">
|
21
|
+
<%= participatory_process_step_dates participatory_process.active_step %>
|
22
|
+
</span>
|
23
|
+
</div>
|
24
|
+
<%= link_to t('.view_steps'), decidim_participatory_processes.participatory_process_participatory_process_steps_path(current_participatory_process), class: "button tiny hollow" %>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
<% end %>
|
@@ -0,0 +1,64 @@
|
|
1
|
+
<% content_for :secondary_nav do %>
|
2
|
+
<div class="secondary-nav secondary-nav--subnav">
|
3
|
+
<ul>
|
4
|
+
<% if can? :update, current_participatory_process %>
|
5
|
+
<li <% if is_active_link?(decidim_admin_participatory_processes.edit_participatory_process_path(current_participatory_process)) %> class="is-active" <% end %>>
|
6
|
+
<%= aria_selected_link_to t("info", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin_participatory_processes.edit_participatory_process_path(current_participatory_process) %>
|
7
|
+
</li>
|
8
|
+
<% end %>
|
9
|
+
<% if can? :read, Decidim::ParticipatoryProcessStep %>
|
10
|
+
<li <% if is_active_link?(decidim_admin_participatory_processes.participatory_process_steps_path(current_participatory_process)) %> class="is-active" <% end %>>
|
11
|
+
<%= aria_selected_link_to t("steps", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin_participatory_processes.participatory_process_steps_path(current_participatory_process) %>
|
12
|
+
</li>
|
13
|
+
<% end %>
|
14
|
+
<% if can? :read, Decidim::Feature %>
|
15
|
+
<li <% if is_active_link?(decidim_admin_participatory_processes.features_path(current_participatory_process)) %> class="is-active" <% end %>>
|
16
|
+
<%= aria_selected_link_to t("features", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin_participatory_processes.features_path(current_participatory_process) %>
|
17
|
+
<ul>
|
18
|
+
<% current_participatory_process.features.each do |feature| %>
|
19
|
+
<% if feature.manifest.admin_engine %>
|
20
|
+
<li <% if is_active_link?(manage_feature_path(feature)) %> class="is-active" <% end %>>
|
21
|
+
<%= link_to manage_feature_path(feature) do %>
|
22
|
+
<%= translated_attribute feature.name %>
|
23
|
+
<% if feature.primary_stat.present? %>
|
24
|
+
<span class="component-counter <%= "component-counter--off" if feature.primary_stat.zero? %>"><%= feature.primary_stat %></span>
|
25
|
+
<% end %>
|
26
|
+
<% end %>
|
27
|
+
</li>
|
28
|
+
<% end %>
|
29
|
+
<% end %>
|
30
|
+
</ul>
|
31
|
+
</li>
|
32
|
+
<% end %>
|
33
|
+
<% if can? :read, Decidim::Category %>
|
34
|
+
<li <% if is_active_link?(decidim_admin_participatory_processes.categories_path(current_participatory_process)) %> class="is-active" <% end %>>
|
35
|
+
<%= aria_selected_link_to t("categories", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin_participatory_processes.categories_path(current_participatory_process) %>
|
36
|
+
</li>
|
37
|
+
<% end %>
|
38
|
+
<% if can? :read, Decidim::Attachment %>
|
39
|
+
<li <% if is_active_link?(decidim_admin_participatory_processes.participatory_process_attachments_path(current_participatory_process.id)) %> class="is-active" <% end %>>
|
40
|
+
<%= aria_selected_link_to t("attachments", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin_participatory_processes.participatory_process_attachments_path(current_participatory_process.id) %>
|
41
|
+
</li>
|
42
|
+
<% end %>
|
43
|
+
<% if can? :read, Decidim::ParticipatoryProcessUserRole %>
|
44
|
+
<li <% if is_active_link?(decidim_admin_participatory_processes.participatory_process_user_roles_path(current_participatory_process)) %> class="is-active" <% end %>>
|
45
|
+
<%= aria_selected_link_to t("process_admins", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin_participatory_processes.participatory_process_user_roles_path(current_participatory_process) %>
|
46
|
+
</li>
|
47
|
+
<% end %>
|
48
|
+
<% if can? :read, Decidim::Moderation %>
|
49
|
+
<li <% if is_active_link?(decidim_admin_participatory_processes.moderations_path(current_participatory_process.id)) %> class="is-active" <% end %>>
|
50
|
+
<%= aria_selected_link_to t("moderations", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin_participatory_processes.moderations_path(current_participatory_process.id) %>
|
51
|
+
</li>
|
52
|
+
<% end %>
|
53
|
+
</ul>
|
54
|
+
</div>
|
55
|
+
<% end %>
|
56
|
+
|
57
|
+
<%= render "layouts/decidim/admin/application" do %>
|
58
|
+
<div class="process-title">
|
59
|
+
<div class="process-title-content">
|
60
|
+
<%= translated_attribute(current_participatory_process.title) %>
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
<%= yield %>
|
64
|
+
<% end %>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<% content_for :secondary_nav do %>
|
2
|
+
<div class="secondary-nav">
|
3
|
+
<div class="secondary-nav__title">
|
4
|
+
<%= t "decidim.admin.titles.participatory_process_groups" %>
|
5
|
+
</div>
|
6
|
+
<div class="secondary-nav__actions">
|
7
|
+
<%= link_to t("actions.new", scope: "decidim.admin", name: t("models.participatory_process_group.name", scope: "decidim.admin")), ['new', 'participatory_process_group'], class: 'button expanded small new' if can? :create, Decidim::ParticipatoryProcessGroup %>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
<% end %>
|
11
|
+
|
12
|
+
<%= render "layouts/decidim/admin/application" do %>
|
13
|
+
<%= yield %>
|
14
|
+
<% end %>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<% content_for :secondary_nav do %>
|
2
|
+
<div class="secondary-nav">
|
3
|
+
<div class="secondary-nav__title">
|
4
|
+
<%= t "decidim.admin.titles.participatory_processes" %>
|
5
|
+
</div>
|
6
|
+
<div class="secondary-nav__actions">
|
7
|
+
<%= link_to t("actions.new", scope: "decidim.admin", name: t("models.participatory_process.name", scope: "decidim.admin")), ['new', 'participatory_process'], class: 'button expanded small' if can? :create, Decidim::ParticipatoryProcess %>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
<% end %>
|
11
|
+
|
12
|
+
<%= render "layouts/decidim/admin/application" do %>
|
13
|
+
<%= yield %>
|
14
|
+
<% end %>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<% add_decidim_page_title(translated_attribute(current_feature.name)) if try(:current_feature) %>
|
2
|
+
<% add_decidim_page_title(translated_attribute(current_participatory_process.title)) %>
|
3
|
+
<% add_decidim_meta_tags(
|
4
|
+
image_url: current_participatory_process.banner_image.url,
|
5
|
+
description: translated_attribute(current_participatory_process.short_description),
|
6
|
+
) %>
|
7
|
+
|
8
|
+
<%= render "layouts/decidim/application" do %>
|
9
|
+
<div class="wrapper">
|
10
|
+
<%= render partial: "layouts/decidim/process_header" %>
|
11
|
+
<%= yield %>
|
12
|
+
</div>
|
13
|
+
<% if content_for? :expanded %>
|
14
|
+
<div class="expanded">
|
15
|
+
<div class="wrapper wrapper--inner">
|
16
|
+
<div class="row">
|
17
|
+
<%= yield :expanded %>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
<% end %>
|
22
|
+
<% end %>
|
23
|
+
|
24
|
+
<% if try(:current_feature) %>
|
25
|
+
<% current_feature.manifest.actions.each do |action| %>
|
26
|
+
<%= action_authorization_modal(action) %>
|
27
|
+
<% end %>
|
28
|
+
<% end %>
|
29
|
+
|
30
|
+
<% provide :meta_image_url, current_participatory_process.banner_image.url %>
|
@@ -0,0 +1,281 @@
|
|
1
|
+
---
|
2
|
+
ca:
|
3
|
+
activemodel:
|
4
|
+
attributes:
|
5
|
+
participatory_process:
|
6
|
+
banner_image: Imatge de bàner
|
7
|
+
copy_categories: Copiar categories
|
8
|
+
copy_features: Copiar funcionalitats
|
9
|
+
copy_steps: Copiar fases
|
10
|
+
description: Descripció
|
11
|
+
developer_group: Grup promotor
|
12
|
+
domain: Àrees municipals
|
13
|
+
end_date: Data de finalització
|
14
|
+
hashtag: Hashtag
|
15
|
+
hero_image: Imatge de portada
|
16
|
+
local_area: Àrea municipal
|
17
|
+
meta_scope: Metadades d'àmbit
|
18
|
+
participatory_process_group_id: Grup de processos
|
19
|
+
participatory_scope: Àmbit participatiu
|
20
|
+
participatory_structure: Estructura participativa
|
21
|
+
promoted: Destacat
|
22
|
+
scope_id: Àmbit
|
23
|
+
scopes_enabled: Àmbit habilitat
|
24
|
+
short_description: Descripció breu
|
25
|
+
slug: Nom curt d'URL
|
26
|
+
start_date: Data d'inici
|
27
|
+
subtitle: Subtítol
|
28
|
+
target: A qui va dirigit
|
29
|
+
title: Grup de processos participatius
|
30
|
+
participatory_process_group:
|
31
|
+
description: Descripció
|
32
|
+
hero_image: Imatge
|
33
|
+
name: Nom
|
34
|
+
participatory_process_ids: Processos relacionats
|
35
|
+
participatory_process_step:
|
36
|
+
description: Descripció
|
37
|
+
end_date: Data de finalització
|
38
|
+
short_description: Descripció breu
|
39
|
+
start_date: Data d'inici
|
40
|
+
title: Grup de processos participatius
|
41
|
+
participatory_process_user_role:
|
42
|
+
email: Correu electrònic
|
43
|
+
name: Nom
|
44
|
+
role: Rol
|
45
|
+
decidim:
|
46
|
+
admin:
|
47
|
+
actions:
|
48
|
+
activate: Activar
|
49
|
+
configure: Configurar
|
50
|
+
confirm_destroy: N'estàs segur?
|
51
|
+
destroy: Eliminar
|
52
|
+
duplicate: Duplicar
|
53
|
+
edit: Editar
|
54
|
+
new: Nou/va
|
55
|
+
preview: Previsualitzar
|
56
|
+
publish: Publicar
|
57
|
+
resend_invitation: Tornar a enviar invitació
|
58
|
+
unpublish: Despublicar
|
59
|
+
menu:
|
60
|
+
participatory_process_groups: Grups de processos
|
61
|
+
participatory_processes: Processos
|
62
|
+
participatory_processes_submenu:
|
63
|
+
attachments: Adjunts
|
64
|
+
categories: Categories
|
65
|
+
features: Funcionalitats
|
66
|
+
info: Informació
|
67
|
+
moderations: Moderacions
|
68
|
+
process_admins: Usuaris del procés
|
69
|
+
steps: Fases del procés
|
70
|
+
models:
|
71
|
+
participatory_process:
|
72
|
+
fields:
|
73
|
+
created_at: Data de creació
|
74
|
+
promoted: Destacat
|
75
|
+
published: Publicat
|
76
|
+
title: Grup de processos participatius
|
77
|
+
name: Procés participatiu
|
78
|
+
participatory_process_group:
|
79
|
+
fields:
|
80
|
+
name: Nom
|
81
|
+
name: Grup de processos
|
82
|
+
participatory_process_step:
|
83
|
+
fields:
|
84
|
+
end_date: Data de finalització
|
85
|
+
start_date: Data d'inici
|
86
|
+
title: Grup de processos participatius
|
87
|
+
name: Name
|
88
|
+
participatory_process_user_role:
|
89
|
+
fields:
|
90
|
+
email: Correu electrònic
|
91
|
+
name: Nom
|
92
|
+
role: Rol
|
93
|
+
name: Usuari del procés
|
94
|
+
roles:
|
95
|
+
admin: Administrador
|
96
|
+
collaborator: Col·laborador
|
97
|
+
moderator: Moderador
|
98
|
+
user:
|
99
|
+
fields:
|
100
|
+
invitation_accepted_at: Invitació acceptada el
|
101
|
+
invitation_sent_at: Invitació enviada el
|
102
|
+
participatory_process_copies:
|
103
|
+
new:
|
104
|
+
copy: Còpia
|
105
|
+
select: Selecciona quines dades vols duplicar
|
106
|
+
title: Duplicar procés participatiu
|
107
|
+
participatory_process_groups:
|
108
|
+
destroy:
|
109
|
+
success: Grup eliminat correctament.
|
110
|
+
edit:
|
111
|
+
title: Editar grup de procés
|
112
|
+
update: Actualitzar
|
113
|
+
new:
|
114
|
+
create: Crear
|
115
|
+
title: Nou grup de processos
|
116
|
+
update:
|
117
|
+
error: Hi ha hagut un error actualitzant aquest grup de processos participatius.
|
118
|
+
success: Grup de procés participatiu actualitzat correctament.
|
119
|
+
participatory_process_publications:
|
120
|
+
create:
|
121
|
+
error: S'ha produït un error en publicar aquest procés participatiu.
|
122
|
+
success: El procés participatiu s'ha publicat correctament.
|
123
|
+
destroy:
|
124
|
+
error: S'ha produït un error en despublicar aquest procés participatiu.
|
125
|
+
success: El procés participatiu s'ha despublicat correctament.
|
126
|
+
participatory_process_step_activations:
|
127
|
+
create:
|
128
|
+
error: S'ha produït un error en activar aquesta fase de procés participatiu.
|
129
|
+
success: La fase de procés participatiu s'ha activat correctament.
|
130
|
+
participatory_process_steps:
|
131
|
+
create:
|
132
|
+
error: S'ha produït un error en crear una nova fase de procés participatiu.
|
133
|
+
success: La fase de procés participatiu s'ha creat correctament.
|
134
|
+
default_title: Introducció
|
135
|
+
destroy:
|
136
|
+
error:
|
137
|
+
active_step: No es pot eliminar la fase activa.
|
138
|
+
last_step: No es pot eliminar l'última fase d'un procés.
|
139
|
+
success: La fase de procés participatiu s'ha eliminat correctament.
|
140
|
+
edit:
|
141
|
+
title: Editar fase de procés participatiu
|
142
|
+
update: Actualitzar
|
143
|
+
index:
|
144
|
+
steps_title: Fases del procés
|
145
|
+
new:
|
146
|
+
create: Crear
|
147
|
+
title: Nova fase de procés participatiu
|
148
|
+
ordering:
|
149
|
+
error: S'ha produït un error en la reordenació de les fases d'aquest procés participatiu.
|
150
|
+
update:
|
151
|
+
error: S'ha produït un error en l'actualització d'aquesta fase de procés participatiu.
|
152
|
+
success: La fase de procés participatiu s'ha actualitzat correctament.
|
153
|
+
participatory_process_user_roles:
|
154
|
+
create:
|
155
|
+
error: Hi ha hagut un error en afegir un usuari a aquest procés participatiu.
|
156
|
+
success: Usuari creat amb èxit per a aquest procés participatiu.
|
157
|
+
destroy:
|
158
|
+
success: Usuari eliminat amb èxit per a aquest procés participatiu.
|
159
|
+
edit:
|
160
|
+
title: Editar usuari de procés participatiu.
|
161
|
+
update: Actualitzar
|
162
|
+
index:
|
163
|
+
process_admins_title: Usuaris del procés participatiu
|
164
|
+
new:
|
165
|
+
create: Crear
|
166
|
+
title: Nou usuari de procés participatiu.
|
167
|
+
update:
|
168
|
+
error: Hi ha hagut un error actualitzant l'usuari d'aquest procés participatiu.
|
169
|
+
success: Usuari actualitzat satisfactòriament per a aquest procés participatiu.
|
170
|
+
participatory_processes:
|
171
|
+
create:
|
172
|
+
error: S'ha produït un error en crear un nou procés participatiu.
|
173
|
+
success: El procés participatiu s'ha creat correctament. Continua ara amb la configuració de les fases.
|
174
|
+
destroy:
|
175
|
+
success: El procés participatiu s'ha eliminat correctament.
|
176
|
+
edit:
|
177
|
+
update: Actualitzar
|
178
|
+
form:
|
179
|
+
title: Informació general
|
180
|
+
index:
|
181
|
+
not_published: No publicada
|
182
|
+
published: Publicat
|
183
|
+
new:
|
184
|
+
create: Crear
|
185
|
+
title: Nou procés participatiu
|
186
|
+
update:
|
187
|
+
error: S'ha produït un error en l'actualització d'aquest procés participatiu.
|
188
|
+
success: El procés participatiu s'ha actualitzat correctament.
|
189
|
+
participatory_processes_copies:
|
190
|
+
create:
|
191
|
+
error: Hi ha hagut un error duplicant el procés participatiu.
|
192
|
+
success: El procés participatiu ha estat duplicat correctament.
|
193
|
+
participatory_processes_group:
|
194
|
+
create:
|
195
|
+
error: S'ha produït un error creant aquest grup de processos participatius.
|
196
|
+
success: Grup de processos participatius creat correctament.
|
197
|
+
titles:
|
198
|
+
participatory_process_groups: Grups de processos participatius
|
199
|
+
participatory_processes: Processos participatius
|
200
|
+
users:
|
201
|
+
resend_invitation:
|
202
|
+
error: Hi ha hagut un error reenviant la invitació.
|
203
|
+
success: Invitació reenviada amb èxit.
|
204
|
+
menu:
|
205
|
+
processes: Processos
|
206
|
+
participatory_process_groups:
|
207
|
+
show:
|
208
|
+
group_participatory_processes: Processos per a %{group}
|
209
|
+
title: Grup de processos participatius
|
210
|
+
participatory_process_steps:
|
211
|
+
index:
|
212
|
+
process_steps: Fases del procés
|
213
|
+
title: Fases del procés participatiu
|
214
|
+
participatory_processes:
|
215
|
+
index:
|
216
|
+
title: Processos participatius
|
217
|
+
order_by_processes:
|
218
|
+
active: Actius
|
219
|
+
past: Passats
|
220
|
+
upcoming: Propers
|
221
|
+
participatory_process_groups:
|
222
|
+
none: Cap
|
223
|
+
participatory_processes:
|
224
|
+
index:
|
225
|
+
loading: Carregant resultats...
|
226
|
+
show:
|
227
|
+
developer_group: Grup promotor
|
228
|
+
end_date: Data de finalització
|
229
|
+
local_area: Àrea municipal
|
230
|
+
participatory_scope: Àmbit participatiu
|
231
|
+
participatory_structure: Estructura participativa
|
232
|
+
scope: Àmbit
|
233
|
+
start_date: Data d'inici
|
234
|
+
target: A qui va dirigit
|
235
|
+
statistics:
|
236
|
+
answers_count: Respostes
|
237
|
+
comments_count: Comentaris
|
238
|
+
headline: Activitat
|
239
|
+
meetings_count: Trobades presencials
|
240
|
+
orders_count: Vots
|
241
|
+
pages_count: Pàgines
|
242
|
+
processes_count: Processos
|
243
|
+
projects_count: Projectes
|
244
|
+
proposals_count: propostes
|
245
|
+
results_count: Resultats
|
246
|
+
surveys_count: Enquestes
|
247
|
+
users_count: Participants
|
248
|
+
votes_count: Suports
|
249
|
+
scopes:
|
250
|
+
global: Àmbit global
|
251
|
+
layouts:
|
252
|
+
decidim:
|
253
|
+
participatory_process_groups:
|
254
|
+
participatory_process_group:
|
255
|
+
browse: Explorar
|
256
|
+
participatory_process_widgets:
|
257
|
+
show:
|
258
|
+
active_step: Fase activa
|
259
|
+
take_part: Participa
|
260
|
+
participatory_processes:
|
261
|
+
index:
|
262
|
+
promoted_processes: Processos destacats
|
263
|
+
no_processes_yet:
|
264
|
+
no_processes_yet: Encara no hi ha cap procés participatiu!
|
265
|
+
order_by_processes:
|
266
|
+
processes:
|
267
|
+
one: "%{count} procés"
|
268
|
+
other: "%{count} processos"
|
269
|
+
participatory_process:
|
270
|
+
active_step: 'Fase actual:'
|
271
|
+
take_part: Participa
|
272
|
+
promoted_process:
|
273
|
+
active_step: 'Fase actual:'
|
274
|
+
more_info: Més informació
|
275
|
+
take_part: Participa
|
276
|
+
process_header:
|
277
|
+
process_menu_item: El procés
|
278
|
+
unfold: Desplega
|
279
|
+
process_header_steps:
|
280
|
+
step: Fase %{current} de %{total}
|
281
|
+
view_steps: Veure les fases
|