decidim-admin 0.29.2 → 0.30.0.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/cells/decidim/admin/multi_select_picker/show.erb +10 -0
- data/app/cells/decidim/admin/multi_select_picker_cell.rb +38 -0
- data/app/commands/decidim/admin/bulk_action.rb +92 -0
- data/app/commands/decidim/admin/bulk_block_users.rb +75 -0
- data/app/commands/decidim/admin/bulk_unblock_users.rb +66 -0
- data/app/commands/decidim/admin/bulk_unreport_users.rb +69 -0
- data/app/commands/decidim/admin/content_blocks/update_content_block.rb +1 -1
- data/app/commands/decidim/admin/create_participatory_space_private_user.rb +3 -1
- data/app/commands/decidim/admin/create_share_token.rb +39 -0
- data/app/commands/decidim/admin/create_taxonomy.rb +23 -0
- data/app/commands/decidim/admin/create_taxonomy_filter.rb +24 -0
- data/app/commands/decidim/admin/destroy_share_token.rb +22 -0
- data/app/commands/decidim/admin/destroy_taxonomy.rb +18 -0
- data/app/commands/decidim/admin/destroy_taxonomy_filter.rb +20 -0
- data/app/commands/decidim/admin/hide_menu_component.rb +37 -0
- data/app/commands/decidim/admin/hide_resource.rb +4 -3
- data/app/commands/decidim/admin/publish_all_participatory_space_private_users.rb +50 -0
- data/app/commands/decidim/admin/publish_component.rb +3 -0
- data/app/commands/decidim/admin/reorder_components.rb +47 -0
- data/app/commands/decidim/admin/reorder_taxonomies.rb +76 -0
- data/app/commands/decidim/admin/unhide_resource.rb +11 -3
- data/app/commands/decidim/admin/unpublish_all_participatory_space_private_users.rb +50 -0
- data/app/commands/decidim/admin/unreport_resource.rb +11 -3
- data/app/commands/decidim/admin/update_component_permissions.rb +53 -13
- data/app/commands/decidim/admin/update_participatory_space_private_user.rb +11 -0
- data/app/commands/decidim/admin/update_share_token.rb +24 -0
- data/app/commands/decidim/admin/update_taxonomy.rb +20 -0
- data/app/commands/decidim/admin/update_taxonomy_filter.rb +28 -0
- data/app/controllers/concerns/decidim/admin/component_taxonomies_helper.rb +19 -0
- data/app/controllers/concerns/decidim/admin/filterable.rb +15 -18
- data/app/controllers/concerns/decidim/admin/has_trashable_resources.rb +170 -0
- data/app/controllers/concerns/decidim/admin/needs_admin_tos_accepted.rb +2 -29
- data/app/controllers/concerns/decidim/admin/participatory_space_admin_context.rb +12 -2
- data/app/controllers/concerns/decidim/admin/taxonomies/filterable.rb +27 -0
- data/app/controllers/decidim/admin/application_controller.rb +1 -2
- data/app/controllers/decidim/admin/areas_controller.rb +1 -0
- data/app/controllers/decidim/admin/block_user_controller.rb +42 -0
- data/app/controllers/decidim/admin/component_permissions_controller.rb +2 -4
- data/app/controllers/decidim/admin/components_controller.rb +50 -9
- data/app/controllers/decidim/admin/concerns/has_private_users.rb +59 -2
- data/app/controllers/decidim/admin/global_moderations_controller.rb +4 -0
- data/app/controllers/decidim/admin/moderated_users_controller.rb +26 -0
- data/app/controllers/decidim/admin/moderations_controller.rb +18 -0
- data/app/controllers/decidim/admin/newsletters_controller.rb +50 -7
- data/app/controllers/decidim/admin/resource_permissions_controller.rb +1 -1
- data/app/controllers/decidim/admin/scopes_controller.rb +1 -0
- data/app/controllers/decidim/admin/share_tokens_controller.rb +109 -7
- data/app/controllers/decidim/admin/taxonomies_controller.rb +129 -0
- data/app/controllers/decidim/admin/taxonomy_filters_controller.rb +112 -0
- data/app/controllers/decidim/admin/taxonomy_filters_selector_controller.rb +81 -0
- data/app/controllers/decidim/admin/taxonomy_items_controller.rb +91 -0
- data/app/forms/concerns/decidim/has_taxonomy_form_attributes.rb +57 -0
- data/app/forms/decidim/admin/block_users_form.rb +21 -0
- data/app/forms/decidim/admin/import_example_form.rb +1 -1
- data/app/forms/decidim/admin/newsletter_form.rb +1 -1
- data/app/forms/decidim/admin/participatory_space_private_user_form.rb +5 -0
- data/app/forms/decidim/admin/selective_newsletter_form.rb +46 -11
- data/app/forms/decidim/admin/share_token_form.rb +55 -0
- data/app/forms/decidim/admin/taxonomy_filter_form.rb +85 -0
- data/app/forms/decidim/admin/taxonomy_form.rb +20 -0
- data/app/forms/decidim/admin/taxonomy_item_form.rb +54 -0
- data/app/helpers/decidim/admin/application_helper.rb +0 -1
- data/app/helpers/decidim/admin/bulk_actions_helper.rb +0 -31
- data/app/helpers/decidim/admin/moderations/reports_helper.rb +1 -1
- data/app/helpers/decidim/admin/moderations_helper.rb +1 -1
- data/app/helpers/decidim/admin/newsletters_helper.rb +57 -27
- data/app/helpers/decidim/admin/scopes_helper.rb +0 -6
- data/app/helpers/decidim/admin/search_form_helper.rb +1 -1
- data/app/helpers/decidim/admin/settings_helper.rb +85 -11
- data/app/jobs/decidim/admin/newsletter_job.rb +3 -1
- data/app/packs/entrypoints/decidim_admin.js +4 -0
- data/app/packs/src/decidim/admin/application.js +2 -0
- data/app/packs/src/decidim/admin/draggable-table.js +33 -0
- data/app/packs/src/decidim/admin/form.js +0 -1
- data/app/packs/src/decidim/admin/global_moderations.js +186 -0
- data/app/packs/src/decidim/admin/managed_moderated_users.js +186 -0
- data/app/packs/src/decidim/admin/newsletters.js +164 -82
- data/app/packs/src/decidim/admin/proposal_infinite_edit.js +3 -6
- data/app/packs/src/decidim/admin/sortable.js +28 -16
- data/app/packs/src/decidim/admin/taxonomy_filters.js +93 -0
- data/app/packs/stylesheets/decidim/admin/_component-show.scss +66 -5
- data/app/packs/stylesheets/decidim/admin/_legacy_foundation.scss +13 -0
- data/app/packs/stylesheets/decidim/admin/_select_picker.scss +20 -0
- data/app/packs/stylesheets/decidim/admin/_table-list.scss +22 -0
- data/app/packs/stylesheets/decidim/admin/_taxonomies.scss +74 -0
- data/app/packs/stylesheets/decidim/admin/application.scss +3 -0
- data/app/permissions/decidim/admin/permissions.rb +32 -1
- data/app/queries/decidim/admin/newsletter_recipients.rb +50 -14
- data/app/views/decidim/admin/areas/index.html.erb +3 -0
- data/app/views/decidim/admin/block_user/bulk_new.html.erb +45 -0
- data/app/views/decidim/admin/components/_actions.html.erb +50 -33
- data/app/views/decidim/admin/components/{_component.html.erb → _component_row.html.erb} +10 -5
- data/app/views/decidim/admin/components/_components_table.html.erb +18 -0
- data/app/views/decidim/admin/components/_form.html.erb +0 -12
- data/app/views/decidim/admin/components/_taxonomy_filters_drawer.html.erb +2 -0
- data/app/views/decidim/admin/components/_visibility_label.html.erb +9 -0
- data/app/views/decidim/admin/components/index.html.erb +12 -14
- data/app/views/decidim/admin/components/manage_trash.html.erb +11 -0
- data/app/views/decidim/admin/moderated_users/_bulk-actions.html.erb +6 -0
- data/app/views/decidim/admin/moderated_users/bulk_actions/_block.html.erb +20 -0
- data/app/views/decidim/admin/moderated_users/bulk_actions/_dropdown.html.erb +40 -0
- data/app/views/decidim/admin/moderated_users/bulk_actions/_unblock.html.erb +20 -0
- data/app/views/decidim/admin/moderated_users/bulk_actions/_unreport.html.erb +20 -0
- data/app/views/decidim/admin/moderated_users/index.html.erb +14 -6
- data/app/views/decidim/admin/moderations/_bulk-actions.html.erb +7 -0
- data/app/views/decidim/admin/moderations/_moderation-tr.html.erb +50 -0
- data/app/views/decidim/admin/moderations/_moderations-thead.html.erb +18 -0
- data/app/views/decidim/admin/moderations/bulk_actions/_dropdown.html.erb +43 -0
- data/app/views/decidim/admin/moderations/bulk_actions/_hide.html.erb +20 -0
- data/app/views/decidim/admin/moderations/bulk_actions/_unhide.html.erb +20 -0
- data/app/views/decidim/admin/moderations/bulk_actions/_unreport.html.erb +20 -0
- data/app/views/decidim/admin/moderations/index.html.erb +13 -81
- data/app/views/decidim/admin/newsletters/confirm_recipients.html.erb +64 -0
- data/app/views/decidim/admin/newsletters/select_recipients_to_deliver.html.erb +44 -20
- data/app/views/decidim/admin/participatory_space_private_users/_form.html.erb +6 -0
- data/app/views/decidim/admin/participatory_space_private_users/edit.html.erb +19 -0
- data/app/views/decidim/admin/participatory_space_private_users/index.html.erb +15 -1
- data/app/views/decidim/admin/resource_permissions/_options_form.html.erb +5 -0
- data/app/views/decidim/admin/resource_permissions/edit.html.erb +2 -2
- data/app/views/decidim/admin/scope_types/index.html.erb +3 -0
- data/app/views/decidim/admin/scopes/index.html.erb +3 -0
- data/app/views/decidim/admin/share_tokens/_form.html.erb +52 -0
- data/app/views/decidim/admin/share_tokens/edit.html.erb +33 -0
- data/app/views/decidim/admin/share_tokens/index.html.erb +47 -0
- data/app/views/decidim/admin/share_tokens/new.html.erb +69 -0
- data/app/views/decidim/admin/taxonomies/_filters.html.erb +19 -0
- data/app/views/decidim/admin/taxonomies/_form.html.erb +5 -0
- data/app/views/decidim/admin/taxonomies/_row.html.erb +40 -0
- data/app/views/decidim/admin/taxonomies/_row_children.html.erb +8 -0
- data/app/views/decidim/admin/taxonomies/_table.html.erb +86 -0
- data/app/views/decidim/admin/taxonomies/_taxonomy_actions.html.erb +15 -0
- data/app/views/decidim/admin/taxonomies/edit.html.erb +87 -0
- data/app/views/decidim/admin/taxonomies/index.html.erb +28 -0
- data/app/views/decidim/admin/taxonomies/new.html.erb +16 -0
- data/app/views/decidim/admin/taxonomy_filters/_check_boxes.html.erb +10 -0
- data/app/views/decidim/admin/taxonomy_filters/_form.html.erb +96 -0
- data/app/views/decidim/admin/taxonomy_filters/_table.html.erb +33 -0
- data/app/views/decidim/admin/taxonomy_filters/edit.html.erb +22 -0
- data/app/views/decidim/admin/taxonomy_filters/index.html.erb +26 -0
- data/app/views/decidim/admin/taxonomy_filters/new.html.erb +32 -0
- data/app/views/decidim/admin/taxonomy_filters_selector/_check_boxes.html.erb +7 -0
- data/app/views/decidim/admin/taxonomy_filters_selector/_component_table.html.erb +25 -0
- data/app/views/decidim/admin/taxonomy_filters_selector/_taxonomies_select.html.erb +16 -0
- data/app/views/decidim/admin/taxonomy_filters_selector/index.html.erb +1 -0
- data/app/views/decidim/admin/taxonomy_filters_selector/new.html.erb +27 -0
- data/app/views/decidim/admin/taxonomy_filters_selector/show.html.erb +18 -0
- data/app/views/decidim/admin/taxonomy_items/_form.html.erb +8 -0
- data/app/views/decidim/admin/taxonomy_items/edit.html.erb +12 -0
- data/app/views/decidim/admin/taxonomy_items/new.html.erb +12 -0
- data/app/views/layouts/decidim/admin/taxonomy_filters.html.erb +17 -0
- data/app/views/layouts/decidim/admin/taxonomy_filters_selector.html.erb +10 -0
- data/config/locales/ar.yml +45 -37
- data/config/locales/bg.yml +48 -51
- data/config/locales/bs-BA.yml +1 -27
- data/config/locales/ca.yml +301 -50
- data/config/locales/cs.yml +299 -46
- data/config/locales/de.yml +301 -50
- data/config/locales/el.yml +1 -50
- data/config/locales/en.yml +301 -50
- data/config/locales/es-MX.yml +298 -47
- data/config/locales/es-PY.yml +298 -47
- data/config/locales/es.yml +298 -47
- data/config/locales/eu.yml +302 -51
- data/config/locales/fi-plain.yml +298 -47
- data/config/locales/fi.yml +298 -47
- data/config/locales/fr-CA.yml +184 -47
- data/config/locales/fr.yml +184 -47
- data/config/locales/ga-IE.yml +0 -23
- data/config/locales/gl.yml +1 -46
- data/config/locales/hu.yml +1 -51
- data/config/locales/id-ID.yml +0 -24
- data/config/locales/is-IS.yml +0 -30
- data/config/locales/it.yml +2 -46
- data/config/locales/ja.yml +299 -50
- data/config/locales/kaa.yml +0 -7
- data/config/locales/ko.yml +0 -50
- data/config/locales/lb.yml +1 -46
- data/config/locales/lt.yml +1 -50
- data/config/locales/lv.yml +1 -28
- data/config/locales/nl.yml +1 -46
- data/config/locales/no.yml +1 -46
- data/config/locales/pl.yml +3 -51
- data/config/locales/pt-BR.yml +38 -50
- data/config/locales/pt.yml +29 -49
- data/config/locales/ro-RO.yml +38 -52
- data/config/locales/ru.yml +1 -24
- data/config/locales/sk.yml +1 -28
- data/config/locales/sl.yml +0 -5
- data/config/locales/sq-AL.yml +0 -22
- data/config/locales/sr-CS.yml +1 -27
- data/config/locales/sv.yml +296 -46
- data/config/locales/th-TH.yml +0 -10
- data/config/locales/tr-TR.yml +1 -44
- data/config/locales/uk.yml +0 -23
- data/config/locales/zh-CN.yml +0 -38
- data/config/locales/zh-TW.yml +1 -50
- data/config/routes.rb +13 -12
- data/decidim-admin.gemspec +1 -1
- data/lib/decidim/admin/engine.rb +2 -1
- data/lib/decidim/admin/import/creator.rb +2 -6
- data/lib/decidim/admin/import/readers/json.rb +1 -1
- data/lib/decidim/admin/menu.rb +9 -1
- data/lib/decidim/admin/search_form_builder.rb +1 -1
- data/lib/decidim/admin/test/destroy_admin_examples.rb +2 -2
- data/lib/decidim/admin/test/filterable_examples.rb +100 -9
- data/lib/decidim/admin/test/forms/attachment_collection_form_examples.rb +1 -1
- data/lib/decidim/admin/test/forms/attachment_form_examples.rb +1 -1
- data/lib/decidim/admin/test/invite_participatory_space_admins_shared_examples.rb +2 -4
- data/lib/decidim/admin/test/manage_component_permissions_examples.rb +5 -5
- data/lib/decidim/admin/test/manage_hide_content_examples.rb +0 -1
- data/lib/decidim/admin/test/manage_moderations_examples.rb +3 -3
- data/lib/decidim/admin/test/manage_resource_soft_deletion_examples.rb +113 -0
- data/lib/decidim/admin/test/manage_taxonomy_filters_examples.rb +127 -0
- data/lib/decidim/admin/test/taxonomy_filters_examples.rb +32 -0
- data/lib/decidim/admin/test.rb +3 -1
- data/lib/decidim/admin/version.rb +1 -1
- metadata +103 -29
- data/app/commands/decidim/admin/create_category.rb +0 -15
- data/app/commands/decidim/admin/destroy_category.rb +0 -15
- data/app/commands/decidim/admin/destroy_component.rb +0 -19
- data/app/commands/decidim/admin/update_category.rb +0 -11
- data/app/controllers/decidim/admin/categories_controller.rb +0 -98
- data/app/forms/decidim/admin/category_form.rb +0 -32
- data/app/helpers/decidim/admin/resource_scope_helper.rb +0 -52
- data/app/packs/src/decidim/admin/scope_picker_enabler.component.js +0 -12
- data/app/views/decidim/admin/categories/_form.html.erb +0 -18
- data/app/views/decidim/admin/categories/edit.html.erb +0 -19
- data/app/views/decidim/admin/categories/index.html.erb +0 -65
- data/app/views/decidim/admin/categories/new.html.erb +0 -19
- data/app/views/decidim/admin/share_tokens/_share_tokens.html.erb +0 -45
- data/lib/decidim/admin/test/commands/create_category_examples.rb +0 -74
- data/lib/decidim/admin/test/commands/destroy_category_examples.rb +0 -83
- data/lib/decidim/admin/test/commands/update_category_examples.rb +0 -76
- data/lib/decidim/admin/test/forms/category_form_examples.rb +0 -70
- data/lib/decidim/admin/test/manage_categories_examples.rb +0 -128
@@ -0,0 +1,26 @@
|
|
1
|
+
<% add_decidim_page_title(t("decidim.admin.titles.taxonomy_filters", taxonomy: translated_attribute(root_taxonomy.name))) %>
|
2
|
+
|
3
|
+
<div class="card" aria-labelledby="taxonomy_filters-title">
|
4
|
+
<div class="item_show__header">
|
5
|
+
<div class="w-full">
|
6
|
+
<h1 class="item_show__header-title" id="taxonomy_filters-title">
|
7
|
+
<%= t("decidim.admin.titles.taxonomy_filters", taxonomy: translated_attribute(root_taxonomy.name)) %>
|
8
|
+
<% if allowed_to? :create, :taxonomy %>
|
9
|
+
<%= link_to t(".new_filter"), new_taxonomy_filter_path(root_taxonomy), class: "button button__sm button__secondary new" %>
|
10
|
+
<% end %>
|
11
|
+
</h1>
|
12
|
+
|
13
|
+
<p class="mt-2 text-gray-600">
|
14
|
+
<%= t(".description") %>
|
15
|
+
</p>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div class="card-section p-4">
|
20
|
+
<% if collection.any? %>
|
21
|
+
<%= render "decidim/admin/taxonomy_filters/table" %>
|
22
|
+
<% else %>
|
23
|
+
<p><%= t(".empty") %></p>
|
24
|
+
<% end %>
|
25
|
+
</div>
|
26
|
+
</div>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<% add_decidim_page_title(t(".title")) %>
|
2
|
+
|
3
|
+
<div class="item_show__header">
|
4
|
+
<h1 class="item_show__header-title">
|
5
|
+
<%= t(".title") %>
|
6
|
+
<%= link_to :back, class: "button button__transparent-secondary button__sm" do %>
|
7
|
+
<%= t(".back") %>
|
8
|
+
<% end %>
|
9
|
+
</h1>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<div class="item__edit-form">
|
13
|
+
<%= decidim_form_for(@form, url: taxonomy_filters_path(root_taxonomy), html: { class: "form form-defaults new_taxonomy_filter_" }) do |f| %>
|
14
|
+
<%= render partial: "decidim/admin/taxonomy_filters/form", object: f %>
|
15
|
+
|
16
|
+
<div class="item__edit-sticky">
|
17
|
+
<div class="item__edit-sticky-container">
|
18
|
+
<%= f.submit t(".create"), class: "button button__sm button__secondary" %>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
<% end %>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<script>
|
25
|
+
document.addEventListener("DOMContentLoaded", function() {
|
26
|
+
var selectAll = document.querySelector("[name='selectAll']");
|
27
|
+
|
28
|
+
// check all checkboxes on load
|
29
|
+
selectAll.checked = true;
|
30
|
+
selectAll.dispatchEvent(new Event("change"));
|
31
|
+
});
|
32
|
+
</script>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<% taxonomy_items_options_for_filter(taxonomy_filter).each do |text, id| %>
|
2
|
+
<div class="ml-4">
|
3
|
+
<%= label_tag("checkbox-taxonomy-#{id}", style: "padding-left: #{text.split(" ").count / 5}em") do
|
4
|
+
check_box_tag("checkbox-taxonomy-#{id}", id, true, autocomplete: false, disabled: true) + text.gsub(" ", "")
|
5
|
+
end %>
|
6
|
+
</div>
|
7
|
+
<% end %>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<table class="table-list w-full my-4">
|
2
|
+
<thead>
|
3
|
+
<tr>
|
4
|
+
<th><%= t("decidim.admin.taxonomy_filters.table.name") %></th>
|
5
|
+
<th><%= t("decidim.admin.taxonomy_filters.table.internal_name") %></th>
|
6
|
+
<th class="w-16"><%= t("decidim.admin.taxonomy_filters.table.actions") %></th>
|
7
|
+
</tr>
|
8
|
+
</thead>
|
9
|
+
<tbody>
|
10
|
+
<% component.available_taxonomy_filters.each do |taxonomy_filter| %>
|
11
|
+
<%= hidden_field_tag(field_name, taxonomy_filter.id) %>
|
12
|
+
<tr>
|
13
|
+
<td><%= taxonomy_filter.translated_name %></td>
|
14
|
+
<td><%= taxonomy_filter.translated_internal_name %></td>
|
15
|
+
<td>
|
16
|
+
<%= icon_link_to("pencil-line",
|
17
|
+
decidim_admin.taxonomy_filters_selector_path(component_id: component.id, taxonomy_id: taxonomy_filter.root_taxonomy_id, taxonomy_filter_id: taxonomy_filter.id),
|
18
|
+
t("decidim.admin.taxonomy_filters.table.edit"),
|
19
|
+
class: "js-edit-taxonomy-filter",
|
20
|
+
data: { drawer: "taxonomy_filters-dialog" }) %>
|
21
|
+
</td>
|
22
|
+
</tr>
|
23
|
+
<% end %>
|
24
|
+
</tbody>
|
25
|
+
</table>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<%= form_with url: new_taxonomy_filters_selector_path, method: :get, local: false, id: "select-taxonomy-filter-form" do |form| %>
|
2
|
+
<div class="form__wrapper">
|
3
|
+
<%= hidden_field_tag :component_id, component.id %>
|
4
|
+
<div class="item__edit-form js-drawer-taxonomy-select">
|
5
|
+
<%= label_tag("available-taxonomies-filter", t(".taxonomies")) %>
|
6
|
+
<%= select_tag "taxonomy_id", options_from_collection_for_select(current_organization.taxonomies.roots, "id", "translated_name", root_taxonomy&.id), include_blank: t(".select_taxonomy") %>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<% if root_taxonomy %>
|
10
|
+
<div class="item__edit-form js-drawer-filter-select">
|
11
|
+
<%= label_tag("available-filters-filter", t(".filters")) %>
|
12
|
+
<%= select_tag "taxonomy_filter_id", options_from_collection_for_select(root_taxonomy.taxonomy_filters, "id", "translated_internal_name", taxonomy_filter&.id), include_blank: t(".select_filter") %>
|
13
|
+
</div>
|
14
|
+
<% end %>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render "decidim/admin/taxonomy_filters_selector/taxonomies_select" %>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<% content_for(:action_buttons) do %>
|
2
|
+
<% if taxonomy_filter %>
|
3
|
+
<%= button_tag class: "button button__secondary button__sm", id: "save-taxonomy-filter" do %>
|
4
|
+
<%= t(".save") %>
|
5
|
+
<% end %>
|
6
|
+
<% end %>
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<%= render "decidim/admin/taxonomy_filters_selector/taxonomies_select" %>
|
10
|
+
|
11
|
+
<%= form_with url: taxonomy_filters_selector_index_path, method: :post, local: false, id: "save-taxonomy-filter-form" do |form| %>
|
12
|
+
<%= hidden_field_tag :component_id, component.id %>
|
13
|
+
<%= hidden_field_tag :taxonomy_id, root_taxonomy&.id %>
|
14
|
+
<%= hidden_field_tag :taxonomy_filter_id, taxonomy_filter&.id %>
|
15
|
+
|
16
|
+
<% if taxonomy_filter %>
|
17
|
+
<div class="card">
|
18
|
+
<h3 class="mb-4">
|
19
|
+
<strong><%= taxonomy_filter.translated_name %></strong>
|
20
|
+
<span class="float-right"><%= t(".items_count", count: taxonomy_filter.filter_items_count) %></span>
|
21
|
+
</h3>
|
22
|
+
<%= render "decidim/admin/taxonomy_filters_selector/check_boxes", collection: taxonomy_filter.taxonomies %>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<%= cell("decidim/announcement", t(".add_new_items_html", url: decidim_admin.taxonomy_filters_path(taxonomy_id: root_taxonomy, taxonomy_filter_id: taxonomy_filter))) %>
|
26
|
+
<% end %>
|
27
|
+
<% end %>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<% content_for(:action_buttons) do %>
|
2
|
+
<% if taxonomy_filter %>
|
3
|
+
<%= 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 %>
|
4
|
+
<%= t(".remove") %>
|
5
|
+
<% end %>
|
6
|
+
<% end %>
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<h3 class="text-lg my-4"><%= root_taxonomy.translated_name %></h3>
|
10
|
+
<h4 class="text-xl my-4"><%= taxonomy_filter.translated_internal_name %></h4>
|
11
|
+
|
12
|
+
<div class="card">
|
13
|
+
<h3 class="mb-4">
|
14
|
+
<strong><%= taxonomy_filter.translated_name %></strong>
|
15
|
+
<span class="float-right"><%= t(".items_count", count: taxonomy_filter.filter_items_count) %></span>
|
16
|
+
</h3>
|
17
|
+
<%= render "decidim/admin/taxonomy_filters_selector/check_boxes", collection: taxonomy_filter.taxonomies %>
|
18
|
+
</div>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<%= display_flash_messages %>
|
2
|
+
|
3
|
+
<div class="row column">
|
4
|
+
<%= form.translated :text_field, :item_name, autofocus: true, class: "js-hashtags", hashtaggable: true, aria: { label: :name } %>
|
5
|
+
</div>
|
6
|
+
<div class="row column">
|
7
|
+
<%= form.select :parent_id, options_for_select(parent_options, selected: selected_parent_id), {} %>
|
8
|
+
</div>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<div class="form__wrapper">
|
2
|
+
<div class="item__edit-form">
|
3
|
+
<%= 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| %>
|
4
|
+
<h1>
|
5
|
+
<%= t ".title", taxonomy: translated_attribute(taxonomy.name) %>
|
6
|
+
<%= f.submit t(".update"), class: "button button__sm button__secondary" %>
|
7
|
+
</h1>
|
8
|
+
|
9
|
+
<%= render partial: "form", object: f %>
|
10
|
+
<% end %>
|
11
|
+
</div>
|
12
|
+
</div>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<div class="form__wrapper">
|
2
|
+
<div class="item__edit-form">
|
3
|
+
<%= decidim_form_for(@form, url: taxonomy_items_path(taxonomy), remote: true, html: { id: "taxonomy-item-form", class: "form-defaults form new_taxonomy_" }) do |f| %>
|
4
|
+
<h1>
|
5
|
+
<%= t ".title", taxonomy: translated_attribute(taxonomy.name) %>
|
6
|
+
<%= f.submit t(".create"), class: "button button__sm button__secondary" %>
|
7
|
+
</h1>
|
8
|
+
|
9
|
+
<%= render partial: "form", object: f %>
|
10
|
+
<% end %>
|
11
|
+
</div>
|
12
|
+
</div>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<% content_for :breadcrumb_context_menu do %>
|
2
|
+
<div class="process-title-content-breadcrumb-container-right">
|
3
|
+
<% if allowed_to? :create, :taxonomy_filter %>
|
4
|
+
<%= link_to url_for(action: :new, controller: params[:controller]), class: "button button__sm button__transparent process-title-content-breadcrumb-container-right-link" do %>
|
5
|
+
<%= icon "add-line", class: "w-4 h-4" %>
|
6
|
+
<span>
|
7
|
+
<%= t("actions.new_taxonomy_filter", scope: "decidim.admin.taxonomy_filters") %>
|
8
|
+
</span>
|
9
|
+
<% end %>
|
10
|
+
<% end %>
|
11
|
+
<%= render partial: breadcrumb_manage_partial if breadcrumb_manage_partial.present? %>
|
12
|
+
</div>
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<%= render "layouts/decidim/admin/application" do %>
|
16
|
+
<%= yield %>
|
17
|
+
<% end %>
|
data/config/locales/ar.yml
CHANGED
@@ -106,6 +106,8 @@ ar:
|
|
106
106
|
participatory_space_private_user:
|
107
107
|
email: البريد الإلكتروني
|
108
108
|
name: الإسم
|
109
|
+
participatory_space_private_user_csv_import:
|
110
|
+
file: ملف
|
109
111
|
scope:
|
110
112
|
code: الشفرة
|
111
113
|
name: الاسم
|
@@ -183,8 +185,13 @@ ar:
|
|
183
185
|
attachment_collection:
|
184
186
|
new: مجلد مرفقات جديد
|
185
187
|
browse: تصفح
|
186
|
-
|
187
|
-
|
188
|
+
confirm_delete_component: |
|
189
|
+
هل أنت متأكد من أنك تريد حذف هذا العنصر؟<br>
|
190
|
+
يحتوي هذا المكون على:<br>
|
191
|
+
<ul class="list-disc ml-6 my-2">
|
192
|
+
<li class="font-bold">%{resources_count} مصادر</li>
|
193
|
+
</ul>
|
194
|
+
يمكنك استعادة العنصر إذا غيرت رأيك لاحقاً.
|
188
195
|
export: تصدير الكل
|
189
196
|
export-selection: تصدير الإختيار
|
190
197
|
import: استيراد
|
@@ -267,23 +274,8 @@ ar:
|
|
267
274
|
justification: المبرر
|
268
275
|
title: حظر المستخدم %{name}
|
269
276
|
categories:
|
270
|
-
create:
|
271
|
-
error: كانت هناك مشكلة في إنشاء هذه الفئة.
|
272
|
-
success: تم إنشاء الفئة بنجاح.
|
273
|
-
destroy:
|
274
|
-
error: حدثت مشكلة في حذف هذه الفئة. يرجى حذف أي فئة فرعية أولاً ، تأكد من عدم وجود كيان آخر ينتمي إلى هذه الفئة وحاول مرة أخرى.
|
275
|
-
success: تم حذف الفئة بنجاح.
|
276
|
-
edit:
|
277
|
-
title: تحرير الفئة
|
278
|
-
update: تحديث
|
279
277
|
index:
|
280
278
|
categories_title: الاقسام
|
281
|
-
new:
|
282
|
-
create: إنشاء فئة
|
283
|
-
title: فئة جديدة
|
284
|
-
update:
|
285
|
-
error: حدثت مشكلة أثناء تحديث هذه الفئة.
|
286
|
-
success: تم تحديث الفئة بنجاح.
|
287
279
|
component_permissions:
|
288
280
|
update:
|
289
281
|
success: تم تحديث الأذونات بنجاح.
|
@@ -291,9 +283,6 @@ ar:
|
|
291
283
|
create:
|
292
284
|
error: حدثت مشكلة أثناء إنشاء هذا المكون.
|
293
285
|
success: مكون تم إنشاؤه بنجاح.
|
294
|
-
destroy:
|
295
|
-
error: حدثت مشكلة أثناء تدمير هذا المكون.
|
296
|
-
success: تم حذف المكون بنجاح.
|
297
286
|
edit:
|
298
287
|
title: تحرير المكون
|
299
288
|
update: تحديث
|
@@ -306,7 +295,6 @@ ar:
|
|
306
295
|
headers:
|
307
296
|
actions: أفعال
|
308
297
|
name: اسم المكون
|
309
|
-
scope: مجال المكون
|
310
298
|
type: نوع المكون
|
311
299
|
new:
|
312
300
|
add: إضافة عنصر
|
@@ -347,8 +335,6 @@ ar:
|
|
347
335
|
FormPDF: ملف (PDF)
|
348
336
|
JSON: ملفات بصيغة (JSON)
|
349
337
|
filters:
|
350
|
-
category_id_eq:
|
351
|
-
label: الفئة
|
352
338
|
filter_label: تصفية
|
353
339
|
invitation_accepted_at_present:
|
354
340
|
label: تم قبول الدعوة
|
@@ -396,8 +382,6 @@ ar:
|
|
396
382
|
values:
|
397
383
|
'false': تم نشره
|
398
384
|
'true': لم يُنشَر
|
399
|
-
scope_id_eq:
|
400
|
-
label: المجال
|
401
385
|
search_label: بحث
|
402
386
|
search_placeholder:
|
403
387
|
name_or_nickname_or_email_cont: البحث عن %{collection} بحسب عنوان البريد الإكتروني أو الإسم أو الإسم المستعار.
|
@@ -551,10 +535,8 @@ ar:
|
|
551
535
|
plural: جمع
|
552
536
|
share_token:
|
553
537
|
fields:
|
554
|
-
|
538
|
+
actions: الإجراءات
|
555
539
|
expires_at: تنتهي صلاحيته في
|
556
|
-
token: رمز التشفير - Token
|
557
|
-
user: تم الإنشاء بواسطة
|
558
540
|
static_page:
|
559
541
|
fields:
|
560
542
|
created_at: أنشئت في
|
@@ -583,6 +565,8 @@ ar:
|
|
583
565
|
index:
|
584
566
|
actions:
|
585
567
|
block: حظر مستخدم
|
568
|
+
bulk_actions:
|
569
|
+
actions_dropdown: الإجراءات
|
586
570
|
title: الإجراءات
|
587
571
|
unblock: إلغاء حظر المستخدم
|
588
572
|
unreport: إلغاء التبليغ
|
@@ -597,6 +581,11 @@ ar:
|
|
597
581
|
tabs:
|
598
582
|
blocked: محظور
|
599
583
|
moderations:
|
584
|
+
index:
|
585
|
+
actions:
|
586
|
+
actions_dropdown: الإجراءات
|
587
|
+
hide:
|
588
|
+
title: إخفاء
|
600
589
|
report:
|
601
590
|
reasons:
|
602
591
|
does_not_belong: لا ينتمي
|
@@ -609,11 +598,19 @@ ar:
|
|
609
598
|
reported_content: محتوى تم الإبلاغ عنه
|
610
599
|
show:
|
611
600
|
report_reason: السبب
|
601
|
+
new_import:
|
602
|
+
accepted_mime_types:
|
603
|
+
csv: CSV
|
604
|
+
json: JSON
|
605
|
+
xlsx: XLSX
|
612
606
|
newsletter_templates:
|
613
607
|
index:
|
614
608
|
preview_template: معاينة
|
615
609
|
title: نماذج النشرة الإخبارية
|
616
610
|
newsletters:
|
611
|
+
confirm_recipients:
|
612
|
+
email: البريد الإلكتروني
|
613
|
+
name: الإسم
|
617
614
|
create:
|
618
615
|
error: كانت هناك مشكلة في إنشاء هذه الرسالة الإخبارية.
|
619
616
|
deliver:
|
@@ -632,7 +629,6 @@ ar:
|
|
632
629
|
confirm_delete: هل أنت متأكد من أنك تريد حذف هذه الرسالة الإخبارية؟
|
633
630
|
followers: 'مُتابِعون '
|
634
631
|
has_been_sent_to: 'تم إرسالها إلى: '
|
635
|
-
no_scopes: لا توجد مجالات
|
636
632
|
not_sent: غير مرسَلة
|
637
633
|
participants: 'مشاركون '
|
638
634
|
segmented_to: 'مقسمه إلى %{subject}: '
|
@@ -645,9 +641,7 @@ ar:
|
|
645
641
|
all_spaces: الكل
|
646
642
|
confirm_deliver: هل أنت متأكد من أنك تريد تسليم هذه الرسالة الإخبارية؟ لا يمكن التراجع عن هذا الإجراء.
|
647
643
|
deliver: تسليم النشرة الإخبارية
|
648
|
-
|
649
|
-
scopes_help: إرسال النشرة الإخبارية للمستخدمين الذين لديهم أي من المجالات المحددة تم تفعيله في إعدادات "اهتماماتي" لحسابهم.
|
650
|
-
select_scopes: أختر للمستخدمين الذين فعلوا أي مجال محدد في إعدادات أهتماماتي لحساباتهم.
|
644
|
+
send_to_all_users: إرسال إلى كافة المستخدمين
|
651
645
|
title: حدد المستلمين للإرسال اليهم
|
652
646
|
warning: "<strong>تنبيه:</strong> سيتم إرسال هذه النشرة الإخبارية فقط للمستخدمين الذين فعلوا <em>أريد تلقي النشرات الإخبارية</em> في إعدادات الإشعارات الخاصة بهم."
|
653
647
|
show:
|
@@ -742,10 +736,6 @@ ar:
|
|
742
736
|
title: تعديل الترخيصات
|
743
737
|
update:
|
744
738
|
success: تم تحديث الأذونات بنجاح.
|
745
|
-
resources:
|
746
|
-
index:
|
747
|
-
headers:
|
748
|
-
scope: المجال
|
749
739
|
scope_types:
|
750
740
|
create:
|
751
741
|
error: حدثت مشكلة أثناء إنشاء نوع مجال جديد.
|
@@ -777,8 +767,14 @@ ar:
|
|
777
767
|
success: تم تحديث المجال بنجاح
|
778
768
|
share_tokens:
|
779
769
|
actions:
|
770
|
+
copy_link: نسخ الرابط
|
780
771
|
destroy: حذف
|
781
|
-
|
772
|
+
edit: تعديل
|
773
|
+
preview: معاينة
|
774
|
+
form:
|
775
|
+
'true': 'نعم'
|
776
|
+
new:
|
777
|
+
create: إنشاء
|
782
778
|
shared:
|
783
779
|
gallery:
|
784
780
|
add_images: إضافة صور
|
@@ -818,6 +814,18 @@ ar:
|
|
818
814
|
without_topic: صفحات بدون موضوع
|
819
815
|
update:
|
820
816
|
error: حدثت مشكلة أثناء تحديث هذه الصفحة.
|
817
|
+
taxonomies:
|
818
|
+
actions:
|
819
|
+
actions: الإجراءات
|
820
|
+
name: الإسم
|
821
|
+
taxonomy_filters:
|
822
|
+
table:
|
823
|
+
actions: الإجراءات
|
824
|
+
destroy: حذف
|
825
|
+
edit: تعديل
|
826
|
+
taxonomy_filters_selector:
|
827
|
+
new:
|
828
|
+
save: حفظ
|
821
829
|
titles:
|
822
830
|
admin_log: سجل المسؤول
|
823
831
|
area_types: أنواع المناطق
|