decidim-initiatives 0.27.10 → 0.28.0.rc4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -3
- data/app/cells/decidim/initiatives/content_blocks/highlighted_initiatives_cell.rb +17 -18
- data/app/cells/decidim/initiatives/initiative_cell.rb +6 -1
- data/app/cells/decidim/initiatives/initiative_dropdown_metadata_cell.rb +19 -0
- data/app/cells/decidim/initiatives/initiative_g_cell.rb +31 -0
- data/app/cells/decidim/initiatives/initiative_metadata_g_cell.rb +62 -0
- data/app/cells/decidim/initiatives/initiative_s_cell.rb +15 -0
- data/app/cells/decidim/initiatives_votes/vote/show.erb +25 -19
- data/app/cells/decidim/initiatives_votes/vote_cell.rb +3 -1
- data/app/commands/decidim/initiatives/admin/accept_initiative.rb +40 -0
- data/app/commands/decidim/initiatives/admin/create_initiative_type.rb +1 -1
- data/app/commands/decidim/initiatives/admin/create_initiative_type_scope.rb +1 -1
- data/app/commands/decidim/initiatives/admin/discard_initiative.rb +40 -0
- data/app/commands/decidim/initiatives/admin/publish_initiative.rb +1 -1
- data/app/commands/decidim/initiatives/admin/reject_initiative.rb +40 -0
- data/app/commands/decidim/initiatives/admin/send_initiative_to_technical_validation.rb +2 -2
- data/app/commands/decidim/initiatives/admin/unpublish_initiative.rb +1 -1
- data/app/commands/decidim/initiatives/admin/update_initiative.rb +1 -1
- data/app/commands/decidim/initiatives/admin/update_initiative_answer.rb +1 -1
- data/app/commands/decidim/initiatives/admin/update_initiative_type.rb +1 -1
- data/app/commands/decidim/initiatives/admin/update_initiative_type_scope.rb +1 -1
- data/app/commands/decidim/initiatives/admin/update_initiatives_settings.rb +1 -1
- data/app/commands/decidim/initiatives/attachment_methods.rb +2 -24
- data/app/commands/decidim/initiatives/create_initiative.rb +19 -14
- data/app/commands/decidim/initiatives/send_initiative_to_technical_validation.rb +2 -2
- data/app/commands/decidim/initiatives/spawn_committee_request.rb +1 -1
- data/app/commands/decidim/initiatives/unvote_initiative.rb +1 -1
- data/app/commands/decidim/initiatives/update_initiative.rb +9 -2
- data/app/commands/decidim/initiatives/validate_mobile_phone.rb +2 -2
- data/app/commands/decidim/initiatives/vote_initiative.rb +5 -5
- data/app/constraints/decidim/initiatives/current_initiative.rb +1 -1
- data/app/controllers/concerns/decidim/initiatives/admin/filterable.rb +2 -2
- data/app/controllers/concerns/decidim/initiatives/needs_initiative.rb +1 -1
- data/app/controllers/decidim/initiatives/admin/answers_controller.rb +3 -0
- data/app/controllers/decidim/initiatives/admin/committee_requests_controller.rb +2 -0
- data/app/controllers/decidim/initiatives/admin/components_controller.rb +3 -0
- data/app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb +2 -0
- data/app/controllers/decidim/initiatives/admin/initiatives_controller.rb +17 -6
- data/app/controllers/decidim/initiatives/admin/initiatives_permissions_controller.rb +3 -0
- data/app/controllers/decidim/initiatives/admin/initiatives_settings_controller.rb +2 -0
- data/app/controllers/decidim/initiatives/admin/initiatives_type_scopes_controller.rb +30 -0
- data/app/controllers/decidim/initiatives/admin/initiatives_types_controller.rb +14 -0
- data/app/controllers/decidim/initiatives/admin/initiatives_types_permissions_controller.rb +21 -0
- data/app/controllers/decidim/initiatives/admin/moderations/reports_controller.rb +2 -2
- data/app/controllers/decidim/initiatives/admin/moderations_controller.rb +4 -2
- data/app/controllers/decidim/initiatives/application_controller.rb +0 -1
- data/app/controllers/decidim/initiatives/authorization_create_modals_controller.rb +25 -0
- data/app/controllers/decidim/initiatives/authorization_sign_modals_controller.rb +2 -2
- data/app/controllers/decidim/initiatives/committee_requests_controller.rb +0 -2
- data/app/controllers/decidim/initiatives/create_initiative_controller.rb +62 -115
- data/app/controllers/decidim/initiatives/initiative_signatures_controller.rb +113 -81
- data/app/controllers/decidim/initiatives/initiative_types_controller.rb +7 -0
- data/app/controllers/decidim/initiatives/initiatives_controller.rb +37 -17
- data/app/controllers/decidim/initiatives/versions_controller.rb +0 -1
- data/app/events/decidim/initiatives/admin/initiative_sent_to_technical_validation_event.rb +2 -2
- data/app/events/decidim/initiatives/admin/support_threshold_reached_event.rb +1 -1
- data/app/events/decidim/initiatives/approve_membership_request_event.rb +16 -13
- data/app/events/decidim/initiatives/create_initiative_event.rb +10 -7
- data/app/events/decidim/initiatives/endorse_initiative_event.rb +1 -1
- data/app/events/decidim/initiatives/extend_initiative_event.rb +1 -1
- data/app/events/decidim/initiatives/initiative_sent_to_technical_validation_event.rb +2 -2
- data/app/events/decidim/initiatives/milestone_completed_event.rb +1 -1
- data/app/events/decidim/initiatives/revoke_membership_request_event.rb +16 -13
- data/app/events/decidim/initiatives/spawn_committee_request_event.rb +16 -13
- data/app/forms/decidim/initiatives/admin/initiative_form.rb +1 -1
- data/app/forms/decidim/initiatives/initiative_form.rb +22 -31
- data/app/forms/decidim/initiatives/previous_form.rb +4 -0
- data/app/forms/decidim/initiatives/vote_form.rb +11 -11
- data/app/helpers/decidim/initiatives/admin/initiatives_helper.rb +1 -1
- data/app/helpers/decidim/initiatives/application_helper.rb +5 -62
- data/app/helpers/decidim/initiatives/initiative_helper.rb +48 -5
- data/app/helpers/decidim/initiatives/initiatives_helper.rb +33 -12
- data/app/jobs/decidim/initiatives/export_initiatives_job.rb +1 -1
- data/app/models/decidim/initiative.rb +16 -14
- data/app/models/decidim/initiatives_vote.rb +1 -1
- data/app/packs/entrypoints/decidim_initiatives.js +3 -0
- data/app/packs/images/decidim/gamification/badges/decidim_gamification_badges_initiatives.svg +42 -1
- data/app/packs/src/decidim/initiatives/application.js +0 -1
- data/app/packs/src/decidim/initiatives/scoped_type.js +1 -1
- data/app/packs/stylesheets/decidim/initiatives/initiatives-votes.scss +21 -21
- data/app/packs/stylesheets/decidim/initiatives/print-initiative.scss +47 -35
- data/app/packs/stylesheets/initiatives.scss +171 -0
- data/app/permissions/decidim/initiatives/permissions.rb +3 -13
- data/app/presenters/decidim/initiatives/admin_log/initiative_presenter.rb +2 -2
- data/app/presenters/decidim/initiatives/admin_log/initiatives_settings_presenter.rb +2 -2
- data/app/presenters/decidim/initiatives/admin_log/initiatives_type_presenter.rb +2 -2
- data/app/queries/decidim/initiatives/organization_prioritized_initiatives.rb +1 -1
- data/app/queries/decidim/initiatives/similar_initiatives.rb +2 -2
- data/app/queries/decidim/initiatives/support_period_finished_initiatives.rb +1 -1
- data/app/queries/decidim/initiatives/user_authorizations.rb +1 -1
- data/app/services/decidim/initiatives/pdf_signature_example.rb +44 -52
- data/app/views/decidim/initiatives/_modal.html.erb +15 -0
- data/app/views/decidim/initiatives/admin/answers/_info_initiative.html.erb +21 -19
- data/app/views/decidim/initiatives/admin/answers/edit.html.erb +41 -27
- data/app/views/decidim/initiatives/admin/committee_requests/index.html.erb +41 -48
- data/app/views/decidim/initiatives/admin/exports/_dropdown.html.erb +8 -7
- data/app/views/decidim/initiatives/admin/initiatives/_form.html.erb +111 -95
- data/app/views/decidim/initiatives/admin/initiatives/_initiative_attachments.erb +7 -7
- data/app/views/decidim/initiatives/admin/initiatives/_signatures.html.erb +87 -0
- data/app/views/decidim/initiatives/admin/initiatives/edit.html.erb +72 -60
- data/app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.html.erb +8 -0
- data/app/views/decidim/initiatives/admin/initiatives/export_pdf_signatures.pdf.erb +5 -78
- data/app/views/decidim/initiatives/admin/initiatives/index.html.erb +76 -75
- data/app/views/decidim/initiatives/admin/initiatives_settings/_form.html.erb +7 -8
- data/app/views/decidim/initiatives/admin/initiatives_settings/edit.html.erb +17 -5
- data/app/views/decidim/initiatives/admin/initiatives_type_scopes/_form.html.erb +11 -6
- data/app/views/decidim/initiatives/admin/initiatives_type_scopes/edit.html.erb +16 -22
- data/app/views/decidim/initiatives/admin/initiatives_type_scopes/new.html.erb +17 -15
- data/app/views/decidim/initiatives/admin/initiatives_types/_form.html.erb +93 -76
- data/app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb +35 -33
- data/app/views/decidim/initiatives/admin/initiatives_types/edit.html.erb +16 -12
- data/app/views/decidim/initiatives/admin/initiatives_types/index.html.erb +39 -48
- data/app/views/decidim/initiatives/admin/initiatives_types/new.html.erb +16 -9
- data/app/views/decidim/initiatives/committee_requests/new.html.erb +21 -19
- data/app/views/decidim/initiatives/create_initiative/_share_committee_link.html.erb +15 -20
- data/app/views/decidim/initiatives/create_initiative/fill_data.html.erb +62 -100
- data/app/views/decidim/initiatives/create_initiative/finish.html.erb +24 -28
- data/app/views/decidim/initiatives/create_initiative/promotal_committee.html.erb +15 -17
- data/app/views/decidim/initiatives/create_initiative/select_initiative_type.html.erb +32 -46
- data/app/views/decidim/initiatives/initiative_signatures/_wizard_steps.html.erb +15 -19
- data/app/views/decidim/initiatives/initiative_signatures/fill_personal_data.html.erb +25 -36
- data/app/views/decidim/initiatives/initiative_signatures/finish.html.erb +5 -16
- data/app/views/decidim/initiatives/initiative_signatures/sms_code.html.erb +8 -19
- data/app/views/decidim/initiatives/initiative_signatures/sms_phone_number.html.erb +8 -20
- data/app/views/decidim/initiatives/initiatives/_committee_members.html.erb +48 -66
- data/app/views/decidim/initiatives/initiatives/_form.html.erb +49 -95
- data/app/views/decidim/initiatives/initiatives/_initiative_badge.html.erb +3 -5
- data/app/views/decidim/initiatives/initiatives/_initiative_hero.html.erb +13 -0
- data/app/views/decidim/initiatives/initiatives/_initiatives.html.erb +6 -15
- data/app/views/decidim/initiatives/initiatives/_interactions.html.erb +1 -1
- data/app/views/decidim/initiatives/initiatives/_new_initiative_button.html.erb +28 -0
- data/app/views/decidim/initiatives/initiatives/_progress_bar.html.erb +2 -6
- data/app/views/decidim/initiatives/initiatives/_result.html.erb +15 -21
- data/app/views/decidim/initiatives/initiatives/_send_to_technical_validation.html.erb +3 -3
- data/app/views/decidim/initiatives/initiatives/_tags_type.html.erb +1 -0
- data/app/views/decidim/initiatives/initiatives/_vote_button.html.erb +9 -9
- data/app/views/decidim/initiatives/initiatives/_vote_cabin.html.erb +7 -7
- data/app/views/decidim/initiatives/initiatives/edit.html.erb +63 -68
- data/app/views/decidim/initiatives/initiatives/index.html.erb +17 -18
- data/app/views/decidim/initiatives/initiatives/index.js.erb +0 -5
- data/app/views/decidim/initiatives/initiatives/print.html.erb +123 -120
- data/app/views/decidim/initiatives/initiatives/show.html.erb +188 -72
- data/app/views/decidim/initiatives/initiatives_mailer/notify_creation.html.erb +2 -2
- data/app/views/decidim/initiatives/initiatives_type_scopes/search.html.erb +2 -1
- data/app/views/decidim/initiatives/versions/show.html.erb +15 -6
- data/app/views/layouts/decidim/_initiative_creation_header.html.erb +17 -28
- data/app/views/layouts/decidim/_initiative_header.html.erb +3 -23
- data/app/views/layouts/decidim/_initiative_header_steps.html.erb +4 -12
- data/app/views/layouts/decidim/_initiative_signature_creation_header.html.erb +5 -26
- data/app/views/layouts/decidim/admin/initiative.html.erb +12 -13
- data/app/views/layouts/decidim/admin/initiatives.html.erb +40 -11
- data/app/views/layouts/decidim/initiative.html.erb +16 -11
- data/app/views/layouts/decidim/initiative_creation.html.erb +7 -18
- data/app/views/layouts/decidim/initiative_head.html.erb +15 -0
- data/app/views/layouts/decidim/initiative_signature_creation.html.erb +3 -11
- data/config/assets.rb +0 -1
- data/config/initializers/wicked_pdf.rb +1 -1
- data/config/locales/ar.yml +1 -96
- data/config/locales/bg.yml +0 -642
- data/config/locales/ca.yml +76 -115
- data/config/locales/cs.yml +70 -109
- data/config/locales/de.yml +78 -117
- data/config/locales/el.yml +1 -98
- data/config/locales/en.yml +69 -108
- data/config/locales/es-MX.yml +65 -104
- data/config/locales/es-PY.yml +65 -104
- data/config/locales/es.yml +73 -112
- data/config/locales/eu.yml +66 -105
- data/config/locales/fi-plain.yml +67 -106
- data/config/locales/fi.yml +68 -107
- data/config/locales/fr-CA.yml +69 -108
- data/config/locales/fr.yml +67 -106
- data/config/locales/ga-IE.yml +0 -35
- data/config/locales/gl.yml +1 -89
- data/config/locales/hu.yml +25 -114
- data/config/locales/id-ID.yml +1 -89
- data/config/locales/is-IS.yml +1 -60
- data/config/locales/it.yml +6 -111
- data/config/locales/ja.yml +65 -111
- data/config/locales/lb.yml +6 -88
- data/config/locales/lt.yml +52 -103
- data/config/locales/lv.yml +1 -99
- data/config/locales/nl.yml +6 -104
- data/config/locales/no.yml +6 -114
- data/config/locales/pl.yml +6 -158
- data/config/locales/pt-BR.yml +23 -146
- data/config/locales/pt.yml +6 -111
- data/config/locales/ro-RO.yml +13 -108
- data/config/locales/ru.yml +1 -68
- data/config/locales/sk.yml +1 -85
- data/config/locales/sl.yml +3 -5
- data/config/locales/sv.yml +25 -120
- data/config/locales/tr-TR.yml +9 -110
- data/config/locales/uk.yml +1 -68
- data/config/locales/zh-CN.yml +6 -102
- data/config/locales/zh-TW.yml +31 -95
- data/db/migrate/20171017091734_add_scopes_for_all_initiative_types.rb +1 -1
- data/db/migrate/20171017095143_update_initiative_scoped_type.rb +1 -1
- data/db/migrate/20191002082220_move_signature_type_to_initative_type.rb +1 -1
- data/lib/decidim/api/initiative_committee_member_type.rb +2 -2
- data/lib/decidim/initiatives/admin_engine.rb +13 -93
- data/lib/decidim/initiatives/content_blocks/registry_manager.rb +22 -0
- data/lib/decidim/initiatives/engine.rb +45 -23
- data/lib/decidim/initiatives/menu.rb +150 -0
- data/lib/decidim/initiatives/participatory_space.rb +6 -91
- data/lib/decidim/initiatives/query_extensions.rb +5 -5
- data/lib/decidim/initiatives/seeds.rb +95 -0
- data/lib/decidim/initiatives/test/factories.rb +43 -48
- data/lib/decidim/initiatives/version.rb +1 -1
- data/lib/decidim/initiatives.rb +1 -1
- data/lib/tasks/decidim_initiatives.rake +2 -2
- data/lib/tasks/initiatives/upgrade/decidim_initiatives_upgrade_tasks.rake +1 -1
- metadata +51 -81
- data/app/cells/decidim/initiatives/content_blocks/highlighted_initiatives/show.erb +0 -28
- data/app/cells/decidim/initiatives/initiative_m/author.erb +0 -10
- data/app/cells/decidim/initiatives/initiative_m/footer.erb +0 -28
- data/app/cells/decidim/initiatives/initiative_m/tags.erb +0 -9
- data/app/cells/decidim/initiatives/initiative_m_cell.rb +0 -77
- data/app/controllers/decidim/initiatives/widgets_controller.rb +0 -44
- data/app/packs/stylesheets/decidim/initiatives/admin.scss +0 -33
- data/app/packs/stylesheets/decidim/initiatives/initiatives.scss +0 -64
- data/app/packs/stylesheets/decidim/initiatives/popularity_item.scss +0 -76
- data/app/packs/stylesheets/decidim/initiatives/statistics.scss +0 -15
- data/app/views/decidim/initiatives/create_initiative/_finish_help.html.erb +0 -2
- data/app/views/decidim/initiatives/create_initiative/previous_form.html.erb +0 -40
- data/app/views/decidim/initiatives/create_initiative/show_similar_initiatives.html.erb +0 -23
- data/app/views/decidim/initiatives/initiatives/_author.html.erb +0 -35
- data/app/views/decidim/initiatives/initiatives/_count.html.erb +0 -1
- data/app/views/decidim/initiatives/initiatives/_filters.html.erb +0 -33
- data/app/views/decidim/initiatives/initiatives/_filters_small_view.html.erb +0 -18
- data/app/views/decidim/initiatives/initiatives/_index_header.html.erb +0 -44
- data/app/views/decidim/initiatives/initiatives/_tags.html.erb +0 -7
- data/app/views/decidim/initiatives/versions/index.html.erb +0 -8
- data/config/locales/he-IL.yml +0 -1
- data/db/seeds/city.jpeg +0 -0
- data/db/seeds/city2.jpeg +0 -0
- data/decidim-initiatives.gemspec +0 -38
- data/lib/decidim/initiatives/initiatives_filter_form_builder.rb +0 -56
- data/lib/gem_overrides/origami/date.rb +0 -47
@@ -1,78 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
<div class="initiatives-votes-table-cell w20" style="width: 19%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
7
|
-
<%= t("models.initiatives_votes.fields.initiative_id", scope: "decidim.admin") %>
|
8
|
-
</div>
|
9
|
-
<div class="initiatives-votes-table-cell w20" style="width: 19%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
10
|
-
<%= t("models.initiatives_votes.fields.initiative_title", scope: "decidim.admin") %>
|
11
|
-
</div>
|
12
|
-
<div class="initiatives-votes-table-cell w20" style="width: 19%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
13
|
-
<%= t("models.initiatives_votes.fields.initiative_start_date", scope: "decidim.admin") %>
|
14
|
-
</div>
|
15
|
-
<div class="initiatives-votes-table-cell w20" style="width: 19%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
16
|
-
<%= t("models.initiatives_votes.fields.initiative_end_date", scope: "decidim.admin") %>
|
17
|
-
</div>
|
18
|
-
<div class="initiatives-votes-table-cell w20" style="width: 19%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
19
|
-
<%= t("models.initiatives_votes.fields.initiative_signatures_count", scope: "decidim.admin") %>
|
20
|
-
</div>
|
21
|
-
</div>
|
22
|
-
<div class="initiatives-votes-table-row" style="width: 100%; display: inline-block; min-height: 33pt;">
|
23
|
-
<div class="initiatives-votes-table-cell w20" style="width: 19%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
24
|
-
<%= current_initiative.reference %>
|
25
|
-
</div>
|
26
|
-
<div class="initiatives-votes-table-cell w20" style="width: 19%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
27
|
-
<%= translated_attribute(current_initiative.title) %>
|
28
|
-
</div>
|
29
|
-
<div class="initiatives-votes-table-cell w20" style="width: 19%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
30
|
-
<%= current_initiative.signature_start_date %>
|
31
|
-
</div>
|
32
|
-
<div class="initiatives-votes-table-cell w20" style="width: 19%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
33
|
-
<%= current_initiative.signature_end_date %>
|
34
|
-
</div>
|
35
|
-
<div class="initiatives-votes-table-cell w20" style="width: 19%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
36
|
-
<%= @votes.count %>
|
37
|
-
</div>
|
38
|
-
</div>
|
39
|
-
</div>
|
40
|
-
<br>
|
41
|
-
<br>
|
42
|
-
<div class="initiatives-votes-table" style="width: 100%; display: block; border: 1pt solid black;">
|
43
|
-
<div class="initiatives-votes-table-header" style="background-color: lightgray; display: inline-block; width: 100%; font-size: 12pt; font-weight: bold; border-bottom: 1pt solid black;">
|
44
|
-
<div class="initiatives-votes-table-cell w11" style="width: 9.4%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
45
|
-
<%= t("models.initiatives_votes.fields.initiative_id", scope: "decidim.admin") %>
|
46
|
-
</div>
|
47
|
-
<div class="initiatives-votes-table-cell w11" style="width: 9.4%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
48
|
-
<%= t("models.initiatives_votes.fields.initiative_title", scope: "decidim.admin") %>
|
49
|
-
</div>
|
50
|
-
<div class="initiatives-votes-table-cell w11" style="width: 9.4%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
51
|
-
<%= t("models.initiatives_votes.fields.name_and_surname", scope: "decidim.admin") %>
|
52
|
-
</div>
|
53
|
-
<div class="initiatives-votes-table-cell w11" style="width: 9.4%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
54
|
-
<%= t("models.initiatives_votes.fields.document_number", scope: "decidim.admin") %>
|
55
|
-
</div>
|
56
|
-
<div class="initiatives-votes-table-cell w11" style="width: 9.4%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
57
|
-
<%= t("models.initiatives_votes.fields.date_of_birth", scope: "decidim.admin") %>
|
58
|
-
</div>
|
59
|
-
<div class="initiatives-votes-table-cell w11" style="width: 9.4%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
60
|
-
<%= t("models.initiatives_votes.fields.postal_code", scope: "decidim.admin") %>
|
61
|
-
</div>
|
62
|
-
<div class="initiatives-votes-table-cell w11" style="width: 9.4%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
63
|
-
<%= t("models.initiatives_votes.fields.time_and_date", scope: "decidim.admin") %>
|
64
|
-
</div>
|
65
|
-
<div class="initiatives-votes-table-cell w11" style="width: 9.4%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
66
|
-
<%= t("models.initiatives_votes.fields.timestamp", scope: "decidim.admin") %>
|
67
|
-
</div>
|
68
|
-
<div class="initiatives-votes-table-cell w11" style="width: 9.4%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
69
|
-
<%= t("models.initiatives_votes.fields.hash", scope: "decidim.admin") %>
|
70
|
-
</div>
|
71
|
-
<div class="initiatives-votes-table-cell w11" style="width: 9.4%; padding-left: 5pt; word-wrap: break-word; display: inline-block; float: left; min-height: 36pt;">
|
72
|
-
<%= t("models.initiatives_votes.fields.scope", scope: "decidim.admin") %>
|
73
|
-
</div>
|
74
|
-
</div>
|
75
|
-
<% @votes.each do |vote| %>
|
76
|
-
<%= cell "decidim/initiatives_votes/vote", vote %>
|
77
|
-
<% end %>
|
78
|
-
</div>
|
1
|
+
<%= render partial: "signatures", formats: [:html], locals: {
|
2
|
+
collect_user_extra_fields: current_initiative.type.collect_user_extra_fields,
|
3
|
+
votes: @votes,
|
4
|
+
initiative: current_initiative
|
5
|
+
} %>
|
@@ -1,87 +1,88 @@
|
|
1
1
|
<% add_decidim_page_title(t("decidim.admin.titles.initiatives")) %>
|
2
|
-
<div class="card
|
3
|
-
<div class="
|
4
|
-
<h2 class="
|
5
|
-
<%= t
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
</div>
|
2
|
+
<div class="card" id="initiatives">
|
3
|
+
<div class="item_show__header">
|
4
|
+
<h2 class="item_show__header-title">
|
5
|
+
<%= t("decidim.admin.titles.initiatives") %>
|
6
|
+
|
7
|
+
<% if allowed_to? :export, :initiatives %>
|
8
|
+
<%= export_dropdowns(query) %>
|
9
|
+
<% end %>
|
11
10
|
</h2>
|
12
11
|
</div>
|
13
12
|
<%= admin_filter_selector(:initiatives) %>
|
14
|
-
<div class="
|
15
|
-
<
|
16
|
-
<
|
17
|
-
|
13
|
+
<div class="table-scroll">
|
14
|
+
<table class="table-list">
|
15
|
+
<thead>
|
16
|
+
<tr>
|
17
|
+
<th><%= t("models.initiatives.fields.id", scope: "decidim.admin") %></th>
|
18
|
+
<th class="table-list__left"><%= t("models.initiatives.fields.title", scope: "decidim.admin") %></th>
|
19
|
+
<th><%= t("models.initiatives.fields.state", scope: "decidim.admin") %></th>
|
20
|
+
<th><%= sort_link(query, :supports_count, t("models.initiatives.fields.supports_count", scope: "decidim.admin"), default_order: :desc) %></th>
|
21
|
+
<th><%= sort_link(query, :created_at, t("models.initiatives.fields.created_at", scope: "decidim.admin"), default_order: :desc) %></th>
|
22
|
+
<th><%= sort_link(query, :published_at, t("models.initiatives.fields.published_at", scope: "decidim.admin"), default_order: :desc) %></th>
|
23
|
+
<th class="actions"><%= t ".actions_title" %></th>
|
24
|
+
</tr>
|
25
|
+
</thead>
|
26
|
+
<tbody>
|
27
|
+
<% @initiatives.each do |initiative| %>
|
18
28
|
<tr>
|
19
|
-
<
|
20
|
-
<
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
<
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
<td><%= initiative.supports_count %>/<%= initiative.scoped_type.supports_required %></td>
|
42
|
-
<td><%= l initiative.created_at, format: :short %></td>
|
43
|
-
<td><%= initiative.published_at? ? l(initiative.published_at, format: :short) : "" %></td>
|
44
|
-
<td class="table-list__actions">
|
45
|
-
<% if allowed_to? :preview, :initiative, initiative: initiative %>
|
46
|
-
<%= icon_link_to "eye",
|
47
|
-
decidim_initiatives.initiative_path(initiative.to_param),
|
48
|
-
t(".preview"),
|
49
|
-
class: "action-icon--preview",
|
50
|
-
target: "_blank" %>
|
51
|
-
<% else %>
|
52
|
-
<span class="action-space icon"></span>
|
53
|
-
<% end %>
|
29
|
+
<td><%= initiative.id %></td>
|
30
|
+
<td class="table-list__left">
|
31
|
+
<% if allowed_to? :edit, :initiative, initiative: initiative %>
|
32
|
+
<%= link_to translated_attribute(initiative.title),
|
33
|
+
decidim_admin_initiatives.edit_initiative_path(initiative.to_param) %>
|
34
|
+
<% else %>
|
35
|
+
<%= translated_attribute(initiative.title) %>
|
36
|
+
<% end %>
|
37
|
+
</td>
|
38
|
+
<td><%= humanize_admin_state initiative.state %></td>
|
39
|
+
<td><%= initiative.supports_count %>/<%= initiative.scoped_type.supports_required %></td>
|
40
|
+
<td class="table-list__date"><%= l initiative.created_at, format: :short %></td>
|
41
|
+
<td class="table-list__date"><%= initiative.published_at? ? l(initiative.published_at, format: :short) : "" %></td>
|
42
|
+
<td class="table-list__actions">
|
43
|
+
<% if allowed_to? :edit, :initiative, initiative: initiative %>
|
44
|
+
<%= icon_link_to "pencil-line",
|
45
|
+
decidim_admin_initiatives.edit_initiative_path(initiative.to_param),
|
46
|
+
t("actions.configure", scope: "decidim.admin"),
|
47
|
+
class: "action-icon--edit" %>
|
48
|
+
<% else %>
|
49
|
+
<span class="action-space icon"></span>
|
50
|
+
<% end %>
|
54
51
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
<% else %>
|
61
|
-
<span class="action-space icon"></span>
|
62
|
-
<% end %>
|
52
|
+
<% if allowed_to?(:answer, :initiative, initiative: initiative) %>
|
53
|
+
<%= icon_link_to "chat-1-line", edit_initiative_answer_path(initiative.slug), t("actions.answer", scope: "decidim.initiatives"), class: "action-icon action-icon--answer" %>
|
54
|
+
<% else %>
|
55
|
+
<%= icon "chat-1-line", scope: "decidim.admin", class: "action-icon action-icon--disabled", role: "img", "aria-hidden": true %>
|
56
|
+
<% end %>
|
63
57
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
58
|
+
<% if allowed_to? :read, :initiative, initiative: initiative %>
|
59
|
+
<%= icon_link_to "printer-line",
|
60
|
+
decidim_initiatives.print_initiative_path(initiative),
|
61
|
+
t(".print"),
|
62
|
+
class: "action-icon--print",
|
63
|
+
target: "_blank",
|
64
|
+
data: { "external-link": false } %>
|
65
|
+
<% else %>
|
66
|
+
<span class="action-space icon"></span>
|
67
|
+
<% end %>
|
69
68
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
target:
|
69
|
+
<% if allowed_to? :preview, :initiative, initiative: initiative %>
|
70
|
+
<%= icon_link_to "eye-line",
|
71
|
+
decidim_initiatives.initiative_path(initiative.to_param),
|
72
|
+
t(".preview"),
|
73
|
+
class: "action-icon--preview",
|
74
|
+
target: "_blank",
|
75
|
+
data: { "external-link": false } %>
|
76
76
|
<% else %>
|
77
77
|
<span class="action-space icon"></span>
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
</
|
83
|
-
|
84
|
-
|
85
|
-
</
|
78
|
+
<% end %>
|
79
|
+
|
80
|
+
<%= free_resource_permissions_link(initiative) || content_tag(:span, nil, class: "action-space icon") %>
|
81
|
+
</td>
|
82
|
+
</tr>
|
83
|
+
<% end %>
|
84
|
+
</tbody>
|
85
|
+
</table>
|
86
86
|
</div>
|
87
87
|
</div>
|
88
|
+
<%= decidim_paginate @initiatives %>
|
@@ -1,10 +1,9 @@
|
|
1
|
-
<div class="
|
2
|
-
<div class="card
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
</div>
|
1
|
+
<div class="form__wrapper">
|
2
|
+
<div class="card">
|
3
|
+
<div class="card-section">
|
4
|
+
<div class="row column">
|
5
|
+
<%= form.select :initiatives_order, [[t(".random"),"random"],[t(".date"),"recent"],[t(".signatures"),"most_voted"],[t(".comments"),"most_commented"],[t(".publication_date"),"recently_published"]] %>
|
6
|
+
</div>
|
7
|
+
</div>
|
9
8
|
</div>
|
10
9
|
</div>
|
@@ -1,8 +1,20 @@
|
|
1
1
|
<% add_decidim_page_title(t("decidim.initiatives.admin.initiatives_settings.form.title")) %>
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
<div class="item_show__header">
|
4
|
+
<h2 class="item_show__header-title">
|
5
|
+
<%= t "title", scope: "decidim.initiatives.admin.initiatives_settings.form" %>
|
6
|
+
</h2>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div class="item__edit item__edit-1col">
|
10
|
+
<div class="item__edit-form">
|
11
|
+
<%= decidim_form_for(@form, html: { class: "form form-defaults edit_initiatives_settings" }, url: initiatives_setting_path, method: :put) do |f| %>
|
12
|
+
<%= render partial: "form", object: f %>
|
13
|
+
<div class="item__edit-sticky">
|
14
|
+
<div class="item__edit-sticky-container">
|
15
|
+
<%= f.submit t(".update"), class: "button button__sm button__secondary" %>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
<% end %>
|
7
19
|
</div>
|
8
|
-
|
20
|
+
</div>
|
@@ -1,7 +1,12 @@
|
|
1
|
-
<div class="
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
<div class="form__wrapper">
|
2
|
+
<div class="card pt-4">
|
3
|
+
<div class="card-section">
|
4
|
+
<div class="row column">
|
5
|
+
<%= scopes_select_field form, :decidim_scopes_id, root: nil %>
|
6
|
+
</div>
|
7
|
+
<div class="row column">
|
8
|
+
<%= form.number_field :supports_required, min: 1, step: 1 %>
|
9
|
+
</div>
|
10
|
+
</div>
|
11
|
+
</div>
|
7
12
|
</div>
|
@@ -1,29 +1,23 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title")) %>
|
2
|
-
<div class="card">
|
3
|
-
<div class="card-divider">
|
4
|
-
<h2 class="card-title"><%= t ".title" %></h2>
|
5
|
-
</div>
|
6
|
-
|
7
|
-
<div class="card-section">
|
8
|
-
<div class="row column">
|
9
2
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
<%= f.submit t(".update"), class: "button" %>
|
3
|
+
<div class="item_show__header">
|
4
|
+
<h2 class="item_show__header-title">
|
5
|
+
<%= t ".title" %>
|
6
|
+
</h2>
|
7
|
+
</div>
|
16
8
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
<% end %>
|
9
|
+
<div>
|
10
|
+
<div class="item__edit-form">
|
11
|
+
<%= decidim_form_for @form,
|
12
|
+
url: initiatives_type_initiatives_type_scope_path(params[:initiatives_type_id], current_initiative_type_scope),
|
13
|
+
html: { class: "form form-defaults edit_initiative_type_scope" } do |f| %>
|
23
14
|
|
24
|
-
|
15
|
+
<%= render partial: "form", object: f %>
|
16
|
+
<div class="item__edit-sticky">
|
17
|
+
<div class="item__edit-sticky-container">
|
18
|
+
<%= f.submit t(".update"), class: "button button__sm button__secondary" %>
|
25
19
|
</div>
|
26
|
-
|
27
|
-
|
20
|
+
</div>
|
21
|
+
<% end %>
|
28
22
|
</div>
|
29
23
|
</div>
|
@@ -1,21 +1,23 @@
|
|
1
1
|
<% add_decidim_page_title(t(".title")) %>
|
2
|
-
<div class="card">
|
3
|
-
<div class="card-divider">
|
4
|
-
<h2 class="card-title"><%= t ".title" %></h2>
|
5
|
-
</div>
|
6
2
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
3
|
+
<div class="item_show__header">
|
4
|
+
<h2 class="item_show__header-title">
|
5
|
+
<%= t ".title" %>
|
6
|
+
</h2>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div>
|
10
|
+
<div class="item__edit-form">
|
11
|
+
<%= decidim_form_for @form,
|
12
|
+
url: initiatives_type_initiatives_type_scopes_path(params[:initiatives_type_id]),
|
13
|
+
html: { class: "form form-defaults new_initiatives_type_scopes" } do |f| %>
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
15
|
+
<%= render partial: "form", object: f %>
|
16
|
+
<div class="item__edit-sticky">
|
17
|
+
<div class="item__edit-sticky-container">
|
18
|
+
<%= f.submit t(".create"), class: "button button__sm button__secondary" %>
|
17
19
|
</div>
|
18
|
-
|
19
|
-
|
20
|
+
</div>
|
21
|
+
<% end %>
|
20
22
|
</div>
|
21
23
|
</div>
|
@@ -1,105 +1,122 @@
|
|
1
|
-
<div class="
|
2
|
-
<div class="card-
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
<div class="form__wrapper">
|
2
|
+
<div class="card" data-component="accordion" id="accordion-title">
|
3
|
+
<div class="card-divider">
|
4
|
+
<button class="card-divider-button" data-open="true" data-controls="panel-title" type="button">
|
5
|
+
<%= icon "arrow-right-s-line" %>
|
6
|
+
<h2 class="card-title" id="title">
|
7
|
+
<%= t("initiatives.form.title", scope: "decidim.initiatives.admin") %>
|
8
|
+
</h2>
|
9
|
+
</button>
|
9
10
|
</div>
|
10
11
|
|
11
|
-
<div
|
12
|
-
|
13
|
-
|
12
|
+
<div id="panel-title" class="card-section">
|
13
|
+
<div class="row column">
|
14
|
+
<%= form.translated :text_field, :title, autofocus: true, aria: { label: :title } %>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<div class="row column">
|
18
|
+
<%= form.translated :editor, :description, aria: { label: :description } %>
|
19
|
+
</div>
|
14
20
|
|
15
|
-
|
16
|
-
|
17
|
-
|
21
|
+
<div class="row">
|
22
|
+
<div class="columns">
|
23
|
+
<%= form.upload :banner_image, button_class: "button button__sm button__transparent-secondary" %>
|
24
|
+
</div>
|
18
25
|
</div>
|
19
26
|
</div>
|
20
27
|
</div>
|
21
|
-
</div>
|
22
|
-
|
23
|
-
<div class="card">
|
24
|
-
<div class="card-divider">
|
25
|
-
<h2 class="card-title"><%= t ".options" %></h2>
|
26
|
-
</div>
|
27
28
|
|
28
|
-
<div class="card-
|
29
|
-
<div class="
|
30
|
-
|
29
|
+
<div class="card" data-component="accordion" id="accordion-options">
|
30
|
+
<div class="card-divider">
|
31
|
+
<button class="card-divider-button" data-open="true" data-controls="panel-options" type="button">
|
32
|
+
<%= icon "arrow-right-s-line" %>
|
33
|
+
<h2 class="card-title" id="options">
|
34
|
+
<%= t("initiatives_types.form.options", scope: "decidim.initiatives.admin") %>
|
35
|
+
</h2>
|
36
|
+
</button>
|
31
37
|
</div>
|
32
38
|
|
33
|
-
<div
|
34
|
-
|
35
|
-
|
39
|
+
<div id="panel-options" class="card-section">
|
40
|
+
<div class="row column">
|
41
|
+
<%= form.select :signature_type, form.object.signature_type_options %>
|
42
|
+
</div>
|
36
43
|
|
37
|
-
|
38
|
-
|
39
|
-
|
44
|
+
<div class="row column">
|
45
|
+
<%= form.check_box :attachments_enabled %>
|
46
|
+
</div>
|
40
47
|
|
41
|
-
|
42
|
-
|
43
|
-
|
48
|
+
<div class="row column">
|
49
|
+
<%= form.check_box :undo_online_signatures_enabled %>
|
50
|
+
</div>
|
44
51
|
|
45
|
-
|
46
|
-
|
47
|
-
|
52
|
+
<div class="row column">
|
53
|
+
<%= form.check_box :custom_signature_end_date_enabled %>
|
54
|
+
</div>
|
48
55
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
</div>
|
56
|
+
<div class="row column">
|
57
|
+
<%= form.check_box :area_enabled %>
|
58
|
+
</div>
|
53
59
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
60
|
+
<div class="row column">
|
61
|
+
<%= form.check_box :child_scope_threshold_enabled, help_text: t(".child_scope_threshold_enabled_help_html") %>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<div class="row column">
|
65
|
+
<%= form.check_box :only_global_scope_enabled, help_text: t(".only_global_scope_enabled_help_html") %>
|
66
|
+
</div>
|
58
67
|
|
59
|
-
|
60
|
-
|
68
|
+
<div id="promoting-committee-details">
|
69
|
+
<div class="row column">
|
70
|
+
<%= form.check_box :promoting_committee_enabled %>
|
71
|
+
</div>
|
61
72
|
|
62
|
-
|
63
|
-
|
73
|
+
<div class="row column minimum-committee-members-details">
|
74
|
+
<%= form.number_field :minimum_committee_members, min: 0, step: 1 %>
|
75
|
+
</div>
|
64
76
|
</div>
|
65
|
-
</div>
|
66
77
|
|
67
|
-
|
68
|
-
|
69
|
-
|
78
|
+
<div class="row column">
|
79
|
+
<%= form.check_box :comments_enabled %>
|
80
|
+
</div>
|
70
81
|
|
71
|
-
|
72
|
-
|
73
|
-
|
82
|
+
<div class="row column">
|
83
|
+
<%= form.check_box :collect_user_extra_fields %>
|
84
|
+
</div>
|
74
85
|
|
75
|
-
|
76
|
-
|
86
|
+
<div class="row column">
|
87
|
+
<%= form.translated :editor, :extra_fields_legal_information, aria: { label: :extra_fields_legal_information } %>
|
88
|
+
</div>
|
77
89
|
</div>
|
78
90
|
</div>
|
79
|
-
</div>
|
80
|
-
|
81
|
-
<div class="card">
|
82
|
-
<div class="card-divider">
|
83
|
-
<h2 class="card-title"><%= t ".authorizations" %></h2>
|
84
|
-
</div>
|
85
91
|
|
86
|
-
<div class="card-
|
87
|
-
<div class="
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
%>
|
92
|
+
<div class="card" data-component="accordion" id="accordion-authorizations">
|
93
|
+
<div class="card-divider">
|
94
|
+
<button class="card-divider-button" data-open="true" data-controls="panel-authorizations" type="button">
|
95
|
+
<%= icon "arrow-right-s-line" %>
|
96
|
+
<h2 class="card-title" id="authorizations">
|
97
|
+
<%= t("initiatives_types.form.authorizations", scope: "decidim.initiatives.admin") %>
|
98
|
+
</h2>
|
99
|
+
</button>
|
95
100
|
</div>
|
96
101
|
|
97
|
-
|
102
|
+
<div id="panel-authorizations" class="card-section">
|
98
103
|
<div class="row column">
|
99
|
-
<%=
|
104
|
+
<%=
|
105
|
+
form.select(
|
106
|
+
:document_number_authorization_handler,
|
107
|
+
current_organization.available_authorizations.map { |name| [t("#{name}.name", scope: "decidim.authorization_handlers"), name] },
|
108
|
+
include_blank: true
|
109
|
+
)
|
110
|
+
%>
|
100
111
|
</div>
|
101
|
-
|
112
|
+
|
113
|
+
<% if current_organization.available_authorizations.include? "sms" %>
|
114
|
+
<div class="row column">
|
115
|
+
<%= form.check_box :validate_sms_code_on_votes %>
|
116
|
+
</div>
|
117
|
+
<% end %>
|
118
|
+
</div>
|
102
119
|
</div>
|
103
|
-
</div>
|
104
120
|
|
105
|
-
<%=
|
121
|
+
<%= append_javascript_pack_tag "decidim_initiatives_admin" %>
|
122
|
+
</div>
|