decidim-decidim_awesome 0.10.3 → 0.11.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-decidim_awesome might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -5
- data/README.md +65 -67
- data/app/cells/concerns/decidim/decidim_awesome/global_menu_cell_override.rb +20 -0
- data/app/cells/concerns/decidim/decidim_awesome/proposal_l_cell_override.rb +44 -0
- data/app/cells/decidim/decidim_awesome/content_blocks/map/show.erb +5 -12
- data/app/cells/decidim/decidim_awesome/voting/proposal_metadata_cell.rb +54 -0
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal/modal.erb +18 -0
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal/show.erb +37 -32
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal_cell.rb +9 -4
- data/app/commands/concerns/decidim/decidim_awesome/admin/needs_constraint_helpers.rb +1 -1
- data/app/commands/concerns/decidim/decidim_awesome/proposals/create_proposal_override.rb +2 -2
- data/app/commands/concerns/decidim/decidim_awesome/proposals/update_proposal_override.rb +2 -2
- data/app/commands/decidim/decidim_awesome/admin/create_constraint.rb +1 -1
- data/app/commands/decidim/decidim_awesome/admin/destroy_custom_redirect.rb +1 -1
- data/app/commands/decidim/decidim_awesome/admin/destroy_menu_hack.rb +1 -1
- data/app/commands/decidim/decidim_awesome/admin/rename_scope_label.rb +1 -1
- data/app/commands/decidim/decidim_awesome/admin/update_constraint.rb +1 -1
- data/app/commands/decidim/decidim_awesome/admin/update_custom_redirect.rb +2 -2
- data/app/commands/decidim/decidim_awesome/command.rb +1 -7
- data/app/controllers/concerns/decidim/decidim_awesome/admin/maintenance_context.rb +1 -1
- data/app/controllers/concerns/decidim/decidim_awesome/admin_accountability/admin/filterable_helper.rb +3 -4
- data/app/controllers/concerns/decidim/decidim_awesome/content_security_policy.rb +34 -0
- data/app/controllers/concerns/decidim/decidim_awesome/not_found_redirect.rb +1 -1
- data/app/controllers/concerns/decidim/decidim_awesome/proposals/orderable_override.rb +22 -9
- data/app/controllers/concerns/decidim/decidim_awesome/proposals/proposal_votes_controller_override.rb +3 -3
- data/app/controllers/decidim/decidim_awesome/admin/admin_accountability_controller.rb +7 -7
- data/app/controllers/decidim/decidim_awesome/admin/checks_controller.rb +7 -7
- data/app/controllers/decidim/decidim_awesome/admin/config_controller.rb +8 -10
- data/app/controllers/decidim/decidim_awesome/admin/constraints_controller.rb +20 -19
- data/app/controllers/decidim/decidim_awesome/admin/custom_redirects_controller.rb +6 -8
- data/app/controllers/decidim/decidim_awesome/admin/maintenance_controller.rb +2 -2
- data/app/controllers/decidim/decidim_awesome/admin/menu_hacks_controller.rb +6 -8
- data/app/controllers/decidim/decidim_awesome/admin/proposal_custom_fields_controller.rb +2 -2
- data/app/controllers/decidim/decidim_awesome/admin/scoped_admins_controller.rb +2 -2
- data/app/controllers/decidim/decidim_awesome/admin/scoped_styles_controller.rb +2 -2
- data/app/controllers/decidim/decidim_awesome/blank_component_controller.rb +8 -3
- data/app/controllers/decidim/decidim_awesome/editor_images_controller.rb +3 -3
- data/app/controllers/decidim/decidim_awesome/iframe_component/iframe_controller.rb +11 -5
- data/app/forms/concerns/decidim/decidim_awesome/proposals/proposal_wizard_create_step_form_override.rb +1 -1
- data/app/forms/decidim/decidim_awesome/admin/config_form.rb +13 -25
- data/app/forms/decidim/decidim_awesome/admin/custom_redirect_form.rb +2 -2
- data/app/forms/decidim/decidim_awesome/admin/intergram_form.rb +4 -0
- data/app/forms/decidim/decidim_awesome/admin/menu_form.rb +4 -4
- data/app/helpers/concerns/decidim/decidim_awesome/amendments_helper_override.rb +8 -1
- data/app/helpers/concerns/decidim/decidim_awesome/breadcrumb_helper_override.rb +23 -0
- data/app/helpers/concerns/decidim/decidim_awesome/proposals/application_helper_override.rb +23 -39
- data/app/helpers/decidim/decidim_awesome/admin/config_constraints_helpers.rb +2 -2
- data/app/helpers/decidim/decidim_awesome/map_helper.rb +8 -27
- data/app/jobs/decidim/decidim_awesome/migrate_legacy_images_job.rb +5 -4
- data/app/middleware/decidim/decidim_awesome/current_config.rb +3 -5
- data/app/models/concerns/decidim/decidim_awesome/has_proposal_extra_fields.rb +1 -1
- data/app/models/decidim/decidim_awesome/awesome_config.rb +1 -1
- data/app/models/decidim/decidim_awesome/paper_trail_version.rb +4 -8
- data/app/models/decidim/decidim_awesome/proposal_extra_field.rb +1 -1
- data/app/models/decidim/decidim_awesome/vote_weight.rb +2 -2
- data/app/overrides/decidim/proposals/proposals/{show → _proposal_aside}/limit_amendments_modal.html.erb.deface +1 -1
- data/app/overrides/decidim/proposals/proposals/_vote_button/replace_vote_button.html.erb.deface +1 -1
- data/app/overrides/layouts/decidim/_decidim_javascript/add_awesome_tags.html.erb.deface +6 -0
- data/app/overrides/layouts/decidim/_head/add_awesome_tags.html.erb.deface +4 -11
- data/app/overrides/layouts/decidim/admin/_header/{replace_scripts.html.erb.deface → add_awesome_tags.html.erb.deface} +4 -4
- data/app/packs/entrypoints/decidim_admin_decidim_awesome.js +1 -2
- data/app/packs/entrypoints/decidim_admin_decidim_awesome_global.js +4 -0
- data/app/packs/entrypoints/decidim_admin_decidim_awesome_global.scss +1 -0
- data/app/packs/entrypoints/decidim_decidim_awesome.js +2 -2
- data/app/packs/entrypoints/decidim_editor.js +14 -0
- data/app/packs/src/decidim/decidim_awesome/admin/auto_edit.js +95 -70
- data/app/packs/src/decidim/decidim_awesome/admin/check_redirections.js +46 -41
- data/app/packs/src/decidim/decidim_awesome/admin/codemirror.js +3 -3
- data/app/packs/src/decidim/decidim_awesome/admin/constraint_form_events.js +115 -0
- data/app/packs/src/decidim/decidim_awesome/admin/custom_fields_builder.js +4 -1
- data/app/packs/src/decidim/decidim_awesome/admin/form_exit_warn.js +22 -11
- data/app/packs/src/decidim/decidim_awesome/admin/proposal_sortings.js +26 -8
- data/app/packs/src/decidim/decidim_awesome/admin/user_picker.js +34 -21
- data/app/packs/src/decidim/decidim_awesome/amendments/show_modal_on_limits.js +20 -22
- data/app/packs/src/decidim/decidim_awesome/awesome_admin.js +5 -16
- data/app/packs/src/decidim/decidim_awesome/awesome_admin_global.js +1 -0
- data/app/packs/src/decidim/decidim_awesome/awesome_application.js +0 -15
- data/app/packs/src/decidim/decidim_awesome/awesome_map/api/fetcher.js +33 -11
- data/app/packs/src/decidim/decidim_awesome/awesome_map/api/meetings_fetcher.js +9 -12
- data/app/packs/src/decidim/decidim_awesome/awesome_map/api/proposals_fetcher.js +28 -0
- data/app/packs/src/decidim/decidim_awesome/awesome_map/awesome_map.js +3 -4
- data/app/packs/src/decidim/decidim_awesome/awesome_map/controllers/controller.js +12 -12
- data/app/packs/src/decidim/decidim_awesome/awesome_map/controllers/meetings_controller.js +11 -7
- data/app/packs/src/decidim/decidim_awesome/awesome_map/controllers/proposals_controller.js +6 -13
- data/app/packs/src/decidim/decidim_awesome/awesome_map/controls_ui.js +51 -20
- data/app/packs/src/decidim/decidim_awesome/awesome_map/load_map.js +27 -18
- data/app/packs/src/decidim/decidim_awesome/editor/index.js +94 -0
- data/app/packs/src/decidim/decidim_awesome/forms/autosave.js +28 -23
- data/app/packs/src/decidim/decidim_awesome/forms/custom_fields_renderer.js +9 -14
- data/app/packs/src/decidim/decidim_awesome/forms/rich_text_plugin.js +27 -32
- data/app/packs/src/decidim/decidim_awesome/proposals/images.js +16 -10
- data/app/packs/src/decidim/decidim_awesome/voting/voting_cards.js +47 -38
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/auto_edits.scss +11 -12
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/check_redirections.scss +15 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/codemirror.scss +19 -12
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/constraints.scss +8 -32
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/custom_fields.scss +28 -78
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/custom_styles.scss +48 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/intergram_fixes.scss +11 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/admin/user_picker.scss +15 -24
- data/app/packs/stylesheets/decidim/decidim_awesome/amendments/modal.scss +5 -0
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_admin.scss +9 -47
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_admin_global.scss +3 -12
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_application.scss +3 -19
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_iframe/iframe.scss +1 -1
- data/app/packs/stylesheets/decidim/decidim_awesome/awesome_map/map.scss +27 -21
- data/app/packs/stylesheets/decidim/decidim_awesome/forms/autosave.scss +6 -6
- data/app/packs/stylesheets/decidim/decidim_awesome/forms/custom_fields.scss +32 -101
- data/app/packs/stylesheets/decidim/decidim_awesome/shared/spinner.scss +5 -26
- data/app/packs/stylesheets/decidim/decidim_awesome/voting/voting_cards.scss +34 -52
- data/app/permissions/decidim/decidim_awesome/permissions.rb +3 -4
- data/app/presenters/concerns/decidim/decidim_awesome/breadcrumb_root_menu_item_presenter_override.rb +23 -0
- data/app/presenters/concerns/decidim/decidim_awesome/menu_item_presenter_override.rb +10 -2
- data/app/presenters/concerns/decidim/decidim_awesome/menu_presenter_override.rb +8 -0
- data/app/presenters/decidim/decidim_awesome/participatory_space_role_presenter.rb +1 -1
- data/app/presenters/decidim/decidim_awesome/private_data_presenter.rb +11 -11
- data/app/presenters/decidim/decidim_awesome/user_entity_presenter.rb +1 -1
- data/app/queries/decidim/decidim_awesome/private_data_finder.rb +1 -1
- data/app/serializers/decidim/decidim_awesome/proposals/private_proposal_serializer.rb +0 -8
- data/app/views/decidim/decidim_awesome/admin/admin_accountability/index.html.erb +23 -17
- data/app/views/decidim/decidim_awesome/admin/checks/index.html.erb +1 -3
- data/app/views/decidim/decidim_awesome/admin/config/_autoedit_box_label.html.erb +3 -3
- data/app/views/decidim/decidim_awesome/admin/config/_constraints.html.erb +20 -21
- data/app/views/decidim/decidim_awesome/admin/config/_form_admins.html.erb +6 -5
- data/app/views/decidim/decidim_awesome/admin/config/_form_editors.html.erb +2 -2
- data/app/views/decidim/decidim_awesome/admin/config/_form_livechat.html.erb +39 -23
- data/app/views/decidim/decidim_awesome/admin/config/_form_proposal_custom_fields.html.erb +4 -6
- data/app/views/decidim/decidim_awesome/admin/config/_form_proposals.html.erb +64 -76
- data/app/views/decidim/decidim_awesome/admin/config/_form_styles.html.erb +15 -11
- data/app/views/decidim/decidim_awesome/admin/config/_form_surveys.html.erb +8 -6
- data/app/views/decidim/decidim_awesome/admin/config/show.html.erb +22 -12
- data/app/views/decidim/decidim_awesome/admin/constraints/_form.html.erb +1 -49
- data/app/views/decidim/decidim_awesome/admin/constraints/new.html.erb +14 -9
- data/app/views/decidim/decidim_awesome/admin/constraints/show.html.erb +14 -9
- data/app/views/decidim/decidim_awesome/admin/custom_redirects/_form.html.erb +20 -5
- data/app/views/decidim/decidim_awesome/admin/custom_redirects/edit.html.erb +5 -5
- data/app/views/decidim/decidim_awesome/admin/custom_redirects/index.html.erb +15 -15
- data/app/views/decidim/decidim_awesome/admin/custom_redirects/new.html.erb +5 -5
- data/app/views/decidim/decidim_awesome/admin/maintenance/_private_data.html.erb +4 -4
- data/app/views/decidim/decidim_awesome/admin/menu_hacks/_form.html.erb +6 -6
- data/app/views/decidim/decidim_awesome/admin/menu_hacks/edit.html.erb +21 -12
- data/app/views/decidim/decidim_awesome/admin/menu_hacks/index.html.erb +16 -18
- data/app/views/decidim/decidim_awesome/admin/menu_hacks/new.html.erb +21 -12
- data/app/views/decidim/decidim_awesome/admin/shared/_filters_with_date.html.erb +14 -18
- data/app/views/decidim/decidim_awesome/amendments/_modal.html.erb +18 -11
- data/app/views/decidim/decidim_awesome/custom_fields/_form_render.html.erb +3 -5
- data/app/views/decidim/decidim_awesome/iframe_component/iframe/show.html.erb +7 -12
- data/app/views/decidim/decidim_awesome/map_component/map/_map_template.html.erb +53 -37
- data/app/views/decidim/decidim_awesome/map_component/map/show.html.erb +14 -5
- data/app/views/decidim/decidim_awesome/voting/voting_cards/_show_vote_button.html.erb +0 -3
- data/app/views/layouts/decidim/decidim_awesome/_awesome_config.html.erb +9 -7
- data/app/views/layouts/decidim/decidim_awesome/_intergram_widget.html.erb +9 -6
- data/app/views/layouts/decidim/decidim_awesome/admin/_base.html.erb +3 -12
- data/config/assets.rb +3 -33
- data/config/i18n-tasks.yml +1 -0
- data/config/locales/ca.yml +17 -94
- data/config/locales/cs.yml +15 -93
- data/config/locales/de.yml +15 -91
- data/config/locales/en.yml +24 -28
- data/config/locales/es.yml +18 -96
- data/config/locales/eu.yml +8 -18
- data/config/locales/fr.yml +15 -94
- data/config/locales/hu.yml +4 -18
- data/config/locales/it.yml +9 -26
- data/config/locales/ja.yml +16 -93
- data/config/locales/lt.yml +2 -4
- data/config/locales/nl.yml +8 -18
- data/config/locales/pt-BR.yml +11 -25
- data/config/locales/ro-RO.yml +2 -14
- data/config/locales/sv.yml +10 -21
- data/config/rubocop/disabled.yml +11 -0
- data/config/rubocop/faker.yml +480 -0
- data/config/rubocop/rails.yml +88 -0
- data/config/rubocop/rspec.yml +65 -0
- data/config/rubocop/ruby.yml +1210 -0
- data/db/migrate/20240306175331_rename_editor_images_awesome_config.rb +18 -0
- data/db/migrate/20240729164227_add_decidim_awesome_proposal_private_fields_date.rb +1 -1
- data/db/seeds.rb +3 -3
- data/lib/decidim/decidim_awesome/admin_engine.rb +4 -1
- data/lib/decidim/decidim_awesome/api/types/translated_custom_fields_type.rb +2 -3
- data/lib/decidim/decidim_awesome/awesome.rb +42 -28
- data/lib/decidim/decidim_awesome/awesome_helpers.rb +1 -1
- data/lib/decidim/decidim_awesome/checksums.yml +39 -60
- data/lib/decidim/decidim_awesome/config.rb +1 -1
- data/lib/decidim/decidim_awesome/custom_fields.rb +5 -5
- data/lib/decidim/decidim_awesome/engine.rb +24 -6
- data/lib/decidim/decidim_awesome/iframe_component/component.rb +1 -2
- data/lib/decidim/decidim_awesome/lock.rb +2 -2
- data/lib/decidim/decidim_awesome/map_component/component.rb +1 -1
- data/lib/decidim/decidim_awesome/menu.rb +33 -14
- data/lib/decidim/decidim_awesome/menu_hacker.rb +4 -8
- data/lib/decidim/decidim_awesome/system_checker.rb +2 -4
- data/lib/decidim/decidim_awesome/test/factories.rb +10 -10
- data/lib/decidim/decidim_awesome/test/initializer.rb +3 -11
- data/lib/decidim/decidim_awesome/test/layouts/decidim/_head.html.erb +2 -2
- data/lib/decidim/decidim_awesome/test/layouts/decidim/admin/_header.html.erb +2 -2
- data/lib/decidim/decidim_awesome/test/shared_examples/box_label_editor_examples.rb +18 -18
- data/lib/decidim/decidim_awesome/test/shared_examples/config_examples.rb +3 -3
- data/lib/decidim/decidim_awesome/test/shared_examples/custom_fields_examples.rb +11 -11
- data/lib/decidim/decidim_awesome/test/shared_examples/custom_redirects_contexts.rb +7 -7
- data/lib/decidim/decidim_awesome/test/shared_examples/editor_examples.rb +26 -66
- data/lib/decidim/decidim_awesome/test/shared_examples/menu_hack_contexts.rb +10 -9
- data/lib/decidim/decidim_awesome/test/shared_examples/scoped_admins_examples.rb +30 -20
- data/lib/decidim/decidim_awesome/test/shared_examples/summary_examples.rb +19 -10
- data/lib/decidim/decidim_awesome/version.rb +2 -2
- data/lib/decidim/decidim_awesome/voting_manifest.rb +5 -10
- data/lib/decidim/decidim_awesome.rb +1 -2
- data/lib/tasks/decidim_awesome_active_storage_migrations_tasks.rake +1 -1
- data/lib/tasks/decidim_awesome_upgrade_tasks.rake +4 -0
- data/package.json +19 -28
- metadata +40 -56
- data/app/cells/concerns/decidim/decidim_awesome/proposal_m_cell_override.rb +0 -18
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_counter/show.erb +0 -15
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_counter/vote_button.erb +0 -15
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_counter_cell.rb +0 -21
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal_modal/show.erb +0 -16
- data/app/cells/decidim/decidim_awesome/voting/voting_cards_proposal_modal_cell.rb +0 -20
- data/app/cells/decidim/proposals/proposal_m/footer.erb +0 -13
- data/app/overrides/layouts/decidim/_head/add_awesome_legacy_scripts.rb +0 -14
- data/app/overrides/layouts/decidim/admin/_header/replace_styles.html.erb.deface +0 -3
- data/app/packs/entrypoints/decidim_admin_decidim_awesome_custom_fields.js +0 -2
- data/app/packs/entrypoints/decidim_decidim_awesome_admin_form_exit_warn.js +0 -1
- data/app/packs/src/decidim/decidim_awesome/admin/constraints.js +0 -55
- data/app/packs/src/decidim/decidim_awesome/editors/editor.js +0 -213
- data/app/packs/stylesheets/decidim/decidim_awesome/editors/markdown_editor.scss +0 -19
- data/app/packs/stylesheets/decidim/decidim_awesome/editors/quill_editor.scss +0 -58
- data/app/packs/stylesheets/vendor/select2-foundation-theme.scss +0 -348
- data/app/serializers/concerns/decidim/decidim_awesome/proposal_serializer_override.rb +0 -65
- data/app/views/decidim/decidim_awesome/admin/config/_modal.html.erb +0 -11
- data/app/views/decidim/decidim_awesome/voting/voting_cards/_proposal_m_cell_footer.erb +0 -15
- /data/app/packs/src/decidim/decidim_awesome/{editors/tabs_focus.js → admin/tabs_change.js} +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
<div class="
|
1
|
+
<div class="form__wrapper" id="constraint-form-<%= params[:id] %>">
|
2
2
|
|
3
3
|
<%= form.select :participatory_space_manifest, participatory_space_manifests.invert, include_blank: true %>
|
4
4
|
<%= form.select :participatory_space_slug, participatory_spaces_list(@form.participatory_space_manifest).invert, include_blank: true %>
|
@@ -6,51 +6,3 @@
|
|
6
6
|
<%= form.select :component_id, components_list(@form.participatory_space_manifest, @form.participatory_space_slug).invert, include_blank: true %>
|
7
7
|
|
8
8
|
</div>
|
9
|
-
|
10
|
-
<script type="text/javascript">
|
11
|
-
|
12
|
-
(function() {
|
13
|
-
var div = document.getElementById('constraint-form-<%= params[:id] %>');
|
14
|
-
var space_manifest = div.getElementsByTagName("select")[0];
|
15
|
-
var space_slug = div.getElementsByTagName("select")[1];
|
16
|
-
var component_manifest = div.getElementsByTagName("select")[2];
|
17
|
-
var component_id = div.getElementsByTagName("select")[3];
|
18
|
-
|
19
|
-
space_manifest.addEventListener('change', function(e) {
|
20
|
-
var event = new CustomEvent("constraint:change", {
|
21
|
-
detail: [{
|
22
|
-
key: "participatory_space_manifest",
|
23
|
-
value: e.target.value
|
24
|
-
}]
|
25
|
-
});
|
26
|
-
// Dispatch detail as event so main processor will reload accordingly
|
27
|
-
document.body.dispatchEvent(event);
|
28
|
-
});
|
29
|
-
|
30
|
-
space_slug.addEventListener('change', function(e) {
|
31
|
-
var event = new CustomEvent("constraint:change", {
|
32
|
-
detail: [{
|
33
|
-
key: "participatory_space_manifest",
|
34
|
-
value: space_manifest.value
|
35
|
-
},{
|
36
|
-
key: "participatory_space_slug",
|
37
|
-
value: e.target.value
|
38
|
-
}]
|
39
|
-
});
|
40
|
-
// Dispatch detail as event so main processor will reload accordingly
|
41
|
-
document.body.dispatchEvent(event);
|
42
|
-
});
|
43
|
-
|
44
|
-
// Component manfiest and component id are mutually exclusive
|
45
|
-
component_manifest.addEventListener('change', function(e) {
|
46
|
-
if(e.target.value)
|
47
|
-
component_id.value = "";
|
48
|
-
});
|
49
|
-
|
50
|
-
component_id.addEventListener('change', function(e) {
|
51
|
-
if(e.target.value)
|
52
|
-
component_manifest.value = "";
|
53
|
-
});
|
54
|
-
})();
|
55
|
-
|
56
|
-
</script>
|
@@ -1,14 +1,19 @@
|
|
1
|
-
<%= decidim_form_for(@form, url: constraints_path(key: params[:key]), remote: true) do |f| %>
|
2
|
-
<div
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
<div
|
1
|
+
<%= decidim_form_for(@form, url: constraints_path(key: params[:key]), remote: true, html: { class: "form-defaults" }) do |f| %>
|
2
|
+
<div data-dialog-container>
|
3
|
+
<%= icon "lock-line" %>
|
4
|
+
<h2 tabindex="-1" data-dialog-title><%= t ".constraint" %></h2>
|
5
|
+
|
6
|
+
<div>
|
7
7
|
<%= render partial: "form", object: f %>
|
8
8
|
</div>
|
9
9
|
</div>
|
10
|
-
|
11
|
-
|
12
|
-
<button class="button
|
10
|
+
|
11
|
+
<div data-dialog-actions>
|
12
|
+
<button class="button button__sm md:button__lg button__transparent-secondary" type="button"
|
13
|
+
data-dialog-close="<%= "new-modal-#{params[:key]}" %>">
|
14
|
+
<%= t(".cancel") %>
|
15
|
+
</button>
|
16
|
+
|
17
|
+
<%= f.submit t(".save"), class: "button button__sm md:button__lg button__secondary", data: { "dialog-close": "new-modal-#{params[:key]}" } %>
|
13
18
|
</div>
|
14
19
|
<% end %>
|
@@ -1,14 +1,19 @@
|
|
1
|
-
<%= decidim_form_for(@form, url: constraint_path, method: :patch, remote: true) do |f| %>
|
2
|
-
<div
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
<div
|
1
|
+
<%= decidim_form_for(@form, url: constraint_path, method: :patch, remote: true, html: { class: "form-defaults" }) do |f| %>
|
2
|
+
<div data-dialog-container>
|
3
|
+
<%= icon "lock-line" %>
|
4
|
+
<h2 tabindex="-1" data-dialog-title><%= t ".constraint" %></h2>
|
5
|
+
|
6
|
+
<div>
|
7
7
|
<%= render partial: "form", object: f %>
|
8
8
|
</div>
|
9
9
|
</div>
|
10
|
-
|
11
|
-
|
12
|
-
<button class="button
|
10
|
+
|
11
|
+
<div data-dialog-actions>
|
12
|
+
<button class="button button__sm md:button__lg button__transparent-secondary" type="button"
|
13
|
+
data-dialog-close="<%= "edit-modal-#{params[:key]}" %>">
|
14
|
+
<%= t(".cancel") %>
|
15
|
+
</button>
|
16
|
+
|
17
|
+
<%= f.submit t(".save"), class: "button button__sm md:button__lg button__secondary", data: { "dialog-close": "edit-modal-#{params[:key]}" } %>
|
13
18
|
</div>
|
14
19
|
<% end %>
|
@@ -1,6 +1,21 @@
|
|
1
|
-
<div>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
<div class="flex flex-col">
|
2
|
+
<div class="mb-6">
|
3
|
+
<%= form.text_field :origin, class: "h-12 w-full" %>
|
4
|
+
<p class="help-text">
|
5
|
+
<%= t(".origin_help") %>
|
6
|
+
</p>
|
7
|
+
</div>
|
8
|
+
<div class="mb-6">
|
9
|
+
<%= form.text_field :destination, class: "h-12 w-full" %>
|
10
|
+
<p class="help-text">
|
11
|
+
<%= t(".destination_help") %>
|
12
|
+
</p>
|
13
|
+
</div>
|
14
|
+
<%= form.check_box :active, class: "mb-6" %>
|
15
|
+
<div class="mb-6">
|
16
|
+
<%= form.check_box :pass_query %>
|
17
|
+
</div>
|
18
|
+
<p class="help-text">
|
19
|
+
<%= t(".pass_query_help").html_safe %>
|
20
|
+
</p>
|
6
21
|
</div>
|
@@ -1,13 +1,13 @@
|
|
1
|
-
<%= decidim_form_for(@form, url: custom_redirect_path, method: :patch, html: { class:
|
1
|
+
<%= decidim_form_for(@form, url: custom_redirect_path, method: :patch, html: { class: "form-defaults form new_custom_redirect_" }) do |f| %>
|
2
2
|
<div class="card">
|
3
|
-
<div class="
|
3
|
+
<div class="bg-gray-6 p-4 rounded-t">
|
4
4
|
<h2 class="card-title"><%= t ".title" %></h2>
|
5
5
|
</div>
|
6
|
-
<div class="card-section">
|
6
|
+
<div class="card-section p-4">
|
7
7
|
<%= render partial: "form", object: f %>
|
8
8
|
</div>
|
9
9
|
</div>
|
10
|
-
<div class="
|
11
|
-
<%= f.submit t(".save") %>
|
10
|
+
<div class="flex items-center justify-center mt-12 w-full text-white form-general-submit">
|
11
|
+
<%= f.submit t(".save"), class: "button button__lg button__secondary" %>
|
12
12
|
</div>
|
13
13
|
<% end %>
|
@@ -1,15 +1,16 @@
|
|
1
|
+
<div class="item_show__header">
|
2
|
+
<h2 class="item_show__header-title">
|
3
|
+
<%= t(".title") %>
|
4
|
+
<%= link_to t(".new"), decidim_admin_decidim_awesome.new_custom_redirect_path, class: "button button__secondary button__xs tiny button--title text-white" %>
|
5
|
+
</h2>
|
6
|
+
</div>
|
7
|
+
|
1
8
|
<div class="card">
|
2
|
-
<div class="card-divider">
|
3
|
-
<h2 class="card-title">
|
4
|
-
<%= t(".title") %>
|
5
|
-
<%= link_to t(".new"), decidim_admin_decidim_awesome.new_custom_redirect_path, class: "button tiny button--title" %>
|
6
|
-
</h2>
|
7
|
-
</div>
|
8
9
|
<div class="card-section p-4">
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
<p class="help-text -mt-2 mb-4"><%= t(".description").html_safe %></p>
|
11
|
+
<div class="table-scroll decidim_awesome-form">
|
12
|
+
<table class="table-list custom-redirections-table">
|
13
|
+
<thead>
|
13
14
|
<tr>
|
14
15
|
<th><%= t("custom_redirect.active", scope: "activemodel.attributes") %></th>
|
15
16
|
<th><%= t("custom_redirect.origin", scope: "activemodel.attributes") %></th>
|
@@ -17,8 +18,8 @@
|
|
17
18
|
<th class="redirect-status"><%= link_to(t(".check_redirections"), "#", class: "button button__secondary button__xs pull-right secondary check-custom-redirections") if current_config.present? %></th>
|
18
19
|
<th class="actions"><%= t("decidim.decidim_awesome.admin.actions") %></th>
|
19
20
|
</tr>
|
20
|
-
|
21
|
-
|
21
|
+
</thead>
|
22
|
+
<tbody>
|
22
23
|
<% current_config.each do |origin, item| %>
|
23
24
|
<tr class="custom-redirection" data-origin="<%= origin %>" data-item="<%= item.to_json %>">
|
24
25
|
<td><%= check item["active"] %></td>
|
@@ -31,8 +32,7 @@
|
|
31
32
|
</td>
|
32
33
|
</tr>
|
33
34
|
<% end %>
|
34
|
-
|
35
|
-
|
36
|
-
</div>
|
35
|
+
</tbody>
|
36
|
+
</table>
|
37
37
|
</div>
|
38
38
|
</div>
|
@@ -1,13 +1,13 @@
|
|
1
|
-
<%= decidim_form_for(@form, url: custom_redirects_path, html: { class:
|
1
|
+
<%= decidim_form_for(@form, url: custom_redirects_path, html: { class: "form-defaults form new_custom_redirect_" }) do |f| %>
|
2
2
|
<div class="card">
|
3
|
-
<div class="
|
3
|
+
<div class="bg-gray-6 p-4 rounded-t">
|
4
4
|
<h2 class="card-title"><%= t ".title" %></h2>
|
5
5
|
</div>
|
6
|
-
<div class="card-section">
|
6
|
+
<div class="card-section p-4">
|
7
7
|
<%= render partial: "form", object: f %>
|
8
8
|
</div>
|
9
9
|
</div>
|
10
|
-
<div class="
|
11
|
-
<%= f.submit t(".save") %>
|
10
|
+
<div class="flex items-center justify-center mt-12 w-full text-white form-general-submit">
|
11
|
+
<%= f.submit t(".save"), class: "button button__lg button__secondary" %>
|
12
12
|
</div>
|
13
13
|
<% end %>
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<div class="mb-8">
|
2
|
-
<p class="help-text"><%= t(".help_html", time_ago:
|
2
|
+
<p class="help-text"><%= t(".help_html", time_ago:) %>
|
3
3
|
</div>
|
4
4
|
|
5
5
|
<% if collection.empty? %>
|
6
|
-
<div class="callout warning"><%= t(".no_data", time_ago:
|
6
|
+
<div class="callout warning"><%= t(".no_data", time_ago:) %></div>
|
7
7
|
<% else %>
|
8
8
|
<div class="table-scroll autorefresh" data-url="<%= maintenance_path(:private_data).split("?").first %>">
|
9
9
|
<table class="table-list">
|
@@ -28,11 +28,11 @@
|
|
28
28
|
<span class="loading-spinner primary" title="<%= t(".removing") %>"></span>
|
29
29
|
<% elsif item.destroyable? %>
|
30
30
|
<%= link_to destroy_private_data_maintenance_path(:private_data, resource_id: item), method: :delete, class: "button button__primary button__xs tiny", data: { confirm: t(".confirm_delete") } do %>
|
31
|
-
<%= icon "
|
31
|
+
<%= icon "delete-bin-line" %>
|
32
32
|
<%= t(".delete") %>
|
33
33
|
<% end %>
|
34
34
|
<% else %>
|
35
|
-
<span class="not-destroyable" title="<%= t(".not_destroyable") %>"><%= icon "
|
35
|
+
<span class="not-destroyable" title="<%= t(".not_destroyable") %>"><%= icon "forbid-line" %></span>
|
36
36
|
<% end %>
|
37
37
|
</td>
|
38
38
|
</tr>
|
@@ -1,7 +1,7 @@
|
|
1
|
-
<div>
|
2
|
-
<%= form.translated :text_field, :raw_label, help_text: t(".label_help") %>
|
3
|
-
<%= form.text_field :url , readonly: form.object.url.present? %>
|
4
|
-
<%= form.text_field :position %>
|
5
|
-
<%= form.select :target, target_options %>
|
6
|
-
<%= form.select :visibility, visibility_options %>
|
1
|
+
<div class="form__wrapper gap-0">
|
2
|
+
<%= form.translated :text_field, :raw_label, class: "mb-6", help_text: t(".label_help") %>
|
3
|
+
<%= form.text_field :url , class: "mb-6", readonly: form.object.url.present? %>
|
4
|
+
<%= form.text_field :position, class: "mb-6" %>
|
5
|
+
<%= form.select :target, target_options, {}, class: "mb-6" %>
|
6
|
+
<%= form.select :visibility, visibility_options, {}, class: "mb-8" %>
|
7
7
|
</div>
|
@@ -1,13 +1,22 @@
|
|
1
|
-
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
<div class="item_show__header">
|
2
|
+
<h2 class="item_show__header-title">
|
3
|
+
<%= t(".title") %>
|
4
|
+
</h2>
|
5
|
+
</div>
|
6
|
+
<div class="item__edit item__edit-1col">
|
7
|
+
<div class="item__edit-form">
|
8
|
+
<%= decidim_form_for(@form, url: menu_hack_path(params[:menu_id]), method: :patch, html: { class: "form form-defaults" }) do |f| %>
|
9
|
+
<div class="card pt-4">
|
10
|
+
<div class="card-section">
|
11
|
+
<%= render partial: "form", object: f %>
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div class="item__edit-sticky">
|
16
|
+
<div class="item__edit-sticky-container">
|
17
|
+
<%= f.submit t(".save"), class: "button button__sm button__secondary" %>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
<% end %>
|
9
21
|
</div>
|
10
|
-
|
11
|
-
<%= f.submit t(".save") %>
|
12
|
-
</div>
|
13
|
-
<% end %>
|
22
|
+
</div>
|
@@ -1,13 +1,12 @@
|
|
1
|
-
<div class="
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
<
|
9
|
-
<
|
10
|
-
<thead>
|
1
|
+
<div class="item_show__header">
|
2
|
+
<h2 class="item_show__header-title">
|
3
|
+
<%= t(".#{params[:menu_id]}.title") %>
|
4
|
+
<%= link_to t(".new"), decidim_admin_decidim_awesome.new_menu_hack_path, class: "button button__sm button__secondary ml-auto" %>
|
5
|
+
</h2>
|
6
|
+
</div>
|
7
|
+
<div class="table-scroll">
|
8
|
+
<table class="table-list">
|
9
|
+
<thead>
|
11
10
|
<tr>
|
12
11
|
<th><%= t("menu.raw_label", scope: "activemodel.attributes") %></th>
|
13
12
|
<th><%= t("menu.url", scope: "activemodel.attributes") %></th>
|
@@ -16,8 +15,8 @@
|
|
16
15
|
<th><%= t("menu.visibility", scope: "activemodel.attributes") %></th>
|
17
16
|
<th class="actions"><%= t("decidim.decidim_awesome.admin.actions") %></th>
|
18
17
|
</tr>
|
19
|
-
|
20
|
-
|
18
|
+
</thead>
|
19
|
+
<tbody>
|
21
20
|
<% current_items.each do |item| %>
|
22
21
|
<tr<%= " class=menu_hack-addition" if item.try(:overrided?) == false %>>
|
23
22
|
<td><%= item.label %></td>
|
@@ -26,18 +25,17 @@
|
|
26
25
|
<td><%= target_options.invert[item.try(:target)||""] %></td>
|
27
26
|
<td><%= visibility_options.invert[item.try(:visibility)] %></td>
|
28
27
|
<td class="table-list__actions">
|
29
|
-
<%= icon_link_to "pencil", decidim_admin_decidim_awesome.edit_menu_hack_path(md5(item.url)), t(".edit"), class: "action-icon--edit" %>
|
28
|
+
<%= icon_link_to "pencil-line", decidim_admin_decidim_awesome.edit_menu_hack_path(params[:menu_id], md5(item.url)), t(".edit"), class: "action-icon--edit" %>
|
30
29
|
<% if item.respond_to?(:overrided?) %>
|
31
|
-
<%= icon_link_to "circle-
|
30
|
+
<%= icon_link_to "close-circle-line", decidim_admin_decidim_awesome.menu_hack_path(params[:menu_id], md5(item.url)), t(".remove#{'_hack' if item.overrided?}"), method: :delete, class: "action-icon--remove", data: { confirm: t(".confirm_destroy") } %>
|
32
31
|
<% else %>
|
33
32
|
<span class="action-icon">
|
34
|
-
<%= icon "circle-
|
33
|
+
<%= icon "close-circle-line", class: "action-icon action-icon--disabled", role: "img" %>
|
35
34
|
</span>
|
36
35
|
<% end %>
|
37
36
|
</td>
|
38
37
|
</tr>
|
39
38
|
<% end %>
|
40
|
-
|
41
|
-
|
42
|
-
</div>
|
39
|
+
</tbody>
|
40
|
+
</table>
|
43
41
|
</div>
|
@@ -1,13 +1,22 @@
|
|
1
|
-
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
<div class="item_show__header">
|
2
|
+
<h2 class="item_show__header-title">
|
3
|
+
<%= t(".title") %>
|
4
|
+
</h2>
|
5
|
+
</div>
|
6
|
+
<div class="item__edit item__edit-1col">
|
7
|
+
<div class="item__edit-form">
|
8
|
+
<%= decidim_form_for(@form, url: menu_hacks_path(params[:menu_id]), html: { class: "form form-defaults" }) do |f| %>
|
9
|
+
<div class="card pt-4">
|
10
|
+
<div class="card-section">
|
11
|
+
<%= render partial: "form", object: f %>
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div class="item__edit-sticky">
|
16
|
+
<div class="item__edit-sticky-container">
|
17
|
+
<%= f.submit t(".save"), class: "button button__sm button__secondary" %>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
<% end %>
|
9
21
|
</div>
|
10
|
-
|
11
|
-
<%= f.submit t(".save") %>
|
12
|
-
</div>
|
13
|
-
<% end %>
|
22
|
+
</div>
|
@@ -1,41 +1,42 @@
|
|
1
|
-
<div class="filters__section">
|
2
|
-
<div class="fcell filter">
|
1
|
+
<div class="filters__section p-4 flex mb-0">
|
2
|
+
<div class="fcell filter self-start">
|
3
3
|
<ul class="dropdown menu" data-dropdown-menu data-close-on-click-inside="false">
|
4
4
|
<li>
|
5
|
-
<a href="#" class="dropdown button">
|
5
|
+
<a href="#" class="dropdown button button__sm button__secondary">
|
6
6
|
<%= t("filter_label", scope: "decidim.admin.filters") %>
|
7
|
+
<%= icon "arrow-down-s-fill", class: "dropdown-filter-icon" %>
|
7
8
|
</a>
|
8
9
|
<%= dropdown_submenu(submenu_options_tree(i18n_ctx)) %>
|
9
10
|
</li>
|
10
11
|
</ul>
|
11
12
|
</div>
|
12
13
|
<div class="fcell search">
|
13
|
-
<%= search_form_for(query, url: url_for) do |form| %>
|
14
|
+
<%= search_form_for(query, url: url_for, html: { class: "form-defaults form" }) do |form| %>
|
14
15
|
<%= applied_filters_hidden_field_tags %>
|
15
|
-
<div class="input-group">
|
16
|
+
<div class="input-group flex items-center">
|
16
17
|
<%= form.search_field(
|
17
18
|
search_field_predicate,
|
18
|
-
class: "input-group-field",
|
19
|
+
class: "input-group-field shadow-md border-alert",
|
19
20
|
label: false,
|
20
21
|
placeholder: t(search_field_predicate,
|
21
22
|
collection: collection_name,
|
22
23
|
scope: "decidim.admin.filters.search_placeholder")
|
23
24
|
) %>
|
24
25
|
<div class="input-group-button">
|
25
|
-
<button type="submit" class="
|
26
|
-
<%= icon "
|
26
|
+
<button type="submit" class="text-secondary py-2 px-4 rounded-r focus:outline-none outline-none">
|
27
|
+
<%= icon "search-line", class: "fill-secondary w-4 h-4", aria_label: t("search_label", scope: "decidim.admin.filters") %>
|
27
28
|
</button>
|
28
29
|
</div>
|
29
30
|
</div>
|
30
|
-
<div class="input-group mt-
|
31
|
-
<div class="input-group-field">
|
31
|
+
<div class="input-group flex mt-4 w-full justify-center">
|
32
|
+
<div class="input-group-field flex flex-col w-full">
|
32
33
|
<%= form.label t("search_field_start_date", scope: "decidim.admin.filters.label") %>
|
33
34
|
<%= form.date_field(:created_at_gteq,
|
34
35
|
class: "input-group-field",
|
35
36
|
label: false,
|
36
37
|
datepicker: true) %>
|
37
38
|
</div>
|
38
|
-
<div class="input-group-field">
|
39
|
+
<div class="input-group-field flex flex-col w-full">
|
39
40
|
<%= form.label t("search_field_end_date", scope: "decidim.admin.filters.label") %>
|
40
41
|
<%= form.date_field(:created_at_lteq,
|
41
42
|
class: "input-group-field",
|
@@ -46,11 +47,6 @@
|
|
46
47
|
<% end %>
|
47
48
|
</div>
|
48
49
|
</div>
|
49
|
-
<div class="
|
50
|
-
|
51
|
-
<%= applied_filters_tags(i18n_ctx) %>
|
52
|
-
</div>
|
53
|
-
<div class="cell auto text-right">
|
54
|
-
<%= admin_filters_pagination %>
|
55
|
-
</div>
|
50
|
+
<div class="fcell grid-x" data-applied-filters-tags>
|
51
|
+
<%= applied_filters_tags(i18n_ctx) %>
|
56
52
|
</div>
|
@@ -1,16 +1,23 @@
|
|
1
1
|
<!--the modal window will be used in another pr-->
|
2
|
-
|
3
|
-
<div
|
4
|
-
|
5
|
-
|
2
|
+
<%= decidim_modal id: "LimitAmendmentsModal", data: { "limit-amendments": current_component.settings&.limit_pending_amendments } do %>
|
3
|
+
<div data-dialog-container>
|
4
|
+
<%= icon "notification-3-fill" %>
|
5
|
+
<h3 data-dialog-title><%= t("decidim.decidim_awesome.amendments.modal.amendment_exists") %></h3>
|
6
6
|
|
7
|
-
|
8
|
-
<div class="instructions"
|
9
|
-
|
10
|
-
|
7
|
+
<div>
|
8
|
+
<div class="instructions">
|
9
|
+
<%= t("decidim.decidim_awesome.amendments.modal.explanation_html",
|
10
|
+
proposal_link: present(@proposal).proposal_path + "#comments") %>
|
11
11
|
|
12
|
-
|
13
|
-
|
12
|
+
<% emendations = @proposal.emendations.not_hidden.where(decidim_amendments: { state: Decidim::Amendment.states["evaluating"] }) %>
|
13
|
+
<% if current_component.current_settings&.amendments_visibility == "all" && emendations %>
|
14
|
+
<%= t("decidim.decidim_awesome.amendments.modal.current_amendment_html",
|
15
|
+
amendment_link: present(emendations&.first).proposal_path) %>
|
16
|
+
<% end %>
|
17
|
+
</div>
|
14
18
|
</div>
|
15
19
|
</div>
|
16
|
-
|
20
|
+
<div data-dialog-actions>
|
21
|
+
<button type="button" class="button button__sm md:button__lg button__transparent-secondary cancel-action" data-dialog-close="LimitAmendmentsModal"><%= t("decidim.decidim_awesome.amendments.modal.dismiss") %></button>
|
22
|
+
</div>
|
23
|
+
<% end %>
|
@@ -1,14 +1,12 @@
|
|
1
1
|
<div class="decidim_awesome-custom_fields <%= name %>">
|
2
2
|
<% if name == :private_body %>
|
3
|
-
<p class="private_body-disclosure help-text"><%= icon "
|
3
|
+
<p class="private_body-disclosure help-text"><%= icon "spy" %><%= t("decidim.decidim_awesome.proposal_private_custom_fields_disclosure") %></p>
|
4
4
|
<% end %>
|
5
|
-
<div class="proposal_custom_field proposal_custom_field--<%= name %>"
|
6
|
-
id="proposal-custom-field-<%= name %>"
|
7
|
-
data-spec="<%= spec.to_json %>"
|
8
|
-
data-name="<%= "#{form.object_name}[#{name}]" %>">
|
5
|
+
<div class="proposal_custom_field proposal_custom_field--<%= name %>" id="proposal-custom-field-<%= name %>" data-spec="<%= spec.to_json %>" data-editor-options="<%= editor_options[:editor].to_json %>" data-name="<%= "#{form.object_name}[#{name}]" %>">
|
9
6
|
<div class="loading-spinner"></div>
|
10
7
|
</div>
|
11
8
|
</div>
|
12
9
|
|
10
|
+
<%= editor_upload.html_safe %>
|
13
11
|
<%= form.hidden_field name %>
|
14
12
|
<%= form.error_for name %>
|
@@ -1,14 +1,9 @@
|
|
1
|
-
|
1
|
+
<main class="participatory-space__container">
|
2
|
+
<%= announcement = render(partial: "decidim/shared/component_announcement") %>
|
2
3
|
|
3
|
-
<%=
|
4
|
+
<%= append_stylesheet_pack_tag "decidim_decidim_awesome_iframe" %>
|
4
5
|
|
5
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
<% end %>
|
10
|
-
</style>
|
11
|
-
|
12
|
-
<div class="awesome-iframe<%= " row" if viewport_width? %>">
|
13
|
-
<%= iframe %>
|
14
|
-
</div>
|
6
|
+
<section id="<%= viewport_width? ? "iframe-block" : "html-block-html" %>" class="awesome-iframe layout-main__section">
|
7
|
+
<%= iframe %>
|
8
|
+
</section>
|
9
|
+
</main>
|