decidim-admin 0.31.6 → 0.32.0.rc1
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 +2 -12
- data/app/cells/decidim/admin/attachments_privacy_warning/show.erb +1 -1
- data/app/cells/decidim/admin/attachments_privacy_warning_cell.rb +2 -6
- data/app/commands/decidim/admin/content_blocks/reorder_content_blocks.rb +1 -1
- data/app/commands/decidim/admin/create_newsletter.rb +1 -1
- data/app/commands/decidim/admin/create_taxonomy_filter.rb +2 -16
- data/app/commands/decidim/admin/participatory_space/create_member.rb +99 -0
- data/app/commands/decidim/admin/participatory_space/destroy_member.rb +30 -0
- data/app/commands/decidim/admin/participatory_space/import_member_csv.rb +46 -0
- data/app/commands/decidim/admin/participatory_space/publish_all_members.rb +52 -0
- data/app/commands/decidim/admin/participatory_space/unpublish_all_members.rb +52 -0
- data/app/commands/decidim/admin/participatory_space/update_member.rb +13 -0
- data/app/commands/decidim/admin/reorder_components.rb +1 -1
- data/app/commands/decidim/admin/reorder_taxonomies.rb +1 -1
- data/app/commands/decidim/admin/update_organization.rb +1 -1
- data/app/commands/decidim/admin/update_taxonomy_filter.rb +6 -24
- data/app/controllers/concerns/decidim/admin/content_blocks/landing_page.rb +1 -0
- data/app/controllers/concerns/decidim/admin/content_blocks/landing_page_content_blocks.rb +3 -2
- data/app/controllers/concerns/decidim/admin/filterable.rb +4 -4
- data/app/controllers/concerns/decidim/admin/participatory_space_admin_context.rb +1 -0
- data/app/controllers/concerns/decidim/admin/participatory_space_export.rb +1 -1
- data/app/controllers/decidim/admin/area_types_controller.rb +2 -2
- data/app/controllers/decidim/admin/areas_controller.rb +3 -2
- data/app/controllers/decidim/admin/block_user_controller.rb +2 -4
- data/app/controllers/decidim/admin/component_permissions_controller.rb +1 -1
- data/app/controllers/decidim/admin/components/base_controller.rb +13 -9
- data/app/controllers/decidim/admin/components_controller.rb +3 -2
- data/app/controllers/decidim/admin/concerns/has_attachment_collections.rb +2 -2
- data/app/controllers/decidim/admin/concerns/has_attachments.rb +2 -2
- data/app/controllers/decidim/admin/conflicts_controller.rb +1 -1
- data/app/controllers/decidim/admin/exports_controller.rb +1 -1
- data/app/controllers/decidim/admin/impersonations_controller.rb +1 -1
- data/app/controllers/decidim/admin/imports_controller.rb +2 -1
- data/app/controllers/decidim/admin/managed_users/promotions_controller.rb +1 -1
- data/app/controllers/decidim/admin/newsletters_controller.rb +9 -9
- data/app/controllers/decidim/admin/officializations_controller.rb +0 -2
- data/app/controllers/decidim/admin/organization_appearance_controller.rb +1 -1
- data/app/controllers/decidim/admin/organization_controller.rb +30 -1
- data/app/controllers/decidim/admin/organization_external_domain_allowlist_controller.rb +1 -1
- data/app/controllers/decidim/admin/participatory_space/concerns/has_members.rb +166 -0
- data/app/controllers/decidim/admin/participatory_space/concerns/has_members_csv_import.rb +67 -0
- data/app/controllers/decidim/admin/participatory_space/concerns/members_filterable.rb +36 -0
- data/app/controllers/decidim/admin/participatory_space/user_role_controller.rb +2 -2
- data/app/controllers/decidim/admin/reminders_controller.rb +1 -1
- data/app/controllers/decidim/admin/resource_permissions_controller.rb +1 -1
- data/app/controllers/decidim/admin/scope_types_controller.rb +2 -2
- data/app/controllers/decidim/admin/scopes_controller.rb +3 -2
- data/app/controllers/decidim/admin/share_tokens_controller.rb +2 -2
- data/app/controllers/decidim/admin/space_publications_controller.rb +2 -2
- data/app/controllers/decidim/admin/static_page_topics_controller.rb +2 -2
- data/app/controllers/decidim/admin/static_pages_controller.rb +2 -2
- data/app/controllers/decidim/admin/taxonomies_controller.rb +3 -3
- data/app/controllers/decidim/admin/taxonomy_filters_controller.rb +3 -3
- data/app/controllers/decidim/admin/taxonomy_items_controller.rb +3 -3
- data/app/controllers/decidim/admin/users_controller.rb +1 -1
- data/app/forms/decidim/admin/content_block_form.rb +28 -1
- data/app/forms/decidim/admin/organization_form.rb +0 -1
- data/app/forms/decidim/admin/participatory_space/member_csv_import_form.rb +33 -0
- data/app/forms/decidim/admin/participatory_space/member_form.rb +26 -0
- data/app/forms/decidim/admin/participatory_space_admin_user_form.rb +1 -1
- data/app/forms/decidim/admin/selective_newsletter_form.rb +7 -7
- data/app/forms/decidim/admin/taxonomy_filter_form.rb +10 -11
- data/app/helpers/decidim/admin/newsletters_helper.rb +8 -5
- data/app/helpers/decidim/admin/search_form_helper.rb +17 -0
- data/app/helpers/decidim/admin/settings_helper.rb +2 -0
- data/app/jobs/decidim/admin/newsletter_job.rb +2 -2
- data/app/jobs/decidim/admin/participatory_space/destroy_members_follows_job.rb +36 -0
- data/app/jobs/decidim/admin/participatory_space/import_member_csv_job.rb +29 -0
- data/app/packs/src/decidim/admin/admin_autocomplete.js +10 -16
- data/app/packs/src/decidim/admin/controllers/access_mode/access_mode.test.js +68 -0
- data/app/packs/src/decidim/admin/controllers/access_mode/controller.js +52 -0
- data/app/packs/src/decidim/admin/newsletters.js +2 -2
- data/app/packs/stylesheets/decidim/admin/_datepicker.scss +0 -4
- data/app/packs/stylesheets/decidim/admin/application.scss +1 -1
- data/app/queries/decidim/admin/newsletter_recipients.rb +8 -8
- data/app/views/decidim/admin/admin_terms/show.html.erb +3 -1
- data/app/views/decidim/admin/area_types/index.html.erb +3 -2
- data/app/views/decidim/admin/areas/index.html.erb +3 -2
- data/app/views/decidim/admin/attachment_collections/edit.html.erb +2 -2
- data/app/views/decidim/admin/attachment_collections/index.html.erb +3 -3
- data/app/views/decidim/admin/attachment_collections/new.html.erb +2 -2
- data/app/views/decidim/admin/attachments/index.html.erb +3 -2
- data/app/views/decidim/admin/authorization_workflows/index.html.erb +2 -2
- data/app/views/decidim/admin/block_user/new.html.erb +1 -0
- data/app/views/decidim/admin/components/_actions.html.erb +1 -1
- data/app/views/decidim/admin/components/index.html.erb +2 -2
- data/app/views/decidim/admin/components/manage_trash.html.erb +2 -2
- data/app/views/decidim/admin/conflicts/edit.html.erb +3 -1
- data/app/views/decidim/admin/conflicts/index.html.erb +3 -2
- data/app/views/decidim/admin/dashboard/show.html.erb +4 -4
- data/app/views/decidim/admin/help_sections/update.html.erb +2 -0
- data/app/views/decidim/admin/impersonatable_users/index.html.erb +3 -2
- data/app/views/decidim/admin/impersonations/_form.html.erb +2 -2
- data/app/views/decidim/admin/impersonations/new.html.erb +3 -2
- data/app/views/decidim/admin/imports/new.html.erb +1 -0
- data/app/views/decidim/admin/logs/_logs_list.html.erb +1 -1
- data/app/views/decidim/admin/logs/index.html.erb +1 -1
- data/app/views/decidim/admin/managed_users/impersonation_logs/index.html.erb +6 -5
- data/app/views/decidim/admin/managed_users/promotions/new.html.erb +3 -2
- data/app/views/decidim/admin/{participatory_space_private_users → members}/edit.html.erb +2 -2
- data/app/views/decidim/admin/{participatory_space_private_users → members}/index.html.erb +25 -25
- data/app/views/decidim/admin/{participatory_space_private_users → members}/new.html.erb +2 -2
- data/app/views/decidim/admin/{participatory_space_private_users_csv_imports → members_csv_imports}/new.html.erb +2 -2
- data/app/views/decidim/admin/moderations/_moderation-tr.html.erb +3 -7
- data/app/views/decidim/admin/moderations/_moderations-thead.html.erb +0 -1
- data/app/views/decidim/admin/moderations/reports/index.html.erb +1 -1
- data/app/views/decidim/admin/newsletter_templates/show.html.erb +3 -2
- data/app/views/decidim/admin/newsletters/confirm_recipients.html.erb +4 -6
- data/app/views/decidim/admin/newsletters/index.html.erb +2 -2
- data/app/views/decidim/admin/newsletters/select_recipients_to_deliver.html.erb +2 -2
- data/app/views/decidim/admin/newsletters/show.html.erb +3 -2
- data/app/views/decidim/admin/officializations/index.html.erb +6 -4
- data/app/views/decidim/admin/officializations/show_email.html.erb +3 -7
- data/app/views/decidim/admin/organization/form/_extra_features.html.erb +0 -4
- data/app/views/decidim/admin/organization_external_domain_allowlist/_form.html.erb +2 -2
- data/app/views/decidim/admin/organization_external_domain_allowlist/edit.html.erb +2 -2
- data/app/views/decidim/admin/reminders/new.html.erb +8 -1
- data/app/views/decidim/admin/resource_permissions/edit.html.erb +2 -2
- data/app/views/decidim/admin/scope_types/index.html.erb +3 -2
- data/app/views/decidim/admin/scopes/index.html.erb +2 -2
- data/app/views/decidim/admin/share_tokens/index.html.erb +2 -0
- data/app/views/decidim/admin/shared/_gallery.html.erb +15 -0
- data/app/views/decidim/admin/shared/landing_page/_content_blocks.html.erb +0 -2
- data/app/views/decidim/admin/shared/landing_page/edit.html.erb +2 -0
- data/app/views/decidim/admin/shared/landing_page_content_blocks/edit.html.erb +1 -0
- data/app/views/decidim/admin/static_page_topics/index.html.erb +2 -2
- data/app/views/decidim/admin/static_pages/edit.html.erb +2 -1
- data/app/views/decidim/admin/static_pages/index.html.erb +2 -2
- data/app/views/decidim/admin/statistics/_statistics.html.erb +1 -1
- data/app/views/decidim/admin/statistics/index.html.erb +2 -0
- data/app/views/decidim/admin/taxonomies/_row.html.erb +1 -1
- data/app/views/decidim/admin/taxonomies/_row_children.html.erb +1 -1
- data/app/views/decidim/admin/taxonomies/_table.html.erb +1 -1
- data/app/views/decidim/admin/taxonomies/edit.html.erb +2 -2
- data/app/views/decidim/admin/taxonomies/index.html.erb +4 -4
- data/app/views/decidim/admin/taxonomy_filters/_table.html.erb +2 -2
- data/app/views/decidim/admin/taxonomy_filters/index.html.erb +2 -2
- data/app/views/decidim/admin/taxonomy_filters_selector/index.html.erb +2 -0
- data/app/views/decidim/admin/taxonomy_filters_selector/new.html.erb +2 -0
- data/app/views/decidim/admin/taxonomy_filters_selector/show.html.erb +2 -0
- data/app/views/decidim/admin/taxonomy_items/edit.html.erb +2 -0
- data/app/views/decidim/admin/taxonomy_items/new.html.erb +2 -0
- data/app/views/decidim/admin/users/index.html.erb +3 -2
- data/app/views/layouts/decidim/admin/_application.html.erb +1 -1
- data/config/locales/ar.yml +9 -49
- data/config/locales/bg.yml +9 -55
- data/config/locales/bs-BA.yml +4 -24
- data/config/locales/ca-IT.yml +130 -113
- data/config/locales/ca.yml +130 -113
- data/config/locales/cs.yml +126 -107
- data/config/locales/de.yml +114 -98
- data/config/locales/el.yml +17 -45
- data/config/locales/en.yml +130 -112
- data/config/locales/eo.yml +0 -7
- data/config/locales/es-MX.yml +130 -113
- data/config/locales/es-PY.yml +130 -113
- data/config/locales/es.yml +130 -113
- data/config/locales/eu.yml +159 -142
- data/config/locales/fi-plain.yml +129 -112
- data/config/locales/fi.yml +129 -112
- data/config/locales/fr-CA.yml +91 -142
- data/config/locales/fr.yml +91 -142
- data/config/locales/ga-IE.yml +0 -13
- data/config/locales/gl.yml +10 -41
- data/config/locales/he-IL.yml +1 -5
- data/config/locales/hu.yml +10 -52
- data/config/locales/id-ID.yml +4 -34
- data/config/locales/is-IS.yml +1 -16
- data/config/locales/it.yml +8 -69
- data/config/locales/ja.yml +129 -114
- data/config/locales/kaa.yml +4 -16
- data/config/locales/ko.yml +6 -40
- data/config/locales/lb.yml +9 -41
- data/config/locales/lt.yml +10 -52
- data/config/locales/lv.yml +8 -38
- data/config/locales/nl.yml +10 -46
- data/config/locales/no.yml +10 -46
- data/config/locales/pl.yml +9 -54
- data/config/locales/pt-BR.yml +121 -104
- data/config/locales/pt.yml +9 -42
- data/config/locales/ro-RO.yml +15 -51
- data/config/locales/ru.yml +4 -35
- data/config/locales/sk.yml +8 -814
- data/config/locales/sl.yml +1 -7
- data/config/locales/sq-AL.yml +1 -21
- data/config/locales/sr-CS.yml +4 -24
- data/config/locales/sv.yml +79 -89
- data/config/locales/th-TH.yml +0 -8
- data/config/locales/tr-TR.yml +33 -65
- data/config/locales/uk.yml +0 -26
- data/config/locales/val-ES.yml +0 -1
- data/config/locales/zh-CN.yml +9 -38
- data/config/locales/zh-TW.yml +10 -52
- data/config/routes.rb +4 -0
- data/decidim-admin.gemspec +7 -10
- data/lib/decidim/admin/engine.rb +5 -2
- data/lib/decidim/admin/form_builder.rb +3 -1
- data/lib/decidim/admin/menu.rb +1 -1
- data/lib/decidim/admin/test/admin_members_shared_examples.rb +119 -0
- data/lib/decidim/admin/test/admin_participatory_space_access_examples.rb +3 -3
- data/lib/decidim/admin/test/filterable_examples.rb +20 -11
- data/lib/decidim/admin/test/invite_participatory_space_admins_shared_examples.rb +17 -17
- data/lib/decidim/admin/test/invite_participatory_space_collaborators_shared_examples.rb +1 -1
- data/lib/decidim/admin/test/invite_participatory_space_moderators_shared_examples.rb +1 -1
- data/lib/decidim/admin/test/invite_participatory_space_users_shared_context.rb +1 -1
- data/lib/decidim/admin/test/manage_attachment_collections_examples.rb +3 -3
- data/lib/decidim/admin/test/manage_attachments_examples.rb +6 -6
- data/lib/decidim/admin/test/manage_component_permissions_examples.rb +5 -5
- data/lib/decidim/admin/test/manage_moderations_examples.rb +6 -6
- data/lib/decidim/admin/test/manage_participatory_space_publications_examples.rb +2 -2
- data/lib/decidim/admin/test/manage_resource_soft_deletion_examples.rb +3 -3
- data/lib/decidim/admin/version.rb +1 -1
- data/lib/decidim/admin.rb +0 -2
- metadata +40 -36
- data/app/commands/decidim/admin/create_participatory_space_private_user.rb +0 -98
- data/app/commands/decidim/admin/destroy_participatory_space_private_user.rb +0 -28
- data/app/commands/decidim/admin/process_participatory_space_private_user_import_csv.rb +0 -44
- data/app/commands/decidim/admin/publish_all_participatory_space_private_users.rb +0 -50
- data/app/commands/decidim/admin/unpublish_all_participatory_space_private_users.rb +0 -50
- data/app/commands/decidim/admin/update_participatory_space_private_user.rb +0 -11
- data/app/controllers/concerns/decidim/participatory_space_private_users/admin/filterable.rb +0 -34
- data/app/controllers/decidim/admin/concerns/has_private_users.rb +0 -169
- data/app/controllers/decidim/admin/concerns/has_private_users_csv_import.rb +0 -65
- data/app/forms/decidim/admin/participatory_space_private_user_csv_import_form.rb +0 -31
- data/app/forms/decidim/admin/participatory_space_private_user_form.rb +0 -24
- data/app/jobs/decidim/admin/destroy_private_users_follows_job.rb +0 -37
- data/app/jobs/decidim/admin/import_participatory_space_private_user_csv_job.rb +0 -27
- data/app/views/decidim/admin/devise/mailers/password_change.html.erb +0 -3
- data/app/views/decidim/admin/devise/mailers/reset_password_instructions.html.erb +0 -8
- data/app/views/decidim/admin/shared/_attachments.html.erb +0 -15
- /data/app/views/decidim/admin/{participatory_space_private_users → members}/_form.html.erb +0 -0
|
@@ -3,10 +3,6 @@
|
|
|
3
3
|
<%= check_box_tag "moderation_ids_s[]", moderation.id, false, class: "js-check-all-moderations js-moderation-list-check js-moderation-id-#{moderation.id}" %>
|
|
4
4
|
</td>
|
|
5
5
|
|
|
6
|
-
<td data-label="<%= t("models.moderation.fields.reportable_id", scope: "decidim.moderations") %>">
|
|
7
|
-
<%= moderation.reportable.id %>
|
|
8
|
-
</td>
|
|
9
|
-
|
|
10
6
|
<td data-label="<%= t("models.moderation.fields.reportable_type", scope: "decidim.moderations") %>">
|
|
11
7
|
<%= moderation.reportable.class.model_name.human %>
|
|
12
8
|
</td>
|
|
@@ -33,7 +29,7 @@
|
|
|
33
29
|
</td>
|
|
34
30
|
|
|
35
31
|
<td data-label="<%= t("models.moderation.fields.created_at", scope: "decidim.moderations") %>">
|
|
36
|
-
<%= l moderation.created_at, format: :
|
|
32
|
+
<%= l moderation.created_at, format: :decidim_short %>
|
|
37
33
|
</td>
|
|
38
34
|
|
|
39
35
|
<td data-label="<%= t("models.moderation.fields.report_count", scope: "decidim.moderations") %>">
|
|
@@ -42,7 +38,7 @@
|
|
|
42
38
|
|
|
43
39
|
<% if params[:hidden] %>
|
|
44
40
|
<td data-label="<%= t("models.moderation.fields.hidden_at", scope: "decidim.moderations") %>">
|
|
45
|
-
<%= l(moderation.hidden_at, format: :
|
|
41
|
+
<%= l(moderation.hidden_at, format: :decidim_short) if moderation.hidden_at.present? %>
|
|
46
42
|
</td>
|
|
47
43
|
<% end %>
|
|
48
44
|
|
|
@@ -89,7 +85,7 @@
|
|
|
89
85
|
<li class="dropdown__item">
|
|
90
86
|
<% if moderation.reportable.respond_to?(:commentable) && moderation.reportable.commentable.try(:hidden?) %>
|
|
91
87
|
<div class="dropdown__button-disabled">
|
|
92
|
-
<%= with_tooltip(t("actions.parent_hidden", scope: "decidim.moderations"), title: t("actions.parent_hidden", scope: "decidim.moderations")
|
|
88
|
+
<%= with_tooltip(t("actions.parent_hidden", scope: "decidim.moderations"), title: t("actions.parent_hidden", scope: "decidim.moderations")) do %>
|
|
93
89
|
<%= icon "eye-line", class: "text-gray" %>
|
|
94
90
|
<span><%= t("actions.unhide", scope: "decidim.moderations") %></span>
|
|
95
91
|
<% end %>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<thead>
|
|
2
2
|
<tr>
|
|
3
3
|
<th><%= check_box_tag "moderations_bulk", "all", false, class: "js-check-all" %></th>
|
|
4
|
-
<th><%= t("models.moderation.fields.reportable_id", scope: "decidim.moderations") %></th>
|
|
5
4
|
<th><%= t("models.moderation.fields.reportable_type", scope: "decidim.moderations") %></th>
|
|
6
5
|
<% if !respond_to?(:current_participatory_space) %>
|
|
7
6
|
<th><%= t("models.moderation.fields.participatory_space", scope: "decidim.moderations") %></th>
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
<dd><%= moderation.reportable.class.name.demodulize %></dd>
|
|
58
58
|
|
|
59
59
|
<dt><%= t("models.moderation.fields.created_at", scope: "decidim.moderations") %></dt>
|
|
60
|
-
<dd><%= l(moderation.created_at, format: :
|
|
60
|
+
<dd><%= l(moderation.created_at, format: :decidim_short) %></dd>
|
|
61
61
|
|
|
62
62
|
<dt><%= t(".participatory_space") %></dt>
|
|
63
63
|
<dd><%= translated_attribute moderation.participatory_space.title %></dd>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
<% add_decidim_page_title(t(".
|
|
1
|
+
<% add_decidim_page_title(t(".title", template_name: t(template_manifest.public_name_key))) %>
|
|
2
|
+
|
|
2
3
|
<div class="item_show__header">
|
|
3
4
|
<h1 class="item_show__header-title">
|
|
4
|
-
<%= t ".
|
|
5
|
+
<%= t ".title", template_name: t(template_manifest.public_name_key) %>
|
|
5
6
|
</h1>
|
|
6
7
|
</div>
|
|
7
8
|
<div class="item__edit-form">
|
|
@@ -37,14 +37,12 @@
|
|
|
37
37
|
<%= hidden_field_tag "newsletter[send_to_verified_users]", params.dig(:newsletter, :send_to_verified_users) %>
|
|
38
38
|
<%= hidden_field_tag "newsletter[send_to_participants]", params.dig(:newsletter, :send_to_participants) %>
|
|
39
39
|
<%= hidden_field_tag "newsletter[send_to_followers]", params.dig(:newsletter, :send_to_followers) %>
|
|
40
|
-
<%= hidden_field_tag "newsletter[
|
|
40
|
+
<%= hidden_field_tag "newsletter[send_to_members]", params.dig(:newsletter, :send_to_members) %>
|
|
41
41
|
|
|
42
42
|
<% @form.participatory_space_types.each do |space_type| %>
|
|
43
|
-
<%=
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<%= hidden_field_tag "newsletter[participatory_space_types][#{space_type.manifest_name}][ids][]", id %>
|
|
47
|
-
<% end %>
|
|
43
|
+
<%= hidden_field_tag "newsletter[participatory_space_types][#{space_type.manifest_name}][manifest_name]", space_type.manifest_name %>
|
|
44
|
+
<% space_type.ids.each do |id| %>
|
|
45
|
+
<%= hidden_field_tag "newsletter[participatory_space_types][#{space_type.manifest_name}][ids][]", id %>
|
|
48
46
|
<% end %>
|
|
49
47
|
<% end %>
|
|
50
48
|
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
</td>
|
|
37
37
|
|
|
38
38
|
<td data-label="<%= t("models.newsletter.fields.created_at", scope: "decidim.admin") %>">
|
|
39
|
-
<%= l(newsletter.created_at, format: :
|
|
39
|
+
<%= l(newsletter.created_at, format: :decidim_short) if newsletter.created_at %>
|
|
40
40
|
</td>
|
|
41
41
|
|
|
42
42
|
<td data-label="<%= t("models.newsletter.fields.sent_at", scope: "decidim.admin") %>">
|
|
43
|
-
<%= l(newsletter.sent_at, format: :
|
|
43
|
+
<%= l(newsletter.sent_at, format: :decidim_short) if newsletter.sent_at %>
|
|
44
44
|
</td>
|
|
45
45
|
|
|
46
46
|
<td data-label="<%= t("models.newsletter.fields.sent_to", scope: "decidim.admin") %>">
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
<%= f.check_box :send_to_followers, help_text: t(".followers_help") %>
|
|
69
69
|
</div>
|
|
70
70
|
|
|
71
|
-
<div class="cell small-12 medium-6" id="
|
|
72
|
-
<%= f.check_box :
|
|
71
|
+
<div class="cell small-12 medium-6" id="send_newsletter_to_members">
|
|
72
|
+
<%= f.check_box :send_to_members, help_text: t(".members_help") %>
|
|
73
73
|
</div>
|
|
74
74
|
</div>
|
|
75
75
|
</div>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
<% add_decidim_page_title(t(".
|
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
|
2
|
+
|
|
2
3
|
<div class="item_show__header">
|
|
3
4
|
<h1 class="item_show__header-title !w-1/2">
|
|
4
|
-
<%= t ".
|
|
5
|
+
<%= t ".title" %>
|
|
5
6
|
</h1>
|
|
6
7
|
<div class="flex ml-auto items-center gap-x-4">
|
|
7
8
|
<% if allowed_to?(:update, :newsletter, newsletter: @newsletter) %>
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
<% add_decidim_page_title(t("
|
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
|
2
2
|
|
|
3
|
-
<div class="card"
|
|
3
|
+
<div class="card">
|
|
4
4
|
<div class="item_show__header">
|
|
5
|
-
<h1 class="item_show__header-title"
|
|
5
|
+
<h1 class="item_show__header-title">
|
|
6
|
+
<%= t ".title" %>
|
|
7
|
+
</h1>
|
|
6
8
|
</div>
|
|
7
9
|
<%= admin_filter_selector %>
|
|
8
10
|
<div class="table-stacked">
|
|
@@ -128,4 +130,4 @@
|
|
|
128
130
|
</div>
|
|
129
131
|
</div>
|
|
130
132
|
<%= decidim_paginate @users %>
|
|
131
|
-
<%= render "show_email_modal" %>
|
|
133
|
+
<%= render "decidim/admin/officializations/show_email_modal" %>
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
<%
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
<div class="flash alert my-0">
|
|
5
|
-
<%= t(".no_user") %>
|
|
6
|
-
</div>
|
|
7
|
-
<% end %>
|
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
|
2
|
+
|
|
3
|
+
<%= link_to user.email, "mailto:#{user.email}" %>
|
|
@@ -12,10 +12,6 @@
|
|
|
12
12
|
<%= form.check_box :badges_enabled %>
|
|
13
13
|
</div>
|
|
14
14
|
|
|
15
|
-
<div class="row column">
|
|
16
|
-
<%= form.check_box :enable_participatory_space_filters %>
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
15
|
<% if Decidim.config.enable_machine_translations %>
|
|
20
16
|
<div class="row column">
|
|
21
17
|
<%= form.check_box :enable_machine_translations %>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<div class="external-domains">
|
|
12
12
|
<%= fields_for "external_domains[#{blank_external_domain.to_param}]", blank_external_domain do |external_domain_form| %>
|
|
13
13
|
<script type="text/template" class="decidim-template">
|
|
14
|
-
<%= render "external_domain",
|
|
14
|
+
<%= render "decidim/admin/organization_external_domain_allowlist/external_domain",
|
|
15
15
|
form: external_domain_form,
|
|
16
16
|
id: blank_external_domain.to_param %>
|
|
17
17
|
</script>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<div class="external-domains-list">
|
|
21
21
|
<% @form.external_domains.each do |external_domain| %>
|
|
22
22
|
<%= fields_for "external_domains[]", external_domain do |external_domain_form| %>
|
|
23
|
-
<%= render "external_domain",
|
|
23
|
+
<%= render "decidim/admin/organization_external_domain_allowlist/external_domain",
|
|
24
24
|
form: external_domain_form,
|
|
25
25
|
id: external_domain.to_param %>
|
|
26
26
|
<% end %>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<% add_decidim_page_title(t("
|
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
|
2
2
|
|
|
3
3
|
<div class="item_show__header">
|
|
4
4
|
<h1 class="item_show__header-title">
|
|
5
|
-
<%= t("title"
|
|
5
|
+
<%= t(".title") %>
|
|
6
6
|
</h1>
|
|
7
7
|
</div>
|
|
8
8
|
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
|
2
|
+
|
|
3
|
+
<div class="card">
|
|
4
|
+
<div class="item_show__header">
|
|
5
|
+
<h1 class="item_show__header-title">
|
|
6
|
+
<%= t ".title" %>
|
|
7
|
+
</h1>
|
|
8
|
+
</div>
|
|
2
9
|
<div class="item__edit-form">
|
|
3
10
|
<%= decidim_form_for(@form, html: { class: "form form-defaults new_order_reminder" }, url: component_reminders_path(name: reminder_manifest.name), class: "form grid-container") do |form| %>
|
|
4
11
|
<div class="card pb-4">
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
<%= b.label { b.check_box + b.text } %>
|
|
29
29
|
<% if permission.authorization_handlers_names.include? b.value %>
|
|
30
30
|
<div id="authorization-handler-<%= b.value %>" class="authorization-handler">
|
|
31
|
-
<%= render "options_form", form: permission_form, handler_name: b.value, ephemeral_warning: b.object.ephemeral? %>
|
|
31
|
+
<%= render "decidim/admin/resource_permissions/options_form", form: permission_form, handler_name: b.value, ephemeral_warning: b.object.ephemeral? %>
|
|
32
32
|
</div>
|
|
33
33
|
<% else %>
|
|
34
34
|
<% missing_permission = Decidim::Admin::PermissionForm.new(authorization_handlers: { b.value => {} }) %>
|
|
35
35
|
<%= action_permission_form.fields_for(action, missing_permission) do |missing_permission_form| %>
|
|
36
36
|
<div id="authorization-handler-<%= b.value %>" class="authorization-handler" style="display:none">
|
|
37
|
-
<%= render "options_form", form: missing_permission_form, handler_name: b.value, ephemeral_warning: b.object.ephemeral? %>
|
|
37
|
+
<%= render "decidim/admin/resource_permissions/options_form", form: missing_permission_form, handler_name: b.value, ephemeral_warning: b.object.ephemeral? %>
|
|
38
38
|
</div>
|
|
39
39
|
<% end %>
|
|
40
40
|
<% end %>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
<% add_decidim_page_title(t("
|
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
|
2
|
+
|
|
2
3
|
<div class="card" id="scope-types">
|
|
3
4
|
<div class="item_show__header">
|
|
4
5
|
<h1 class="item_show__header-title">
|
|
5
|
-
<%= t "
|
|
6
|
+
<%= t ".title" %>
|
|
6
7
|
|
|
7
8
|
<% if allowed_to? :create, :scope_type %>
|
|
8
9
|
<%= link_to t("actions.add", scope: "decidim.admin"), [:new, :scope_type], class: "button button__sm button__secondary new" %>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<% add_decidim_page_title(t("
|
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
|
2
2
|
<div class="card">
|
|
3
3
|
<div class="item_show__header">
|
|
4
4
|
<h1 class="item_show__header-title">
|
|
5
5
|
<% if parent_scope %>
|
|
6
6
|
<%= scope_breadcrumbs(parent_scope).join(" - ").html_safe %> <%= link_to t("actions.add", scope: "decidim.admin"), new_scope_scope_path(parent_scope), class: "button button__sm button__secondary" if allowed_to? :create, :scope %><%= link_to t("actions.edit", scope: "decidim.admin"), edit_scope_path(parent_scope), class: "button button__sm button__secondary" if allowed_to? :edit, :scope, scope: parent_scope %>
|
|
7
7
|
<% else %>
|
|
8
|
-
<%= t "
|
|
8
|
+
<%= t ".title" %> <%= link_to t("actions.add", scope: "decidim.admin"), new_scope_path, class: "button button__sm button__secondary" if allowed_to? :create, :scope %>
|
|
9
9
|
<% end %>
|
|
10
10
|
</h1>
|
|
11
11
|
</div>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<div class="row column mt-4">
|
|
2
|
+
<fieldset>
|
|
3
|
+
<legend><%= t(".gallery_legend") %></legend>
|
|
4
|
+
|
|
5
|
+
<div>
|
|
6
|
+
<%= form.attachment :photos,
|
|
7
|
+
multiple: true,
|
|
8
|
+
label: t(".add_images"),
|
|
9
|
+
button_label: t(".add_images"),
|
|
10
|
+
button_edit_label: t(".edit_images"),
|
|
11
|
+
button_class: "button button__sm button__transparent-secondary",
|
|
12
|
+
help_i18n_scope: "decidim.forms.file_help.image" %>
|
|
13
|
+
</div>
|
|
14
|
+
</fieldset>
|
|
15
|
+
</div>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<% add_decidim_page_title(t("
|
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
|
2
2
|
|
|
3
3
|
<div class="card" id="page_topics">
|
|
4
4
|
<div class="item_show__header">
|
|
5
5
|
<h1 class="item_show__header-title">
|
|
6
|
-
<%= t("
|
|
6
|
+
<%= t(".title") %>
|
|
7
7
|
<% if allowed_to? :create, :attachment_collection %>
|
|
8
8
|
<%= link_to t("static_page_topics.new.create", scope: "decidim.admin"), [:new, :static_page_topic], class: "button button__sm button__secondary expanded small new" %>
|
|
9
9
|
<% end %>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<% add_decidim_page_title(t("
|
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
|
2
2
|
|
|
3
3
|
<div class="item_show__header">
|
|
4
4
|
<h1 class="item_show__header-title">
|
|
5
|
-
<%= t("
|
|
5
|
+
<%= t(".title") %>
|
|
6
6
|
<% if allowed_to? :create, :static_page %>
|
|
7
7
|
<%= link_to t("static_pages.new.create", scope: "decidim.admin"), [:new, :static_page], class: "button button__sm button__secondary expanded small new" %>
|
|
8
8
|
<% end %>
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
<li class="taxonomy-list__actions">
|
|
30
30
|
<span class="md:hidden !ml-0"><%= t("decidim.admin.taxonomies.actions.actions") %>: </span>
|
|
31
|
-
<%= render "taxonomy_actions", taxonomy: %>
|
|
31
|
+
<%= render "decidim/admin/taxonomies/taxonomy_actions", taxonomy: %>
|
|
32
32
|
</li>
|
|
33
33
|
</ul>
|
|
34
34
|
<% if with_children && taxonomy.children.any? %>
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
<%= link_to translated_attribute(child.name), edit_taxonomy_item_path(taxonomy_id: child.root_taxonomy.id, id: child.id), class: "js-drawer-editor" %>
|
|
5
5
|
</li>
|
|
6
6
|
<li><%= child.taxonomizations_count %></li>
|
|
7
|
-
<li class="taxonomy-list__actions"><%= render "taxonomy_actions", taxonomy: child %></li>
|
|
7
|
+
<li class="taxonomy-list__actions"><%= render "decidim/admin/taxonomies/taxonomy_actions", taxonomy: child %></li>
|
|
8
8
|
</ul>
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<% end %>
|
|
36
36
|
|
|
37
37
|
<% collection.each do |taxonomy| %>
|
|
38
|
-
<%= render "row", taxonomy:, with_children: !taxonomy.root? %>
|
|
38
|
+
<%= render "decidim/admin/taxonomies/row", taxonomy:, with_children: !taxonomy.root? %>
|
|
39
39
|
<% end %>
|
|
40
40
|
<% if path = path_to_next_page(collection) %>
|
|
41
41
|
<tr class="draggable-taxonomy change-page" data-next-page="<%= path %>" data-taxonomy-id="<%= collection.page(collection.next_page).per(per_page).first&.id %>"><td colspan="2"><%= t(".to_next_page") %></td></tr>
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
</h2>
|
|
28
28
|
|
|
29
29
|
<% if collection.any? %>
|
|
30
|
-
<%= render "filters" %>
|
|
30
|
+
<%= render "decidim/admin/taxonomies/filters" %>
|
|
31
31
|
|
|
32
32
|
<% if @taxonomies.any? %>
|
|
33
33
|
<p class="help-text mt-4"><%= t(".description") %></p>
|
|
34
|
-
<%= render "table", collection: @taxonomies %>
|
|
34
|
+
<%= render "decidim/admin/taxonomies/table", collection: @taxonomies %>
|
|
35
35
|
<% else %>
|
|
36
36
|
<p class="mt-8"><%= t("no_items_found", scope: "decidim.admin.taxonomies.index") %></p>
|
|
37
37
|
<% end %>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<% add_decidim_page_title(t("
|
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
|
2
2
|
|
|
3
3
|
<div class="card" aria-labelledby="taxonomies-title">
|
|
4
4
|
<div class="item_show__header">
|
|
5
5
|
<div class="w-full">
|
|
6
6
|
<h1 class="item_show__header-title" id="taxonomies-title">
|
|
7
|
-
<%= t "
|
|
7
|
+
<%= t ".title" %>
|
|
8
8
|
<% if allowed_to? :create, :taxonomy %>
|
|
9
9
|
<%= link_to t(".new_taxonomy"), new_taxonomy_path, class: "button button__sm button__secondary new" %>
|
|
10
10
|
<% end %>
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
17
17
|
<% if collection.any? %>
|
|
18
|
-
<%= render "filters" %>
|
|
18
|
+
<%= render "decidim/admin/taxonomies/filters" %>
|
|
19
19
|
|
|
20
20
|
<% if @taxonomies.any? %>
|
|
21
|
-
<%= render "table", collection: @taxonomies if @taxonomies %>
|
|
21
|
+
<%= render "decidim/admin/taxonomies/table", collection: @taxonomies if @taxonomies %>
|
|
22
22
|
<% else %>
|
|
23
23
|
<p><%= t(".no_items_found") %></p>
|
|
24
24
|
<% end %>
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
</li>
|
|
37
37
|
<% else %>
|
|
38
38
|
<div class="dropdown__button-disabled">
|
|
39
|
-
<%= with_tooltip t("tooltips.cannot_edit_taxonomy_filter", scope: "decidim.admin")
|
|
39
|
+
<%= with_tooltip t("tooltips.cannot_edit_taxonomy_filter", scope: "decidim.admin") do %>
|
|
40
40
|
<%= icon "pencil-line", class: "text-gray" %>
|
|
41
41
|
<%= t(".edit") %>
|
|
42
42
|
<% end %>
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
</li>
|
|
55
55
|
<% else %>
|
|
56
56
|
<div class="dropdown__button-disabled">
|
|
57
|
-
<%= with_tooltip t("tooltips.cannot_destroy_taxonomy_filter", scope: "decidim.admin")
|
|
57
|
+
<%= with_tooltip t("tooltips.cannot_destroy_taxonomy_filter", scope: "decidim.admin") do %>
|
|
58
58
|
<%= icon "delete-bin-line", class: "text-gray" %>
|
|
59
59
|
<%= t(".destroy") %>
|
|
60
60
|
<% end %>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<% add_decidim_page_title(t("
|
|
1
|
+
<% add_decidim_page_title(t(".title", taxonomy: translated_attribute(root_taxonomy.name))) %>
|
|
2
2
|
|
|
3
3
|
<div class="card" aria-labelledby="taxonomy_filters-title">
|
|
4
4
|
<div class="item_show__header">
|
|
5
5
|
<div class="w-full">
|
|
6
6
|
<h1 class="item_show__header-title" id="taxonomy_filters-title">
|
|
7
|
-
<%= t("
|
|
7
|
+
<%= t(".title", taxonomy: translated_attribute(root_taxonomy.name)) %>
|
|
8
8
|
<% if allowed_to? :create, :taxonomy %>
|
|
9
9
|
<%= link_to t(".new_filter"), new_taxonomy_filter_path(root_taxonomy), class: "button button__sm button__secondary new" %>
|
|
10
10
|
<% end %>
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
|
2
|
+
|
|
1
3
|
<% content_for(:action_buttons) do %>
|
|
2
4
|
<% if taxonomy_filter %>
|
|
3
5
|
<%= link_to decidim_admin.taxonomy_filters_selector_path(taxonomy_filter_id: taxonomy_filter.id, taxonomy_id: root_taxonomy.id, component_id: component.id), remote: true, method: :delete, class: "button button__transparent-secondary button__sm", id: "remove-taxonomy-filter" do %>
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<% add_decidim_page_title(t(".title", taxonomy: translated_attribute(taxonomy.name))) %>
|
|
2
|
+
|
|
1
3
|
<div class="form__wrapper">
|
|
2
4
|
<div class="item__edit-form">
|
|
3
5
|
<%= decidim_form_for(@form, url: taxonomy_item_path(taxonomy_id: taxonomy.id, id: taxonomy_item.id ), remote: true, html: { id: "taxonomy-item-form", class: "form-defaults form new_taxonomy_" }) do |f| %>
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<% add_decidim_page_title(t(".title", taxonomy: translated_attribute(taxonomy.name))) %>
|
|
2
|
+
|
|
1
3
|
<div class="form__wrapper">
|
|
2
4
|
<div class="item__edit-form">
|
|
3
5
|
<%= decidim_form_for(@form, url: taxonomy_items_path(taxonomy), remote: true, html: { id: "taxonomy-item-form", class: "form-defaults form new_taxonomy_" }) do |f| %>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
<% add_decidim_page_title(t("
|
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
|
2
|
+
|
|
2
3
|
<div class="card">
|
|
3
4
|
<div class="item_show__header">
|
|
4
5
|
<h1 class="item_show__header-title">
|
|
5
|
-
<%= t "
|
|
6
|
+
<%= t ".title" %>
|
|
6
7
|
<% if allowed_to? :create, :admin_user %>
|
|
7
8
|
<%= link_to t("actions.user.new", scope: "decidim.admin"), [:new, :user], class: "button button__sm button__secondary" %>
|
|
8
9
|
<% end %>
|