decidim-initiatives 0.26.2 → 0.27.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/app/cells/decidim/initiatives/content_blocks/highlighted_initiatives/show.erb +1 -1
- data/app/commands/decidim/initiatives/admin/create_initiative_type.rb +7 -3
- data/app/commands/decidim/initiatives/admin/create_initiative_type_scope.rb +3 -3
- data/app/commands/decidim/initiatives/admin/publish_initiative.rb +1 -1
- 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 +19 -14
- data/app/commands/decidim/initiatives/admin/update_initiative_type_scope.rb +1 -1
- data/app/commands/decidim/initiatives/admin/update_initiatives_settings.rb +46 -0
- data/app/commands/decidim/initiatives/approve_membership_request.rb +1 -1
- data/app/commands/decidim/initiatives/create_initiative.rb +1 -1
- data/app/commands/decidim/initiatives/revoke_membership_request.rb +1 -1
- 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 +1 -1
- data/app/commands/decidim/initiatives/validate_mobile_phone.rb +1 -1
- data/app/commands/decidim/initiatives/validate_sms_code.rb +1 -1
- data/app/commands/decidim/initiatives/vote_initiative.rb +2 -6
- data/app/controllers/concerns/decidim/initiatives/orderable.rb +8 -0
- data/app/controllers/decidim/initiatives/admin/initiatives_controller.rb +3 -2
- data/app/controllers/decidim/initiatives/admin/initiatives_settings_controller.rb +49 -0
- data/app/controllers/decidim/initiatives/admin/initiatives_types_controller.rb +6 -3
- data/app/controllers/decidim/initiatives/committee_requests_controller.rb +1 -1
- data/app/controllers/decidim/initiatives/create_initiative_controller.rb +2 -2
- data/app/controllers/decidim/initiatives/initiatives_controller.rb +18 -22
- data/app/forms/decidim/initiatives/admin/initiative_form.rb +4 -4
- data/app/forms/decidim/initiatives/admin/initiative_type_form.rb +2 -1
- data/app/forms/decidim/initiatives/admin/initiatives_settings_form.rb +14 -0
- data/app/forms/decidim/initiatives/vote_form.rb +0 -3
- data/app/helpers/decidim/initiatives/create_initiative_helper.rb +3 -3
- data/app/helpers/decidim/initiatives/initiative_helper.rb +6 -4
- data/app/mailers/decidim/initiatives/initiatives_mailer.rb +2 -2
- data/app/models/decidim/initiative.rb +60 -9
- data/app/models/decidim/initiatives_settings.rb +17 -0
- data/app/models/decidim/initiatives_type.rb +5 -0
- data/app/permissions/decidim/initiatives/admin/permissions.rb +10 -3
- data/app/permissions/decidim/initiatives/permissions.rb +1 -1
- data/app/presenters/decidim/initiatives/admin_log/initiatives_settings_presenter.rb +27 -0
- data/app/presenters/decidim/initiatives/admin_log/initiatives_type_presenter.rb +45 -0
- data/app/presenters/decidim/initiatives/initiative_stats_presenter.rb +4 -2
- data/app/queries/decidim/initiatives/admin/admin_users.rb +1 -1
- data/app/queries/decidim/initiatives/admin/manageable_initiatives.rb +1 -1
- data/app/queries/decidim/initiatives/freetext_initiative_types.rb +1 -1
- data/app/queries/decidim/initiatives/initiative_types.rb +1 -1
- data/app/queries/decidim/initiatives/initiatives_created.rb +1 -1
- data/app/queries/decidim/initiatives/initiatives_promoted.rb +1 -1
- data/app/queries/decidim/initiatives/organization_prioritized_initiatives.rb +1 -1
- data/app/queries/decidim/initiatives/outdated_validating_initiatives.rb +1 -1
- data/app/queries/decidim/initiatives/similar_initiatives.rb +1 -1
- 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/initiative_search.rb +11 -102
- data/app/services/decidim/initiatives/pdf_signature_example.rb +15 -16
- data/app/services/decidim/initiatives/status_change_notifier.rb +1 -1
- data/app/views/decidim/initiatives/admin/initiatives_settings/_form.html.erb +10 -0
- data/app/views/decidim/initiatives/admin/initiatives_settings/edit.html.erb +6 -0
- data/app/views/decidim/initiatives/admin/initiatives_types/_form.html.erb +4 -0
- data/app/views/decidim/initiatives/create_initiative/fill_data.html.erb +3 -1
- data/app/views/decidim/initiatives/initiatives/_filters.html.erb +5 -5
- data/app/views/decidim/initiatives/initiatives/_form.html.erb +3 -1
- data/app/views/decidim/initiatives/initiatives/show.html.erb +4 -2
- data/app/views/layouts/decidim/_initiative_header_steps.html.erb +3 -1
- data/app/views/layouts/decidim/initiative_creation.html.erb +4 -1
- data/app/views/layouts/decidim/initiative_signature_creation.html.erb +4 -1
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +1 -1
- data/config/locales/bg.yml +1 -0
- data/config/locales/ca.yml +26 -1
- data/config/locales/cs.yml +26 -1
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +1 -0
- data/config/locales/el.yml +1 -0
- data/config/locales/en.yml +25 -1
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +26 -1
- data/config/locales/es-PY.yml +26 -1
- data/config/locales/es.yml +26 -1
- data/config/locales/et.yml +1 -0
- data/config/locales/eu.yml +1 -0
- data/config/locales/fi-plain.yml +25 -0
- data/config/locales/fi.yml +25 -0
- data/config/locales/fr-CA.yml +10 -1
- data/config/locales/fr.yml +10 -1
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/gl.yml +1 -0
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +111 -0
- data/config/locales/id-ID.yml +1 -0
- data/config/locales/is-IS.yml +2 -1
- data/config/locales/it.yml +1 -0
- data/config/locales/ja.yml +26 -1
- data/config/locales/ko.yml +1 -0
- data/config/locales/lb.yml +1 -0
- data/config/locales/lt.yml +1 -0
- data/config/locales/lv.yml +1 -0
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +1 -0
- data/config/locales/no.yml +1 -0
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +1 -0
- data/config/locales/pt-BR.yml +2 -1
- data/config/locales/pt.yml +1 -0
- data/config/locales/ro-RO.yml +2 -0
- data/config/locales/ru.yml +1 -0
- data/config/locales/si-LK.yml +1 -0
- data/config/locales/sk.yml +1 -0
- data/config/locales/sl.yml +1 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +1 -0
- data/config/locales/sv.yml +7 -0
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +1 -0
- data/config/locales/uk.yml +1 -0
- data/config/locales/val-ES.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +1 -0
- data/config/locales/zh-TW.yml +1 -0
- data/db/migrate/20220518053612_add_comments_enabled_to_initiative_types.rb +7 -0
- data/db/migrate/20220527130640_create_decidim_initiatives_settings.rb +10 -0
- data/lib/decidim/initiatives/admin_engine.rb +16 -0
- data/lib/decidim/initiatives/participatory_space.rb +3 -3
- data/lib/decidim/initiatives/test/factories.rb +34 -1
- data/lib/decidim/initiatives/version.rb +1 -1
- data/lib/gem_overrides/origami/date.rb +47 -0
- metadata +28 -31
@@ -2,114 +2,23 @@
|
|
2
2
|
|
3
3
|
module Decidim
|
4
4
|
module Initiatives
|
5
|
-
#
|
6
|
-
|
7
|
-
|
5
|
+
# This service scopes the meeting searches with parameters that cannot be
|
6
|
+
# passed from the user interface.
|
7
|
+
class InitiativeSearch < ResourceSearch
|
8
|
+
attr_reader :author
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
# per_page - The number of proposals to return per page.
|
12
|
-
def initialize(options = {})
|
13
|
-
super(options)
|
14
|
-
end
|
15
|
-
|
16
|
-
def base_query
|
17
|
-
Decidim::Initiative
|
18
|
-
.includes(scoped_type: [:scope])
|
19
|
-
.joins("JOIN decidim_users ON decidim_users.id = decidim_initiatives.decidim_author_id")
|
20
|
-
.where(organization: options[:organization])
|
21
|
-
.published
|
22
|
-
end
|
10
|
+
def build(params)
|
11
|
+
return super if search_context == :admin
|
23
12
|
|
24
|
-
|
25
|
-
def search_search_text
|
26
|
-
query
|
27
|
-
.where(Arel.sql("title->>'#{current_locale}' ILIKE ?").to_s, "%#{search_text}%")
|
28
|
-
.or(
|
29
|
-
query.where(
|
30
|
-
Arel.sql("description->>'#{current_locale}' ILIKE ?").to_s, "%#{search_text}%"
|
31
|
-
)
|
32
|
-
)
|
33
|
-
.or(
|
34
|
-
query.where(
|
35
|
-
"cast(decidim_initiatives.id as text) ILIKE ?", "%#{search_text}%"
|
36
|
-
)
|
37
|
-
)
|
38
|
-
.or(
|
39
|
-
query.where(
|
40
|
-
"decidim_users.name ILIKE ? OR decidim_users.nickname ILIKE ?", "%#{search_text}%", "%#{search_text}%"
|
41
|
-
)
|
42
|
-
)
|
43
|
-
end
|
44
|
-
|
45
|
-
# Handle the state filter
|
46
|
-
def search_state
|
47
|
-
ids = []
|
48
|
-
ids += state.member?("accepted") ? query.accepted.ids : []
|
49
|
-
ids += state.member?("rejected") ? query.rejected.ids : []
|
50
|
-
ids += state.member?("answered") ? query.answered.ids : []
|
51
|
-
ids += state.member?("open") ? query.open.ids : []
|
52
|
-
ids += state.member?("closed") ? query.closed.ids : []
|
53
|
-
|
54
|
-
query.where(id: ids)
|
55
|
-
end
|
13
|
+
@author = params[:author]
|
56
14
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
types = InitiativesTypeScope.where(decidim_initiatives_types_id: type_ids).pluck(:id)
|
61
|
-
|
62
|
-
query.where(scoped_type: types)
|
63
|
-
end
|
64
|
-
|
65
|
-
def search_author
|
66
|
-
if author == "myself" && options[:current_user]
|
67
|
-
co_authoring_initiative_ids = Decidim::InitiativesCommitteeMember.where(
|
68
|
-
decidim_users_id: options[:current_user].id
|
69
|
-
).pluck(:decidim_initiatives_id)
|
70
|
-
|
71
|
-
query.where(decidim_author_id: options[:current_user].id, decidim_author_type: Decidim::UserBaseEntity.name)
|
72
|
-
.or(query.where(id: co_authoring_initiative_ids))
|
73
|
-
.unscope(where: :published_at)
|
15
|
+
if params[:author] == "myself" && user
|
16
|
+
add_scope(:authored_by, user)
|
74
17
|
else
|
75
|
-
|
18
|
+
add_scope(:published, nil)
|
76
19
|
end
|
77
|
-
end
|
78
|
-
|
79
|
-
def search_scope_id
|
80
|
-
return query if scope_ids.include?("all")
|
81
|
-
|
82
|
-
clean_scope_ids = scope_ids
|
83
|
-
|
84
|
-
conditions = []
|
85
|
-
conditions << "decidim_initiatives_type_scopes.decidim_scopes_id IS NULL" if clean_scope_ids.delete("global")
|
86
|
-
conditions.concat(["? = ANY(decidim_scopes.part_of)"] * clean_scope_ids.count) if clean_scope_ids.any?
|
87
|
-
|
88
|
-
query.joins(:scoped_type).references(:decidim_scopes).where(conditions.join(" OR "), *clean_scope_ids.map(&:to_i))
|
89
|
-
end
|
90
|
-
|
91
|
-
def search_area_id
|
92
|
-
return query if area_ids.include?("all")
|
93
|
-
|
94
|
-
query.where(decidim_area_id: area_ids)
|
95
|
-
end
|
96
|
-
|
97
|
-
private
|
98
|
-
|
99
|
-
# Private: Returns an array with checked type ids.
|
100
|
-
def type_ids
|
101
|
-
[type_id].flatten
|
102
|
-
end
|
103
|
-
|
104
|
-
# Private: Returns an array with checked scope ids.
|
105
|
-
def scope_ids
|
106
|
-
[scope_id].flatten
|
107
|
-
end
|
108
20
|
|
109
|
-
|
110
|
-
# areas ids joined by _.
|
111
|
-
def area_ids
|
112
|
-
area_id.map { |id| id.split("_") }.flatten.uniq
|
21
|
+
super
|
113
22
|
end
|
114
23
|
end
|
115
24
|
end
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require "origami"
|
4
4
|
require "tempfile"
|
5
|
+
require_relative "../../../../lib/gem_overrides/origami/date"
|
5
6
|
|
6
7
|
module Decidim
|
7
8
|
module Initiatives
|
@@ -17,23 +18,21 @@ module Decidim
|
|
17
18
|
|
18
19
|
# Public: PDF signed using a new certificate generated by the service
|
19
20
|
def signed_pdf
|
20
|
-
@signed_pdf ||=
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
)
|
34
|
-
end
|
35
|
-
extract_signed_pdf(parsed_pdf)
|
21
|
+
@signed_pdf ||= StringIO.open(pdf) do |stream|
|
22
|
+
parsed_pdf = Origami::PDF.read(stream)
|
23
|
+
parsed_pdf.append_page do |page|
|
24
|
+
page.add_annotation(signature_annotation)
|
25
|
+
parsed_pdf.sign(
|
26
|
+
certificate,
|
27
|
+
key,
|
28
|
+
method: "adbe.pkcs7.detached",
|
29
|
+
annotation: signature_annotation,
|
30
|
+
location: location,
|
31
|
+
contact: contact,
|
32
|
+
issuer: issuer
|
33
|
+
)
|
36
34
|
end
|
35
|
+
extract_signed_pdf(parsed_pdf)
|
37
36
|
end
|
38
37
|
end
|
39
38
|
|
@@ -13,7 +13,7 @@ module Decidim
|
|
13
13
|
# PUBLIC
|
14
14
|
# Notifies when an initiative has changed its status.
|
15
15
|
#
|
16
|
-
# * created: Notifies the author that
|
16
|
+
# * created: Notifies the author that their initiative has been created.
|
17
17
|
#
|
18
18
|
# * validating: Administrators will be notified about the initiative that
|
19
19
|
# requests technical validation.
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<div class="card">
|
2
|
+
<div class="card-divider">
|
3
|
+
<h2 class="card-title"><%= t(".title") %></h2>
|
4
|
+
</div>
|
5
|
+
<div class="card-section">
|
6
|
+
<div class="row column">
|
7
|
+
<%= form.select :initiatives_order, [[t(".random"),"random"],[t(".date"),"recent"],[t(".signatures"),"most_voted"],[t(".comments"),"most_commented"],[t(".publication_date"),"recently_published"]] %>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
</div>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<%= decidim_form_for(@form, html: { class: "form edit_initiatives_settings" }, url: initiatives_setting_path, method: :put) do |f| %>
|
2
|
+
<%= render partial: "form", object: f %>
|
3
|
+
<div class="button--double form-general-submit">
|
4
|
+
<%= f.submit t(".update") %>
|
5
|
+
</div>
|
6
|
+
<% end %>
|
@@ -82,7 +82,9 @@
|
|
82
82
|
<legend><%= t("attachment_legend", scope: "decidim.initiatives.form") %></legend>
|
83
83
|
|
84
84
|
<div class="row column">
|
85
|
-
<%= f.
|
85
|
+
<%= f.attachment :documents,
|
86
|
+
multiple: true,
|
87
|
+
label: t("add_attachments", scope: "decidim.initiatives.form") %>
|
86
88
|
</div>
|
87
89
|
</fieldset>
|
88
90
|
<% end %>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="filters__section">
|
3
3
|
<div class="filters__search">
|
4
4
|
<div class="input-group">
|
5
|
-
<%= form.search_field :
|
5
|
+
<%= form.search_field :search_text_cont, label: false, class: "input-group-field", placeholder: t(".search"), title: t(".search"), "aria-label": t(".search") %>
|
6
6
|
<div class="input-group-button">
|
7
7
|
<button type="submit" class="button">
|
8
8
|
<%= icon "magnifying-glass", aria_label: t(".search"), role: "img" %>
|
@@ -12,15 +12,15 @@
|
|
12
12
|
</div>
|
13
13
|
</div>
|
14
14
|
|
15
|
-
<%= form.check_boxes_tree :
|
15
|
+
<%= form.check_boxes_tree :with_any_state, filter_states_values, legend_title: t(".state") %>
|
16
16
|
|
17
|
-
<%= form.check_boxes_tree :
|
17
|
+
<%= form.check_boxes_tree :with_any_scope, filter_scopes_values, legend_title: t(".scope") %>
|
18
18
|
|
19
19
|
<% unless single_initiative_type? %>
|
20
|
-
<%= form.check_boxes_tree :
|
20
|
+
<%= form.check_boxes_tree :with_any_type, filter_types_values, legend_title: t(".type") %>
|
21
21
|
<% end %>
|
22
22
|
|
23
|
-
<%= form.check_boxes_tree :
|
23
|
+
<%= form.check_boxes_tree :with_any_area, filter_areas_values, legend_title: t(".area") %>
|
24
24
|
|
25
25
|
<% if current_user %>
|
26
26
|
<%= form.collection_radio_buttons :author,
|
@@ -40,7 +40,9 @@ edit_link(
|
|
40
40
|
<%= render partial: "vote_cabin", locals: { initiative: current_initiative } %>
|
41
41
|
</div>
|
42
42
|
<% end %>
|
43
|
-
|
43
|
+
<% if current_initiative.commentable? %>
|
44
|
+
<%= render partial: "interactions" %>
|
45
|
+
<% end %>
|
44
46
|
<% else %>
|
45
47
|
<%= link_to t(".edit"),
|
46
48
|
edit_initiative_path(current_initiative),
|
@@ -90,4 +92,4 @@ edit_link(
|
|
90
92
|
</div>
|
91
93
|
</div>
|
92
94
|
|
93
|
-
<%= comments_for current_initiative if current_initiative.published? %>
|
95
|
+
<%= comments_for current_initiative if current_initiative.commentable? && current_initiative.published? %>
|
@@ -2,7 +2,9 @@
|
|
2
2
|
<div class="columns mediumlarge-4">
|
3
3
|
<div class="process-header__phase">
|
4
4
|
<div>
|
5
|
-
<span class="phase-title"
|
5
|
+
<span class="phase-title">
|
6
|
+
<%= t("signature_interval.title", scope: "decidim.initiatives") %>
|
7
|
+
</span>
|
6
8
|
<span class="phase-date">
|
7
9
|
<%= l(initiative.signature_start_date, format: :default) %>
|
8
10
|
-
|
data/config/locales/am-ET.yml
CHANGED
data/config/locales/ar.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
ar:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -217,7 +218,6 @@ ar:
|
|
217
218
|
destroy: حذف
|
218
219
|
update: تحديث
|
219
220
|
form:
|
220
|
-
child_scope_threshold_enabled_help: 'هذا الاعداد لا يدعم التصويت الغير الكترونى, لكنه يدعم المجالات الفرعيه و يعمل مع مؤثق أصوات مربوط مع مجال المستخدم, تاكد انك قمت بأختيار طرق التوثيق, بالاسفل أعدادات التوثيق. لكى يعمل مع المجالات تحتاج بظبط الأعدادات بشكل هرمى: ١ أب لكل عدد من الأبناء. لمعلومات أكثر عن كيفيه ظبط الاعدادت، قم بتصفح هذا <a href="https://docs.decidim.org/en/admin/spaces/initiatives/" target="_blank">الرابط</a>.'
|
221
221
|
title: معلومات عامة
|
222
222
|
initiative_type_scopes:
|
223
223
|
title: نطاقات لنوع المبادرة
|
data/config/locales/bg.yml
CHANGED
data/config/locales/ca.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
ca:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -24,6 +25,7 @@ ca:
|
|
24
25
|
banner_image: Imatge del bàner
|
25
26
|
child_scope_threshold_enabled: Activar signatures per subàmbit
|
26
27
|
collect_user_extra_fields: Recopilar les dades personals de la participant amb la signatura
|
28
|
+
comments_enabled: Habilitar comentaris
|
27
29
|
custom_signature_end_date_enabled: Permet a les autores triar la fi del període de recollida de signatures
|
28
30
|
description: Descripció
|
29
31
|
document_number_authorization_handler: Autorització per verificar el número de document en les signatures
|
@@ -84,12 +86,17 @@ ca:
|
|
84
86
|
label: Tipus
|
85
87
|
search_placeholder:
|
86
88
|
title_or_description_or_id_string_or_author_name_or_author_nickname_cont: Cercar %{collection} per títol, descripció, ID o autoria.
|
89
|
+
initiatives_settings:
|
90
|
+
update:
|
91
|
+
error: S'ha produït un error
|
92
|
+
success: La configuració de les iniciatives s'ha actualitzat correctament
|
87
93
|
menu:
|
88
94
|
attachments: Adjunts
|
89
95
|
committee_members: Membres de la comissió
|
90
96
|
components: Components
|
91
97
|
information: Informació
|
92
98
|
initiatives: Iniciatives
|
99
|
+
initiatives_settings: Configuració
|
93
100
|
initiatives_types: Tipus d'iniciatives
|
94
101
|
moderations: Moderacions
|
95
102
|
models:
|
@@ -241,6 +248,16 @@ ca:
|
|
241
248
|
update:
|
242
249
|
error: S'ha produït un error
|
243
250
|
success: La iniciativa ciutadana s'ha actualitzat correctament
|
251
|
+
initiatives_settings:
|
252
|
+
edit:
|
253
|
+
update: Actualitzar
|
254
|
+
form:
|
255
|
+
comments: Més comentades
|
256
|
+
date: Més recents
|
257
|
+
publication_date: Publicada més recentment
|
258
|
+
random: Aleatori
|
259
|
+
signatures: Més signades
|
260
|
+
title: Configuració d'iniciatives
|
244
261
|
initiatives_type_scopes:
|
245
262
|
create:
|
246
263
|
error: S'ha produït un error
|
@@ -272,7 +289,7 @@ ca:
|
|
272
289
|
update: Actualitza
|
273
290
|
form:
|
274
291
|
authorizations: Configuració de l'autorització
|
275
|
-
child_scope_threshold_enabled_help: 'Aquest ajust de configuració no admet les votacions sense connexi
|
292
|
+
child_scope_threshold_enabled_help: 'Aquest ajust de configuració no admet les votacions sense connexió. Habilita els subàmbits i funciona amb un gestor d''autoritzacions que associa un àmbit a la participant. Assegura''t de seleccionar aquesta autorització, més avall a la configuració d''autoritzacions. Per a que funcioni, els àmbits han de configurar-se de forma jerárquica: 1 Pare - N fills. Per a més informació sobre com funciona aquesta configuració, <a href="https://docs.decidim.org/en/admin/spaces/initiatives/" target="_blank">veure la documentació sobre l''administració d''iniciatives</a>.'
|
276
293
|
only_global_scope_enabled_help: Marca aquesta casella si has habilitat "Activar signatures per subàmbit" i vas configurar l'àmbit global com l'àmbit principal. En habilitar aquesta casella, la selecció del tipus d'iniciativa s'ometrà en l'assistent de creació d'iniciatives. Per a més informació sobre com funciona aquesta configuració, consulta aquest <a href="https://docs.decidim.org/en/admin/spaces/initiatives/" target="_blank">enllaç</a>.
|
277
294
|
options: Opcions
|
278
295
|
title: Informació general
|
@@ -290,6 +307,12 @@ ca:
|
|
290
307
|
send_to_technical_validation: "%{user_name} ha enviat la iniciativa %{resource_name} a la validació tècnica"
|
291
308
|
unpublish: "%{user_name} ha descartat la iniciativa %{resource_name}"
|
292
309
|
update: "%{user_name} ha actualitzat la iniciativa %{resource_name}"
|
310
|
+
initiatives_settings:
|
311
|
+
update: "%{user_name} ha actualitzat la configuració de les iniciatives"
|
312
|
+
initiatives_type:
|
313
|
+
create: "%{user_name} ha creat el tipus d'iniciativa %{resource_name}"
|
314
|
+
delete: "%{user_name} ha esborrat el tipus d'iniciativa %{resource_name}"
|
315
|
+
update: "%{user_name} ha actualitzat el tipus d'iniciativa %{resource_name}"
|
293
316
|
admin_states:
|
294
317
|
accepted: Ha aconseguit les signatures necessàries
|
295
318
|
created: Creada
|
@@ -565,6 +588,8 @@ ca:
|
|
565
588
|
published: Publicada
|
566
589
|
rejected: No ha aconseguit les signatures
|
567
590
|
validating: Validació tècnica
|
591
|
+
signature_interval:
|
592
|
+
title: Període de recollida de signatures
|
568
593
|
states:
|
569
594
|
accepted: Acceptat
|
570
595
|
expired: Vençut
|
data/config/locales/cs.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
cs:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -24,6 +25,7 @@ cs:
|
|
24
25
|
banner_image: Obrázek banneru
|
25
26
|
child_scope_threshold_enabled: Povolit podpisy podřízené oblasti působnosti
|
26
27
|
collect_user_extra_fields: Sbírejte osobní údaje uživatelů podpisem
|
28
|
+
comments_enabled: Povolit komentáře
|
27
29
|
custom_signature_end_date_enabled: Povolit autorům zvolit konec doby sběru podpisů
|
28
30
|
description: Popis
|
29
31
|
document_number_authorization_handler: Autorizace k ověření čísla dokumentu pro podpisy
|
@@ -90,12 +92,17 @@ cs:
|
|
90
92
|
label: Typ
|
91
93
|
search_placeholder:
|
92
94
|
title_or_description_or_id_string_or_author_name_or_author_nickname_cont: Hledat %{collection} podle názvu, popisu, ID nebo jména autora.
|
95
|
+
initiatives_settings:
|
96
|
+
update:
|
97
|
+
error: Došlo k chybě
|
98
|
+
success: Nastavení iniciativ bylo úspěšně aktualizováno
|
93
99
|
menu:
|
94
100
|
attachments: Přílohy
|
95
101
|
committee_members: Členové výboru
|
96
102
|
components: Komponenty
|
97
103
|
information: Informace
|
98
104
|
initiatives: Iniciativy
|
105
|
+
initiatives_settings: Nastavení
|
99
106
|
initiatives_types: Typy iniciativ
|
100
107
|
moderations: Moderování
|
101
108
|
models:
|
@@ -247,6 +254,16 @@ cs:
|
|
247
254
|
update:
|
248
255
|
error: Došlo k chybě
|
249
256
|
success: Iniciativa občanů byla úspěšně aktualizována
|
257
|
+
initiatives_settings:
|
258
|
+
edit:
|
259
|
+
update: Aktualizovat
|
260
|
+
form:
|
261
|
+
comments: Nejvíce komentované
|
262
|
+
date: Nejnovější
|
263
|
+
publication_date: Nedávno publikované
|
264
|
+
random: Náhodně
|
265
|
+
signatures: S nejvíce podpisy
|
266
|
+
title: Nastavení pro iniciativy
|
250
267
|
initiatives_type_scopes:
|
251
268
|
create:
|
252
269
|
error: Došlo k chybě
|
@@ -278,7 +295,7 @@ cs:
|
|
278
295
|
update: Aktualizovat
|
279
296
|
form:
|
280
297
|
authorizations: Nastavení autorizace
|
281
|
-
child_scope_threshold_enabled_help: 'Tento příznak
|
298
|
+
child_scope_threshold_enabled_help: 'Tento konfigurační příznak nepodporuje offline hlasování. Umožňuje podrozsahy a pracuje s obslužnou rutinou autorizace, která uživateli přiřazuje rozsah. Ujistěte se, že jste vybrali toto oprávnění níže v nastavení oprávnění. Aby to fungovalo, musí být rozsahy nakonfigurovány hierarchickým způsobem: 1 nadřazený – N podřízený. Další informace o tom, jak tato konfigurace funguje, najdete na <a href="https://docs.decidim.org/en/admin/spaces/initiatives/" target="_blank">stránce dokumentace pro administraci iniciativ</a>.'
|
282
299
|
only_global_scope_enabled_help: Zaškrtněte tuto poznámku, pokud jste povolili "Podřazená oblast působnosti" a nakonfigurovali globální rozsah jako vaši nadřazenou oblast působnosti. Povolením této možnosti bude výběr typu iniciativy přeskočeno v průvodci vytvořením iniciativy. Více informací o tom, jak tato konfigurace funguje, naleznete na tomto <a href="https://docs.decidim.org/en/admin/spaces/initiatives/" target="_blank">odkazu</a>.
|
283
300
|
options: Možnosti
|
284
301
|
title: Obecná informace
|
@@ -296,6 +313,12 @@ cs:
|
|
296
313
|
send_to_technical_validation: "%{user_name} zaslala %{resource_name} iniciativu k technickému ověření"
|
297
314
|
unpublish: "%{user_name} zrušil iniciativu %{resource_name}"
|
298
315
|
update: "%{user_name} aktualizoval iniciativu %{resource_name}"
|
316
|
+
initiatives_settings:
|
317
|
+
update: "%{user_name} aktualizoval nastavení iniciativ"
|
318
|
+
initiatives_type:
|
319
|
+
create: "%{user_name} vytvořil typ iniciativ %{resource_name}"
|
320
|
+
delete: "%{user_name} odstranil typ iniciativ %{resource_name}"
|
321
|
+
update: "%{user_name} aktualizoval typ iniciativ %{resource_name}"
|
299
322
|
admin_states:
|
300
323
|
accepted: Dostatek podpisů
|
301
324
|
created: Vytvořeno
|
@@ -581,6 +604,8 @@ cs:
|
|
581
604
|
published: Publikováno
|
582
605
|
rejected: Nedostatek podpisů
|
583
606
|
validating: Technické ověření
|
607
|
+
signature_interval:
|
608
|
+
title: Doba sběru podpisů
|
584
609
|
states:
|
585
610
|
accepted: Přijato
|
586
611
|
expired: Platnost vypršela
|
data/config/locales/da.yml
CHANGED
data/config/locales/de.yml
CHANGED
data/config/locales/el.yml
CHANGED
data/config/locales/en.yml
CHANGED
@@ -25,6 +25,7 @@ en:
|
|
25
25
|
banner_image: Banner image
|
26
26
|
child_scope_threshold_enabled: Enable child scope signatures
|
27
27
|
collect_user_extra_fields: Collect participant personal data on signature
|
28
|
+
comments_enabled: Enable comments
|
28
29
|
custom_signature_end_date_enabled: Enable authors to choose the end of signature collection period
|
29
30
|
description: Description
|
30
31
|
document_number_authorization_handler: Authorization to verify document number on signatures
|
@@ -85,12 +86,17 @@ en:
|
|
85
86
|
label: Type
|
86
87
|
search_placeholder:
|
87
88
|
title_or_description_or_id_string_or_author_name_or_author_nickname_cont: Search %{collection} by title, description, ID or author name.
|
89
|
+
initiatives_settings:
|
90
|
+
update:
|
91
|
+
error: An error has occured
|
92
|
+
success: The initiatives settings have been successfully updated
|
88
93
|
menu:
|
89
94
|
attachments: Attachments
|
90
95
|
committee_members: Committee members
|
91
96
|
components: Components
|
92
97
|
information: Information
|
93
98
|
initiatives: Initiatives
|
99
|
+
initiatives_settings: Settings
|
94
100
|
initiatives_types: Initiative types
|
95
101
|
moderations: Moderations
|
96
102
|
models:
|
@@ -242,6 +248,16 @@ en:
|
|
242
248
|
update:
|
243
249
|
error: An error has occurred
|
244
250
|
success: The initiative has been successfully updated
|
251
|
+
initiatives_settings:
|
252
|
+
edit:
|
253
|
+
update: Update
|
254
|
+
form:
|
255
|
+
comments: Most commented
|
256
|
+
date: Most recent
|
257
|
+
publication_date: Most recently published
|
258
|
+
random: Random
|
259
|
+
signatures: Most signed
|
260
|
+
title: Settings for initiatives
|
245
261
|
initiatives_type_scopes:
|
246
262
|
create:
|
247
263
|
error: An error has occurred
|
@@ -273,7 +289,7 @@ en:
|
|
273
289
|
update: Update
|
274
290
|
form:
|
275
291
|
authorizations: Authorization settings
|
276
|
-
child_scope_threshold_enabled_help: 'This config flag doesn''t support offline votes
|
292
|
+
child_scope_threshold_enabled_help: 'This config flag doesn''t support offline votes. It enables sub-scopes and works with an authorization handler that associates a scope to the user. Make sure you select that authorization, below in authorization settings. For it to work, scopes need to be configured in a hierarchical way: 1 Parent - N Child. For more info on how this configuration works, see <a href="https://docs.decidim.org/en/admin/spaces/initiatives/" target="_blank">initiatives'' admin documentation page</a>.'
|
277
293
|
only_global_scope_enabled_help: Tick this flag if you enabled "Child scope signature" and configured the global scope as your parent scope. By enabling this, initiative type selection will be skipped in the initiative creation wizard. For more info on how this configuration works, see this <a href="https://docs.decidim.org/en/admin/spaces/initiatives/" target="_blank">link</a>.
|
278
294
|
options: Options
|
279
295
|
title: General information
|
@@ -291,6 +307,12 @@ en:
|
|
291
307
|
send_to_technical_validation: "%{user_name} sent the %{resource_name} initiative to technical validation"
|
292
308
|
unpublish: "%{user_name} discarded the %{resource_name} initiative"
|
293
309
|
update: "%{user_name} updated the %{resource_name} initiative"
|
310
|
+
initiatives_settings:
|
311
|
+
update: "%{user_name} updated the initiatives settings"
|
312
|
+
initiatives_type:
|
313
|
+
create: "%{user_name} created the %{resource_name} initiatives type"
|
314
|
+
delete: "%{user_name} deleted the %{resource_name} initiatives type"
|
315
|
+
update: "%{user_name} updated the %{resource_name} initiatives type"
|
294
316
|
admin_states:
|
295
317
|
accepted: Enough signatures
|
296
318
|
created: Created
|
@@ -566,6 +588,8 @@ en:
|
|
566
588
|
published: Published
|
567
589
|
rejected: Not enough signatures
|
568
590
|
validating: Technical validation
|
591
|
+
signature_interval:
|
592
|
+
title: Signature collection period
|
569
593
|
states:
|
570
594
|
accepted: Accepted
|
571
595
|
expired: Expired
|
data/config/locales/eo.yml
CHANGED