decidim-admin 0.28.0 → 0.28.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim-admin might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/cells/decidim/admin/content_block_cell.rb +1 -1
- data/app/commands/decidim/admin/destroy_category.rb +1 -1
- data/app/controllers/decidim/admin/application_controller.rb +2 -1
- data/app/controllers/decidim/admin/area_types_controller.rb +1 -1
- data/app/controllers/decidim/admin/authorization_workflows_controller.rb +2 -0
- data/app/controllers/decidim/admin/conflicts_controller.rb +23 -0
- data/app/controllers/decidim/admin/impersonatable_users_controller.rb +3 -1
- data/app/controllers/decidim/admin/impersonations_controller.rb +1 -0
- data/app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb +2 -0
- data/app/controllers/decidim/admin/moderated_users_controller.rb +10 -0
- data/app/controllers/decidim/admin/moderations_controller.rb +10 -0
- data/app/controllers/decidim/admin/officializations_controller.rb +2 -0
- data/app/controllers/decidim/admin/scope_types_controller.rb +1 -1
- data/app/controllers/decidim/admin/static_page_topics_controller.rb +10 -0
- data/app/controllers/decidim/admin/user_groups_controller.rb +2 -0
- data/app/controllers/decidim/admin/users_controller.rb +2 -0
- data/app/events/decidim/resource_hidden_event.rb +5 -1
- data/app/helpers/decidim/admin/admin_terms_helper.rb +1 -1
- data/app/helpers/decidim/admin/filterable_helper.rb +1 -1
- data/app/packs/entrypoints/decidim_admin_overrides.scss +2 -0
- data/app/packs/images/decidim/admin/.keep +0 -0
- data/app/packs/src/decidim/admin/application.js +8 -0
- data/app/packs/src/decidim/admin/participatory_space_search.js +1 -1
- data/app/packs/stylesheets/decidim/admin/_filters.scss +1 -1
- data/app/packs/stylesheets/decidim/admin/_legacy_foundation.scss +10 -0
- data/app/packs/stylesheets/decidim/admin/_sidebar-menu.scss +4 -4
- data/app/packs/stylesheets/decidim/admin/_tabs.scss +6 -0
- data/app/packs/stylesheets/decidim/admin/decidim_application.scss +5 -0
- data/app/views/decidim/admin/admin_terms/show.html.erb +2 -2
- data/app/views/decidim/admin/area_types/edit.html.erb +2 -2
- data/app/views/decidim/admin/area_types/index.html.erb +2 -2
- data/app/views/decidim/admin/area_types/new.html.erb +2 -2
- data/app/views/decidim/admin/areas/edit.html.erb +2 -2
- data/app/views/decidim/admin/areas/index.html.erb +2 -2
- data/app/views/decidim/admin/areas/new.html.erb +2 -2
- data/app/views/decidim/admin/attachment_collections/edit.html.erb +2 -2
- data/app/views/decidim/admin/attachment_collections/index.html.erb +2 -2
- data/app/views/decidim/admin/attachment_collections/new.html.erb +2 -2
- data/app/views/decidim/admin/attachments/edit.html.erb +2 -2
- data/app/views/decidim/admin/attachments/index.html.erb +2 -2
- data/app/views/decidim/admin/attachments/new.html.erb +2 -2
- data/app/views/decidim/admin/authorization_workflows/index.html.erb +2 -2
- data/app/views/decidim/admin/block_user/new.html.erb +3 -4
- data/app/views/decidim/admin/categories/edit.html.erb +2 -2
- data/app/views/decidim/admin/categories/index.html.erb +7 -3
- data/app/views/decidim/admin/categories/new.html.erb +2 -2
- data/app/views/decidim/admin/components/edit.html.erb +2 -2
- data/app/views/decidim/admin/components/index.html.erb +2 -2
- data/app/views/decidim/admin/components/new.html.erb +2 -2
- data/app/views/decidim/admin/conflicts/index.html.erb +2 -2
- data/app/views/decidim/admin/dashboard/show.html.erb +2 -2
- data/app/views/decidim/admin/help_sections/_form.html.erb +2 -2
- data/app/views/decidim/admin/impersonatable_users/index.html.erb +2 -2
- data/app/views/decidim/admin/impersonations/new.html.erb +2 -2
- data/app/views/decidim/admin/imports/new.html.erb +2 -2
- data/app/views/decidim/admin/managed_users/impersonation_logs/index.html.erb +2 -2
- data/app/views/decidim/admin/managed_users/promotions/new.html.erb +2 -2
- data/app/views/decidim/admin/moderated_users/index.html.erb +2 -2
- data/app/views/decidim/admin/moderations/index.html.erb +2 -2
- data/app/views/decidim/admin/moderations/reports/index.html.erb +2 -2
- data/app/views/decidim/admin/moderations/reports/show.html.erb +2 -2
- data/app/views/decidim/admin/newsletter_templates/index.html.erb +5 -6
- data/app/views/decidim/admin/newsletter_templates/show.html.erb +16 -12
- data/app/views/decidim/admin/newsletters/edit.html.erb +2 -2
- data/app/views/decidim/admin/newsletters/index.html.erb +2 -2
- data/app/views/decidim/admin/newsletters/new.html.erb +2 -2
- data/app/views/decidim/admin/newsletters/select_recipients_to_deliver.html.erb +13 -9
- data/app/views/decidim/admin/newsletters/show.html.erb +29 -26
- data/app/views/decidim/admin/officializations/index.html.erb +1 -1
- data/app/views/decidim/admin/officializations/new.html.erb +2 -2
- data/app/views/decidim/admin/organization/_form.html.erb +5 -3
- data/app/views/decidim/admin/organization/edit.html.erb +2 -2
- data/app/views/decidim/admin/organization_appearance/edit.html.erb +2 -2
- data/app/views/decidim/admin/organization_external_domain_whitelist/edit.html.erb +2 -2
- data/app/views/decidim/admin/participatory_space_private_users/index.html.erb +2 -2
- data/app/views/decidim/admin/participatory_space_private_users/new.html.erb +2 -2
- data/app/views/decidim/admin/resource_permissions/edit.html.erb +2 -2
- data/app/views/decidim/admin/scope_types/edit.html.erb +2 -2
- data/app/views/decidim/admin/scope_types/index.html.erb +2 -2
- data/app/views/decidim/admin/scope_types/new.html.erb +2 -2
- data/app/views/decidim/admin/scopes/edit.html.erb +2 -2
- data/app/views/decidim/admin/scopes/index.html.erb +2 -2
- data/app/views/decidim/admin/scopes/new.html.erb +2 -2
- data/app/views/decidim/admin/shared/_filters.html.erb +1 -1
- data/app/views/decidim/admin/shared/landing_page/_content_blocks.html.erb +2 -2
- data/app/views/decidim/admin/shared/landing_page_content_blocks/edit.html.erb +2 -2
- data/app/views/decidim/admin/static_page_topics/edit.html.erb +2 -2
- data/app/views/decidim/admin/static_page_topics/index.html.erb +2 -2
- data/app/views/decidim/admin/static_page_topics/new.html.erb +2 -2
- data/app/views/decidim/admin/static_pages/edit.html.erb +2 -2
- data/app/views/decidim/admin/static_pages/index.html.erb +2 -2
- data/app/views/decidim/admin/static_pages/new.html.erb +2 -2
- data/app/views/decidim/admin/user_groups/index.html.erb +2 -2
- data/app/views/decidim/admin/user_groups_csv_verifications/new.html.erb +2 -2
- data/app/views/decidim/admin/users/index.html.erb +2 -2
- data/app/views/decidim/admin/users/new.html.erb +2 -2
- data/app/views/layouts/decidim/admin/_breadcrumb.html.erb +1 -1
- data/app/views/layouts/decidim/admin/_header.html.erb +4 -0
- data/app/views/layouts/decidim/admin/_js_configuration.html.erb +1 -0
- data/config/assets.rb +1 -0
- data/config/locales/ar.yml +10 -8
- data/config/locales/bg.yml +25 -0
- data/config/locales/ca.yml +2 -1
- data/config/locales/cs.yml +4 -8
- data/config/locales/de.yml +5 -4
- data/config/locales/el.yml +1 -12
- data/config/locales/en.yml +2 -1
- data/config/locales/es-MX.yml +3 -2
- data/config/locales/es-PY.yml +3 -2
- data/config/locales/es.yml +3 -2
- data/config/locales/eu.yml +6 -5
- data/config/locales/fi-plain.yml +2 -1
- data/config/locales/fi.yml +4 -3
- data/config/locales/fr-CA.yml +3 -2
- data/config/locales/fr.yml +2 -1
- data/config/locales/ga-IE.yml +1 -4
- data/config/locales/gl.yml +7 -7
- data/config/locales/he-IL.yml +50 -0
- data/config/locales/hu.yml +35 -6
- data/config/locales/id-ID.yml +4 -0
- data/config/locales/is-IS.yml +4 -0
- data/config/locales/it.yml +6 -9
- data/config/locales/ja.yml +6 -4
- data/config/locales/ko.yml +774 -0
- data/config/locales/lb.yml +7 -10
- data/config/locales/lt.yml +1 -14
- data/config/locales/lv.yml +7 -0
- data/config/locales/nl.yml +6 -9
- data/config/locales/no.yml +19 -9
- data/config/locales/pl.yml +71 -4
- data/config/locales/pt-BR.yml +49 -12
- data/config/locales/pt.yml +7 -10
- data/config/locales/ro-RO.yml +1 -13
- data/config/locales/ru.yml +4 -0
- data/config/locales/sk.yml +4 -0
- data/config/locales/sl.yml +4 -0
- data/config/locales/sq-AL.yml +77 -0
- data/config/locales/sr-CS.yml +4 -0
- data/config/locales/sv.yml +6 -9
- data/config/locales/tr-TR.yml +10 -0
- data/config/locales/uk.yml +4 -0
- data/config/locales/zh-CN.yml +4 -0
- data/config/locales/zh-TW.yml +1 -11
- data/decidim-admin.gemspec +43 -0
- data/lib/decidim/admin/engine.rb +1 -25
- data/lib/decidim/admin/menu.rb +13 -4
- data/lib/decidim/admin/test/commands/destroy_category_examples.rb +9 -0
- data/lib/decidim/admin/version.rb +1 -1
- metadata +19 -15
- data/config/environment.rb +0 -3
@@ -1,12 +1,12 @@
|
|
1
1
|
<% add_decidim_page_title(t("categories.index.categories_title", scope: "decidim.admin")) %>
|
2
2
|
<div class="card" id="categories">
|
3
3
|
<div class="item_show__header">
|
4
|
-
<
|
4
|
+
<h1 class="item_show__header-title">
|
5
5
|
<%= t("categories.index.categories_title", scope: "decidim.admin") %>
|
6
6
|
<% if allowed_to? :create, :category %>
|
7
7
|
<%= link_to t("actions.category.new", scope: "decidim.admin"), new_category_path(current_participatory_space), class: "button button__sm button__secondary new ml-auto" %>
|
8
8
|
<% end %>
|
9
|
-
</
|
9
|
+
</h1>
|
10
10
|
</div>
|
11
11
|
<% if current_participatory_space.categories.any? %>
|
12
12
|
<div class="table-scroll">
|
@@ -48,7 +48,11 @@
|
|
48
48
|
<% end %>
|
49
49
|
|
50
50
|
<% if allowed_to? :destroy, :category, category: subcategory %>
|
51
|
-
|
51
|
+
<% if subcategory.unused? %>
|
52
|
+
<%= icon_link_to "delete-bin-line", category_path(current_participatory_space, subcategory), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
|
53
|
+
<% else %>
|
54
|
+
<%= icon "delete-bin-line", class: "action-icon action-icon--disabled", role: "img", "aria-hidden": true %>
|
55
|
+
<% end %>
|
52
56
|
<% end %>
|
53
57
|
</td>
|
54
58
|
</tr>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<% add_decidim_page_title(t("categories.new.title", scope: "decidim.admin")) %>
|
2
2
|
<div class="item_show__header">
|
3
|
-
<
|
3
|
+
<h1 class="item_show__header-title">
|
4
4
|
<%= t("categories.new.title", scope: "decidim.admin") %>
|
5
|
-
</
|
5
|
+
</h1>
|
6
6
|
</div>
|
7
7
|
|
8
8
|
<div class="item__edit item__edit-1col">
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title", name: t("#{@component.manifest.name}.name", scope: "decidim.components"))) %>
|
2
2
|
<div class="item_show__header">
|
3
|
-
<
|
3
|
+
<h1 class="item_show__header-title">
|
4
4
|
<%= t(".title", name: t("#{manifest.name}.name", scope: "decidim.components")) %>
|
5
|
-
</
|
5
|
+
</h1>
|
6
6
|
</div>
|
7
7
|
|
8
8
|
<div class="item__edit item__edit-1col">
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
<div class="card">
|
4
4
|
<div class="item_show__header">
|
5
|
-
<
|
5
|
+
<h1 class="item_show__header-title">
|
6
6
|
<%= t("components.title", scope: "decidim.admin") %>
|
7
7
|
|
8
8
|
<% if allowed_to?(:create, :component) %>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
</div>
|
21
21
|
</div>
|
22
22
|
<% end %>
|
23
|
-
</
|
23
|
+
</h1>
|
24
24
|
</div>
|
25
25
|
|
26
26
|
<div class="table-scroll">
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title", name: t("#{manifest.name}.name", scope: "decidim.components"))) %>
|
2
2
|
<div class="item_show__header">
|
3
|
-
<
|
3
|
+
<h1 class="item_show__header-title">
|
4
4
|
<%= t(".title", name: t("#{manifest.name}.name", scope: "decidim.components")) %>
|
5
|
-
</
|
5
|
+
</h1>
|
6
6
|
</div>
|
7
7
|
|
8
8
|
<div class="item__edit item__edit-1col">
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<% add_decidim_page_title(t("title", scope: "decidim.admin.conflicts")) %>
|
2
2
|
<div class="card">
|
3
3
|
<div class="item_show__header">
|
4
|
-
<
|
4
|
+
<h1 class="item_show__header-title">
|
5
5
|
<%= t("title", scope: "decidim.admin.conflicts") %>
|
6
|
-
</
|
6
|
+
</h1>
|
7
7
|
</div>
|
8
8
|
<div class="table-scroll">
|
9
9
|
<table class="table-list">
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<% add_decidim_page_title(t("decidim.admin.titles.dashboard")) %>
|
2
2
|
|
3
3
|
<div class="item_show__header">
|
4
|
-
<
|
4
|
+
<h1 class="item_show__header-title">
|
5
5
|
<%= t "decidim.admin.titles.dashboard" %> <%= current_organization.name %>
|
6
|
-
</
|
6
|
+
</h1>
|
7
7
|
</div>
|
8
8
|
|
9
9
|
<div class="content">
|
@@ -6,12 +6,12 @@
|
|
6
6
|
<% end %>
|
7
7
|
|
8
8
|
<div class="item_show__header">
|
9
|
-
<
|
9
|
+
<h1 class="item_show__header-title">
|
10
10
|
<%= t "decidim.admin.titles.impersonatable_users" %>
|
11
11
|
<% if allowed_to? :impersonate, :impersonatable_user, user: new_managed_user %>
|
12
12
|
<%= link_to t(".impersonate_new_managed_user"), new_impersonatable_user_impersonation_path(:new_managed_user), class: "button button__sm button__secondary #{"disabled" if current_organization.available_authorizations.empty?}" %>
|
13
13
|
<% end %>
|
14
|
-
</
|
14
|
+
</h1>
|
15
15
|
</div>
|
16
16
|
|
17
17
|
<div class="filters__section">
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% add_decidim_page_title(t("impersonate_new_managed_user", scope: "decidim.admin.impersonations.new")) %>
|
2
2
|
<div class="item_show__header">
|
3
|
-
<
|
3
|
+
<h1 class="item_show__header-title">
|
4
4
|
<% if creating_managed_user? %>
|
5
5
|
<%= t(".impersonate_new_managed_user") %>
|
6
6
|
<% else %>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<%= t(".impersonate_existing_user", name: @form.user.name) %>
|
11
11
|
<% end %>
|
12
12
|
<% end %>
|
13
|
-
</
|
13
|
+
</h1>
|
14
14
|
</div>
|
15
15
|
<div class="item__edit item__edit-1col">
|
16
16
|
<div class="item__edit-form">
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% add_decidim_page_title(import_manifest.message(:title, self)) %>
|
2
2
|
<div class="item_show__header">
|
3
|
-
<
|
3
|
+
<h1 class="item_show__header-title">
|
4
4
|
<%= import_manifest.message(:title, self) %>
|
5
5
|
|
6
6
|
<div id="js-other-actions-wrapper">
|
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
<%= link_to t(".actions.back"), manage_component_path(@current_component), class: "button button__sm button__secondary hollow tiny button--simple" %>
|
25
25
|
</div>
|
26
|
-
</
|
26
|
+
</h1>
|
27
27
|
</div>
|
28
28
|
|
29
29
|
<div class="item__edit item__edit-1col">
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<% add_decidim_page_title(t("decidim.admin.titles.impersonations")) %>
|
2
2
|
<div class="card">
|
3
3
|
<div class="item_show__header">
|
4
|
-
<
|
4
|
+
<h1 class="item_show__header-title">
|
5
5
|
<%= t "decidim.admin.titles.impersonations" %>
|
6
|
-
</
|
6
|
+
</h1>
|
7
7
|
</div>
|
8
8
|
<div class="table-scroll">
|
9
9
|
<table class="table-list">
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<% add_decidim_page_title(t(".new_managed_user_promotion")) %>
|
2
2
|
<div class="item_show__header">
|
3
|
-
<
|
3
|
+
<h1 class="item_show__header-title">
|
4
4
|
<%= t(".new_managed_user_promotion") %>
|
5
|
-
</
|
5
|
+
</h1>
|
6
6
|
</div>
|
7
7
|
|
8
8
|
<div class="section">
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title")) %>
|
2
2
|
<div class="item_show__header">
|
3
|
-
<
|
3
|
+
<h1 class="item_show__header-title">
|
4
4
|
<%= t(".title") %>
|
5
5
|
|
6
6
|
<div class="card__filter">
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
|
9
9
|
<%= link_to t("decidim.admin.moderated_users.tabs.blocked"), moderated_users_path(blocked: true) %>
|
10
10
|
</div>
|
11
|
-
</
|
11
|
+
</h1>
|
12
12
|
</div>
|
13
13
|
|
14
14
|
<%= admin_filter_selector(:moderated_users) %>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title")) %>
|
2
2
|
<div class="item_show__header">
|
3
|
-
<
|
3
|
+
<h1 class="item_show__header-title">
|
4
4
|
<%= t(".title") %>
|
5
5
|
|
6
6
|
<div class="card__filter">
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
|
9
9
|
<%= link_to t("actions.hidden", scope: "decidim.moderations"), moderations_path(hidden: true) %>
|
10
10
|
</div>
|
11
|
-
</
|
11
|
+
</h1>
|
12
12
|
</div>
|
13
13
|
<%= admin_filter_selector(:moderations) %>
|
14
14
|
<div class="table-scroll">
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title")) %>
|
2
2
|
<div class="item_show__header">
|
3
|
-
<
|
3
|
+
<h1 class="item_show__header-title">
|
4
4
|
<div>
|
5
5
|
<%= link_to "#{t("title", scope: "decidim.admin.moderations.index")} > ", moderations_path %>
|
6
6
|
<%= t(".title") %>
|
7
7
|
</div>
|
8
|
-
</
|
8
|
+
</h1>
|
9
9
|
</div>
|
10
10
|
|
11
11
|
<div class="card-section moderation-details">
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title")) %>
|
2
2
|
<div class="item_show__header">
|
3
|
-
<
|
3
|
+
<h1 class="item_show__header-title">
|
4
4
|
<div>
|
5
5
|
<%= link_to "#{t("title", scope: "decidim.admin.moderations.index")} > ", moderations_path %>
|
6
6
|
<%= link_to "#{t("title", scope: "decidim.admin.moderations.reports.index")} > ", moderation_reports_path %>
|
7
7
|
<%= t(".title") %>
|
8
8
|
</div>
|
9
|
-
</
|
9
|
+
</h1>
|
10
10
|
</div>
|
11
11
|
|
12
12
|
<div class="card-section moderation-details">
|
@@ -1,19 +1,18 @@
|
|
1
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
|
<%= t ".title" %>
|
6
6
|
<%= link_to t("actions.newsletter.new", scope: "decidim.admin"), [:newsletter_templates], class: "button button__sm button__secondary expanded small new" %>
|
7
|
-
</
|
7
|
+
</h1>
|
8
8
|
</div>
|
9
9
|
|
10
10
|
<div class="card-section">
|
11
|
-
<div class="grid grid-cols-2 gap-x-8 p-4">
|
11
|
+
<div class="grid md:grid-cols-2 gap-x-8 p-4">
|
12
12
|
<% templates.each do |newsletter_template| %>
|
13
|
-
<div class="card card--mini" id="<%= newsletter_template.name %>">
|
14
|
-
<iframe src="<%= preview_newsletter_template_path(newsletter_template.name) %>" class="email-preview
|
13
|
+
<div class="card card--mini pb-12 md:pb-0" id="<%= newsletter_template.name %>">
|
14
|
+
<iframe src="<%= preview_newsletter_template_path(newsletter_template.name) %>" class="email-preview w-full h-[60dvh]">
|
15
15
|
</iframe>
|
16
|
-
|
17
16
|
<div class="card-footer">
|
18
17
|
<h2 class="card-title flex items-center">
|
19
18
|
<%= t newsletter_template.public_name_key %>
|
@@ -1,15 +1,19 @@
|
|
1
1
|
<% add_decidim_page_title(t(".preview", template_name: t(template_manifest.public_name_key))) %>
|
2
|
-
<div class="
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
</h2>
|
7
|
-
</div>
|
8
|
-
<div class="card-section p-4">
|
9
|
-
<iframe src="<%= preview_newsletter_template_path(template_manifest.name) %>" class="email-preview newsletter-template-preview w-full h-96">
|
10
|
-
</iframe>
|
11
|
-
</div>
|
2
|
+
<div class="item_show__header">
|
3
|
+
<h1 class="item_show__header-title">
|
4
|
+
<%= t ".preview", template_name: t(template_manifest.public_name_key) %>
|
5
|
+
</h1>
|
12
6
|
</div>
|
13
|
-
<div class="
|
14
|
-
|
7
|
+
<div class="item__edit-form">
|
8
|
+
<div class="card">
|
9
|
+
<div class="card-section p-4">
|
10
|
+
<iframe src="<%= preview_newsletter_template_path(template_manifest.name) %>" class="email-preview newsletter-template-preview w-full h-[60dvh]">
|
11
|
+
</iframe>
|
12
|
+
<div class="item__edit-sticky">
|
13
|
+
<div class="item__edit-sticky-container">
|
14
|
+
<%= link_to(t(".use_template"), new_newsletter_template_newsletter_path(template_manifest.name), class: "button button__sm button__secondary") %>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</div>
|
15
19
|
</div>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title")) %>
|
2
2
|
<div class="item_show__header">
|
3
|
-
<
|
3
|
+
<h1 class="item_show__header-title">
|
4
4
|
<%= t ".title" %>
|
5
|
-
</
|
5
|
+
</h1>
|
6
6
|
</div>
|
7
7
|
<div class="item__edit item__edit-1col">
|
8
8
|
<div class="item__edit-form">
|
@@ -1,7 +1,7 @@
|
|
1
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
|
<%= t ".title" %>
|
6
6
|
<div class="flex ml-auto items-center gap-x-4">
|
7
7
|
<strong class="font-bold text-md text-gray-2"><%= t("newsletters.index.subscribed_count", scope: "decidim.admin") %></strong>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<%= link_to t("actions.newsletter.new", scope: "decidim.admin"), [:newsletter_templates], class: "button button__sm button__secondary new" %>
|
11
11
|
<% end %>
|
12
12
|
</div>
|
13
|
-
</
|
13
|
+
</h1>
|
14
14
|
</div>
|
15
15
|
<div class="table-scroll">
|
16
16
|
<table class="table-list">
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title")) %>
|
2
2
|
<div class="item_show__header">
|
3
|
-
<
|
3
|
+
<h1 class="item_show__header-title">
|
4
4
|
<%= t ".title" %>
|
5
|
-
</
|
5
|
+
</h1>
|
6
6
|
</div>
|
7
7
|
<div class="item__edit item__edit-1col">
|
8
8
|
<div class="item__edit-form">
|
@@ -1,8 +1,13 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title")) %>
|
2
2
|
<div class="item_show__header">
|
3
|
-
<
|
3
|
+
<h1 class="item_show__header-title">
|
4
4
|
<%= t ".title" %>
|
5
|
-
</
|
5
|
+
</h1>
|
6
|
+
<div class="flex ml-auto items-center gap-x-4">
|
7
|
+
<% if allowed_to?(:update, :newsletter, newsletter: @newsletter) && !@newsletter.sent? %>
|
8
|
+
<%= link_to t("actions.edit", scope: "decidim.admin"), [:edit, @newsletter], class: "button button__sm button__secondary" %>
|
9
|
+
<% end %>
|
10
|
+
</div>
|
6
11
|
</div>
|
7
12
|
<div class="item__edit item__edit-1col">
|
8
13
|
<div class="item__edit-form">
|
@@ -61,13 +66,12 @@
|
|
61
66
|
</div>
|
62
67
|
<% end %>
|
63
68
|
</div>
|
64
|
-
<div class="
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
<% end %>
|
69
|
+
<div class="item__edit-sticky">
|
70
|
+
<div class="item__edit-sticky-container">
|
71
|
+
<% unless @newsletter.sent? %>
|
72
|
+
<%= f.submit t(".deliver"), class: "button button__sm button__secondary", data: { confirm: t(".confirm_deliver") } %>
|
73
|
+
<% end %>
|
74
|
+
</div>
|
71
75
|
</div>
|
72
76
|
<% end %>
|
73
77
|
</div>
|
@@ -1,34 +1,37 @@
|
|
1
1
|
<% add_decidim_page_title(t(".preview")) %>
|
2
2
|
<div class="item_show__header">
|
3
|
-
<
|
3
|
+
<h1 class="item_show__header-title !w-1/2">
|
4
4
|
<%= t ".preview" %>
|
5
|
-
</
|
5
|
+
</h1>
|
6
|
+
<div class="flex ml-auto items-center gap-x-4">
|
7
|
+
<% if allowed_to?(:update, :newsletter, newsletter: @newsletter) %>
|
8
|
+
<%= link_to t(".send_me_a_test_email"), send_to_user_newsletter_path(@newsletter), class: "button button__sm button__secondary hollow", method: :post %>
|
9
|
+
<% end %>
|
10
|
+
<% unless @newsletter.sent? %>
|
11
|
+
<%= link_to t("actions.edit", scope: "decidim.admin"), [:edit, @newsletter], class: "button button__sm button__secondary" %>
|
12
|
+
<% end %>
|
13
|
+
</div>
|
6
14
|
</div>
|
7
|
-
<div class="
|
15
|
+
<div class="item__edit-form">
|
8
16
|
<div class="card">
|
9
|
-
<div class="card-section
|
10
|
-
<
|
11
|
-
<
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
<div class="card-section">
|
18
|
+
<dl>
|
19
|
+
<dt class="font-bold"><%= t ".subject" %></dt>
|
20
|
+
<dd><%= @email.subject %></dd>
|
21
|
+
<dt class="font-bold"><%= t("models.newsletter.fields.sent_to", scope: "decidim.admin") %></dt>
|
22
|
+
<dd><%= selective_newsletter_to newsletter %></dd>
|
23
|
+
</dl>
|
24
|
+
<iframe src="<%= preview_newsletter_path(@newsletter) %>" class="email-preview w-full h-[60lvh]">
|
25
|
+
</iframe>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
<div class="item__edit-sticky">
|
29
|
+
<div class="item__edit-sticky-container">
|
30
|
+
<% if allowed_to?(:update, :newsletter, newsletter: @newsletter) %>
|
31
|
+
<% unless @newsletter.sent? %>
|
32
|
+
<%= link_to t(".select_recipients_to_deliver"), select_recipients_to_deliver_newsletter_path(@newsletter), class: "button button__sm button__secondary alert" %>
|
33
|
+
<% end %>
|
34
|
+
<% end %>
|
21
35
|
</div>
|
22
36
|
</div>
|
23
|
-
</div>
|
24
|
-
<div class="form__wrapper-block flex-col-reverse md:flex-row justify-between">
|
25
|
-
<% if allowed_to?(:update, :newsletter, newsletter: @newsletter) %>
|
26
|
-
<% unless @newsletter.sent? %>
|
27
|
-
<%= link_to t("actions.edit", scope: "decidim.admin"), [:edit, @newsletter], class: "button button__sm button__secondary" %>
|
28
|
-
<% end %>
|
29
|
-
<%= link_to t(".send_me_a_test_email"), send_to_user_newsletter_path(@newsletter), class: "button button__sm button__secondary hollow", method: :post %>
|
30
|
-
<% unless @newsletter.sent? %>
|
31
|
-
<%= link_to t(".select_recipients_to_deliver"), select_recipients_to_deliver_newsletter_path(@newsletter), class: "button button__sm button__secondary alert" %>
|
32
|
-
<% end %>
|
33
|
-
<% end %>
|
34
37
|
</div>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<% add_decidim_page_title(t("decidim.admin.titles.participants")) %>
|
2
2
|
<div class="card" id="user-groups">
|
3
3
|
<div class="item_show__header">
|
4
|
-
<
|
4
|
+
<h1 class="item_show__header-title"><%= t "decidim.admin.titles.participants" %></h1>
|
5
5
|
</div>
|
6
6
|
<%= admin_filter_selector %>
|
7
7
|
<div class="table-scroll">
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title", name: user.name)) %>
|
2
2
|
<div class="item_show__header">
|
3
|
-
<
|
3
|
+
<h1 class="item_show__header-title">
|
4
4
|
<%= t(".title", name: user.name) %>
|
5
|
-
</
|
5
|
+
</h1>
|
6
6
|
</div>
|
7
7
|
<div class="item__edit item__edit-1col">
|
8
8
|
<div class="item__edit-form">
|
@@ -12,9 +12,10 @@
|
|
12
12
|
<%= t(".social_handlers") %>
|
13
13
|
</label>
|
14
14
|
<ul class="tabs tabs--lang" data-tabs id="organization_social_handlers">
|
15
|
+
<% first_handler = Decidim::Organization::SOCIAL_HANDLERS.first %>
|
15
16
|
<% Decidim::Organization::SOCIAL_HANDLERS.each do |handler| %>
|
16
|
-
<li class="tabs-title <% if handler ==
|
17
|
-
<a href="#<%= handler %>" <% if handler ==
|
17
|
+
<li class="tabs-title <% if handler == first_handler %> is-active <% end %>">
|
18
|
+
<a href="#<%= handler %>" <% if handler == first_handler %> aria-selected="true" <% end %>>
|
18
19
|
<%= t(".#{handler}") %>
|
19
20
|
</a>
|
20
21
|
</li>
|
@@ -23,7 +24,8 @@
|
|
23
24
|
</div>
|
24
25
|
<div class="tabs-content" data-tabs-content="organization_social_handlers">
|
25
26
|
<% Decidim::Organization::SOCIAL_HANDLERS.each do |handler| %>
|
26
|
-
<div class="tabs-panel <% if handler ==
|
27
|
+
<div class="tabs-panel <% if handler == first_handler %> is-active <% end %>" id="<%= handler %>"
|
28
|
+
aria-hidden="<% if handler == first_handler %>false<% else %>true<% end %>">
|
27
29
|
<%= form.text_field "#{handler}_handler", label: false %>
|
28
30
|
</div>
|
29
31
|
<% end %>
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<% add_decidim_page_title(t("edit_organization_appearance", scope: "decidim.admin.titles")) %>
|
2
2
|
|
3
3
|
<div class="item_show__header">
|
4
|
-
<
|
4
|
+
<h1 class="item_show__header-title">
|
5
5
|
<%= t("edit_organization_appearance", scope: "decidim.admin.titles") %>
|
6
|
-
</
|
6
|
+
</h1>
|
7
7
|
</div>
|
8
8
|
|
9
9
|
<div class="item__edit-form">
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<% add_decidim_page_title(t("edit_external_domains", scope: "decidim.admin.titles")) %>
|
2
2
|
|
3
3
|
<div class="item_show__header">
|
4
|
-
<
|
4
|
+
<h1 class="item_show__header-title">
|
5
5
|
<%= t("title", scope: "decidim.admin.organization_external_domain_whitelist.form") %>
|
6
|
-
</
|
6
|
+
</h1>
|
7
7
|
</div>
|
8
8
|
|
9
9
|
<div class="item__edit-form">
|
@@ -1,13 +1,13 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title")) %>
|
2
2
|
<div class="card" id="private_users">
|
3
3
|
<div class="item_show__header">
|
4
|
-
<
|
4
|
+
<h1 class="item_show__header-title">
|
5
5
|
<%= t(".title") %>
|
6
6
|
<% if allowed_to? :create, :space_private_user %>
|
7
7
|
<%= link_to t(".import_via_csv"), new_participatory_space_private_users_csv_imports_path, class: "button button__sm button__secondary import" %>
|
8
8
|
<%= link_to t("actions.participatory_space_private_user.new", scope: "decidim.admin"), url_for(action: :new), class: "button button__sm button__secondary new" %>
|
9
9
|
<% end %>
|
10
|
-
</
|
10
|
+
</h1>
|
11
11
|
</div>
|
12
12
|
<%= admin_filter_selector(:participatory_space_private_users) %>
|
13
13
|
<% if participatory_space_private_users.any? %>
|
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
<section id="components">
|
4
4
|
<div class="item_show__header">
|
5
|
-
<
|
5
|
+
<h1 class="item_show__header-title">
|
6
6
|
<%= t(".title") %>
|
7
|
-
</
|
7
|
+
</h1>
|
8
8
|
</div>
|
9
9
|
|
10
10
|
<%= form_for @permissions_form, url: url_for(action: :update, **resource_params), html: { class: "form form-defaults" }, method: "put" do |permissions_form| %>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title")) %>
|
2
2
|
<div class="item_show__header">
|
3
|
-
<
|
3
|
+
<h1 class="item_show__header-title">
|
4
4
|
<%= t ".title" %>
|
5
|
-
</
|
5
|
+
</h1>
|
6
6
|
</div>
|
7
7
|
<div class="item__edit-form">
|
8
8
|
<%= decidim_form_for(@form, html: { class: "form-defaults form scope_types_edit" }) do |f| %>
|
@@ -1,13 +1,13 @@
|
|
1
1
|
<% add_decidim_page_title(t("decidim.admin.titles.scope_types")) %>
|
2
2
|
<div class="card" id="scope-types">
|
3
3
|
<div class="item_show__header">
|
4
|
-
<
|
4
|
+
<h1 class="item_show__header-title">
|
5
5
|
<%= t "decidim.admin.titles.scope_types" %>
|
6
6
|
|
7
7
|
<% if allowed_to? :create, :scope_type %>
|
8
8
|
<%= link_to t("actions.add", scope: "decidim.admin"), [:new, :scope_type], class: "button button__sm button__secondary new" %>
|
9
9
|
<% end %>
|
10
|
-
</
|
10
|
+
</h1>
|
11
11
|
</div>
|
12
12
|
<div class="table-scroll">
|
13
13
|
<table class="table-list">
|