decidim-initiatives 0.26.5 → 0.26.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/app/commands/decidim/initiatives/create_initiative.rb +2 -1
  3. data/app/controllers/decidim/initiatives/admin/committee_requests_controller.rb +1 -1
  4. data/app/controllers/decidim/initiatives/admin/exports_controller.rb +14 -0
  5. data/app/controllers/decidim/initiatives/admin/initiatives_controller.rb +1 -1
  6. data/app/controllers/decidim/initiatives/admin/initiatives_type_scopes_controller.rb +1 -1
  7. data/app/controllers/decidim/initiatives/admin/initiatives_types_controller.rb +1 -1
  8. data/app/controllers/decidim/initiatives/application_controller.rb +7 -0
  9. data/app/controllers/decidim/initiatives/committee_requests_controller.rb +1 -1
  10. data/app/controllers/decidim/initiatives/create_initiative_controller.rb +17 -2
  11. data/app/controllers/decidim/initiatives/initiatives_controller.rb +3 -0
  12. data/app/controllers/decidim/initiatives/initiatives_type_scopes_controller.rb +1 -1
  13. data/app/controllers/decidim/initiatives/initiatives_type_signature_types_controller.rb +1 -1
  14. data/app/forms/decidim/initiatives/initiative_form.rb +3 -0
  15. data/app/helpers/decidim/initiatives/{create_initiative_helper.rb → signature_type_options_helper.rb} +1 -1
  16. data/app/permissions/decidim/initiatives/admin/permissions.rb +1 -0
  17. data/app/views/decidim/initiatives/admin/initiatives/_form.html.erb +1 -1
  18. data/app/views/decidim/initiatives/admin/initiatives/edit.html.erb +2 -0
  19. data/app/views/decidim/initiatives/admin/initiatives/index.html.erb +1 -0
  20. data/app/views/decidim/initiatives/admin/initiatives_type_scopes/edit.html.erb +1 -0
  21. data/app/views/decidim/initiatives/admin/initiatives_type_scopes/new.html.erb +1 -0
  22. data/app/views/decidim/initiatives/admin/initiatives_types/_form.html.erb +1 -1
  23. data/app/views/decidim/initiatives/admin/initiatives_types/edit.html.erb +1 -0
  24. data/app/views/decidim/initiatives/admin/initiatives_types/index.html.erb +2 -0
  25. data/app/views/decidim/initiatives/admin/initiatives_types/new.html.erb +1 -0
  26. data/app/views/decidim/initiatives/create_initiative/fill_data.html.erb +27 -12
  27. data/app/views/decidim/initiatives/create_initiative/previous_form.html.erb +1 -1
  28. data/app/views/decidim/initiatives/initiatives/_form.html.erb +29 -23
  29. data/app/views/decidim/initiatives/initiatives/print.html.erb +1 -1
  30. data/config/environment.rb +0 -0
  31. data/config/locales/ar.yml +8 -6
  32. data/config/locales/ca.yml +7 -6
  33. data/config/locales/cs.yml +9 -3
  34. data/config/locales/de.yml +21 -4
  35. data/config/locales/el.yml +5 -6
  36. data/config/locales/en.yml +2 -1
  37. data/config/locales/es-MX.yml +4 -3
  38. data/config/locales/es-PY.yml +4 -3
  39. data/config/locales/es.yml +6 -5
  40. data/config/locales/eu.yml +2 -8
  41. data/config/locales/fa-IR.yml +1 -0
  42. data/config/locales/fi-plain.yml +4 -3
  43. data/config/locales/fi.yml +5 -4
  44. data/config/locales/fr-CA.yml +7 -8
  45. data/config/locales/fr.yml +7 -8
  46. data/config/locales/gl.yml +3 -6
  47. data/config/locales/hu.yml +13 -7
  48. data/config/locales/id-ID.yml +4 -6
  49. data/config/locales/is-IS.yml +3 -6
  50. data/config/locales/it.yml +2 -8
  51. data/config/locales/ja.yml +5 -4
  52. data/config/locales/kaa.yml +1 -0
  53. data/config/locales/lb.yml +1 -14
  54. data/config/locales/lt.yml +0 -6
  55. data/config/locales/lv.yml +5 -6
  56. data/config/locales/nl.yml +4 -6
  57. data/config/locales/no.yml +1 -7
  58. data/config/locales/pl.yml +0 -6
  59. data/config/locales/pt-BR.yml +2 -3
  60. data/config/locales/pt.yml +0 -6
  61. data/config/locales/ro-RO.yml +9 -9
  62. data/config/locales/ru.yml +5 -6
  63. data/config/locales/sk.yml +4 -6
  64. data/config/locales/sv.yml +1 -7
  65. data/config/locales/tr-TR.yml +1 -7
  66. data/config/locales/uk.yml +5 -6
  67. data/config/locales/zh-CN.yml +5 -6
  68. data/config/locales/zh-TW.yml +617 -0
  69. data/db/migrate/20181003082010_fix_user_groups_ids_on_initiatives.rb +18 -3
  70. data/lib/decidim/initiatives/engine.rb +2 -1
  71. data/lib/decidim/initiatives/version.rb +1 -1
  72. metadata +19 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 952af8684612f08909952b894330ee75443e1482ccdb6ce31dab41db7c18b23f
4
- data.tar.gz: b879318bb6f2b3659f60ad381dc6a3def80355c66bf58cc6d53b9b88830685a0
3
+ metadata.gz: 1ec7404f2f14de6e3d919e9e6f0065a647a82a7ea9e91b57926401e19b548150
4
+ data.tar.gz: e7475a5217d0df0e928f11f2f53023ff44e9e4b22191039ebcfc54b1cf9a04fa
5
5
  SHA512:
6
- metadata.gz: 722354ed0941597956d47976b98eef8f942f48d1a63cee66f05d4f37c94ed445047112317c3ac3824f412443d3651b3b8c4a01cd0cd502a4a31d6e6ff3f68e54
7
- data.tar.gz: 74007b81276824ddf9c45b718f3cda55c510fd8360be430b94e04bf1bf8820dff326b19f04b22c20bcaf14b8c278b7d90288a96a800e5998752d24a752db7d6e
6
+ metadata.gz: 99ba503d981ac7ffb4bb23835f2871a9fe4271e5f1d6ff22abdede9e373a2d52531e1e39660c9b2c469f19351f8fd551fd11dc8ab31860ce1630606afdd43b94
7
+ data.tar.gz: 7140e8705068d3641d3e7e1e9ff64042a940db2f90b14a7472b2f30d99884a59b49501c8a9554800a539c6f5f4f6c742f6ba82f74c200d66ed83b9a69b22a05d
@@ -73,7 +73,8 @@ module Decidim
73
73
  area: area,
74
74
  signature_type: form.signature_type,
75
75
  signature_end_date: signature_end_date,
76
- state: "created"
76
+ state: "created",
77
+ hashtag: form.hashtag
77
78
  )
78
79
  end
79
80
 
@@ -41,7 +41,7 @@ module Decidim
41
41
  private
42
42
 
43
43
  def membership_request
44
- @membership_request ||= InitiativesCommitteeMember.find(params[:id])
44
+ @membership_request ||= InitiativesCommitteeMember.where(initiative: current_participatory_space).find(params[:id])
45
45
  end
46
46
  end
47
47
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Initiatives
5
+ module Admin
6
+ # This controller allows exporting things.
7
+ # It is targeted for customizations for exporting things that lives under
8
+ # a participatory process.
9
+ class ExportsController < Decidim::Admin::ExportsController
10
+ include InitiativeAdmin
11
+ end
12
+ end
13
+ end
14
+ end
@@ -14,7 +14,7 @@ module Decidim
14
14
 
15
15
  helper ::Decidim::Admin::ResourcePermissionsHelper
16
16
  helper Decidim::Initiatives::InitiativeHelper
17
- helper Decidim::Initiatives::CreateInitiativeHelper
17
+ helper Decidim::Initiatives::SignatureTypeOptionsHelper
18
18
 
19
19
  # GET /admin/initiatives
20
20
  def index
@@ -69,7 +69,7 @@ module Decidim
69
69
  private
70
70
 
71
71
  def current_initiative_type_scope
72
- @current_initiative_type_scope ||= InitiativesTypeScope.find(params[:id])
72
+ @current_initiative_type_scope ||= InitiativesTypeScope.joins(:type).where(decidim_initiatives_types: { decidim_organization_id: current_organization }).find(params[:id])
73
73
  end
74
74
 
75
75
  def initiative_type_scope_form
@@ -81,7 +81,7 @@ module Decidim
81
81
  private
82
82
 
83
83
  def current_initiative_type
84
- @current_initiative_type ||= InitiativesType.find(params[:id])
84
+ @current_initiative_type ||= InitiativesType.where(organization: current_organization).find(params[:id])
85
85
  end
86
86
 
87
87
  def initiative_type_form
@@ -11,6 +11,13 @@ module Decidim
11
11
  ::Decidim::Admin::Permissions,
12
12
  ::Decidim::Permissions)
13
13
 
14
+ before_action do
15
+ if Decidim::InitiativesType.joins(:scopes).where(organization: current_organization).all.empty?
16
+ flash[:alert] = t("index.uninitialized", scope: "decidim.initiatives")
17
+ redirect_to(decidim.root_path)
18
+ end
19
+ end
20
+
14
21
  def permissions_context
15
22
  super.merge(
16
23
  current_participatory_space: try(:current_participatory_space)
@@ -70,7 +70,7 @@ module Decidim
70
70
  private
71
71
 
72
72
  def membership_request
73
- @membership_request ||= InitiativesCommitteeMember.find(params[:id])
73
+ @membership_request ||= InitiativesCommitteeMember.where(initiative: current_participatory_space).find(params[:id])
74
74
  end
75
75
  end
76
76
  end
@@ -16,6 +16,8 @@ module Decidim
16
16
 
17
17
  helper Decidim::Admin::IconLinkHelper
18
18
  helper InitiativeHelper
19
+ helper SignatureTypeOptionsHelper
20
+
19
21
  helper_method :similar_initiatives
20
22
  helper_method :scopes
21
23
  helper_method :areas
@@ -23,6 +25,8 @@ module Decidim
23
25
  helper_method :initiative_type
24
26
  helper_method :promotal_committee_required?
25
27
 
28
+ before_action :authenticate_user!
29
+
26
30
  steps :select_initiative_type,
27
31
  :previous_form,
28
32
  :show_similar_initiatives,
@@ -30,6 +34,8 @@ module Decidim
30
34
  :promotal_committee,
31
35
  :finish
32
36
 
37
+ before_action :ensure_type_exists, only: :show
38
+
33
39
  def show
34
40
  enforce_permission_to :create, :initiative
35
41
  send("#{step}_step", initiative: session_initiative)
@@ -42,6 +48,15 @@ module Decidim
42
48
 
43
49
  private
44
50
 
51
+ def ensure_type_exists
52
+ destination_step = single_initiative_type? ? :previous_form : :select_initiative_type
53
+
54
+ return if step == destination_step
55
+ return if initiative_type_id.present? && initiative_type.present?
56
+
57
+ redirect_to wizard_path(destination_step)
58
+ end
59
+
45
60
  def select_initiative_type_step(_parameters)
46
61
  @form = form(Decidim::Initiatives::SelectInitiativeTypeForm).instance
47
62
  session[:initiative] = {}
@@ -148,11 +163,11 @@ module Decidim
148
163
  end
149
164
 
150
165
  def current_initiative
151
- Initiative.find(session_initiative[:id]) if session_initiative.has_key?(:id)
166
+ Initiative.where(organization: current_organization).find_by(id: session_initiative[:id]) if session_initiative.has_key?(:id)
152
167
  end
153
168
 
154
169
  def initiative_type
155
- @initiative_type ||= InitiativesType.find(initiative_type_id)
170
+ @initiative_type ||= InitiativesType.where(organization: current_organization).find_by(id: initiative_type_id)
156
171
  end
157
172
 
158
173
  def initiative_type_id
@@ -18,6 +18,8 @@ module Decidim
18
18
  helper Decidim::ResourceReferenceHelper
19
19
  helper PaginateHelper
20
20
  helper InitiativeHelper
21
+ helper SignatureTypeOptionsHelper
22
+
21
23
  include InitiativeSlug
22
24
  include FilterResource
23
25
  include Paginable
@@ -86,6 +88,7 @@ module Decidim
86
88
  enforce_permission_to :update, :initiative, initiative: current_initiative
87
89
 
88
90
  params[:id] = params[:slug]
91
+ params[:type_id] = current_initiative.type&.id
89
92
  @form = form(Decidim::Initiatives::InitiativeForm)
90
93
  .from_params(params, initiative_type: current_initiative.type, initiative: current_initiative)
91
94
 
@@ -23,7 +23,7 @@ module Decidim
23
23
  end
24
24
 
25
25
  def initiative_type
26
- @initiative_type ||= InitiativesType.find(params[:type_id])
26
+ @initiative_type ||= InitiativesType.where(organization: current_organization).find(params[:type_id])
27
27
  end
28
28
  end
29
29
  end
@@ -14,7 +14,7 @@ module Decidim
14
14
  private
15
15
 
16
16
  def allowed_signature_types_for_initiatives
17
- @allowed_signature_types_for_initiatives ||= InitiativesType.find(params[:type_id]).allowed_signature_types_for_initiatives
17
+ @allowed_signature_types_for_initiatives ||= InitiativesType.where(organization: current_organization).find(params[:type_id]).allowed_signature_types_for_initiatives
18
18
  end
19
19
  end
20
20
  end
@@ -39,6 +39,9 @@ module Decidim
39
39
  def map_model(model)
40
40
  self.type_id = model.type.id
41
41
  self.scope_id = model.scope&.id
42
+ self.signature_type = model.signature_type
43
+ self.title = translated_attribute(model.title)
44
+ self.description = translated_attribute(model.description)
42
45
  end
43
46
 
44
47
  def signature_type_updatable?
@@ -3,7 +3,7 @@
3
3
  module Decidim
4
4
  module Initiatives
5
5
  # Helper methods for the create initiative wizard.
6
- module CreateInitiativeHelper
6
+ module SignatureTypeOptionsHelper
7
7
  def signature_type_options(initiative_form)
8
8
  return all_signature_type_options unless initiative_form.signature_type_updatable?
9
9
 
@@ -163,6 +163,7 @@ module Decidim
163
163
 
164
164
  def initiative_export_action?
165
165
  allow! if permission_action.subject == :initiatives && permission_action.action == :export
166
+ allow! if permission_action.action == :export && permission_action.subject == :component_data
166
167
  end
167
168
 
168
169
  def moderator_action?
@@ -9,7 +9,7 @@
9
9
  </div>
10
10
 
11
11
  <div class="row column">
12
- <%= form.translated :editor, :description, toolbar: :full, lines: 8, disabled: !allowed_to?(:update, :initiative, initiative: current_initiative) %>
12
+ <%= form.translated :editor, :description, lines: 8, disabled: !allowed_to?(:update, :initiative, initiative: current_initiative) %>
13
13
  </div>
14
14
 
15
15
  <div class="row column">
@@ -1,3 +1,5 @@
1
+ <% add_decidim_page_title(translated_attribute(current_participatory_space.title)) %>
2
+
1
3
  <%= decidim_form_for @form, html: { class: "form edit_initiative" } do |f| %>
2
4
  <%= render partial: "form", object: f %>
3
5
  <div class="button--double form-general-submit">
@@ -1,3 +1,4 @@
1
+ <% add_decidim_page_title(t("decidim.admin.titles.initiatives")) %>
1
2
  <div class="card with-overflow" id="initiatives">
2
3
  <div class="card-divider">
3
4
  <h2 class="card-title">
@@ -1,3 +1,4 @@
1
+ <% add_decidim_page_title(t(".title")) %>
1
2
  <div class="card">
2
3
  <div class="card-divider">
3
4
  <h2 class="card-title"><%= t ".title" %></h2>
@@ -1,3 +1,4 @@
1
+ <% add_decidim_page_title(t(".title")) %>
1
2
  <div class="card">
2
3
  <div class="card-divider">
3
4
  <h2 class="card-title"><%= t ".title" %></h2>
@@ -9,7 +9,7 @@
9
9
  </div>
10
10
 
11
11
  <div class="row column">
12
- <%= form.translated :editor, :description, toolbar: :full, lines: 25 %>
12
+ <%= form.translated :editor, :description %>
13
13
  </div>
14
14
 
15
15
  <div class="row">
@@ -1,3 +1,4 @@
1
+ <% add_decidim_page_title(translated_attribute(current_initiative_type.title)) %>
1
2
  <%= decidim_form_for(@form, html: { class: "form edit_initiative_type" }) do |f| %>
2
3
  <%= render partial: "form", object: f %>
3
4
  <div class="button--double form-general-submit">
@@ -1,3 +1,5 @@
1
+ <% add_decidim_page_title(t("decidim.admin.titles.initiatives_types")) %>
2
+
1
3
  <div class="card" id="initiative-types">
2
4
  <div class="card-divider">
3
5
  <h2 class="card-title">
@@ -1,3 +1,4 @@
1
+ <% add_decidim_page_title(t(".title")) %>
1
2
  <h2 class="process-title-summary">
2
3
  <%= t ".title" %>
3
4
  </h2>
@@ -20,12 +20,23 @@
20
20
  <div class="card__content">
21
21
  <%= decidim_form_for(@form, url: next_wizard_path, method: :put, html: { class: "form new_initiative_form" }) do |f| %>
22
22
  <%= form_required_explanation %>
23
- <%= f.hidden_field :type_id %>
24
23
  <div class=section>
25
- <% unless single_initiative_type? %>
24
+ <% if single_initiative_type? %>
25
+ <%= f.hidden_field :type_id %>
26
+ <% else %>
26
27
  <div class="field">
27
- <label for="type_description"><%= t ".initiative_type" %></label>
28
- <%= text_field_tag :type_description, strip_tags(translated_attribute(initiative_type.title)), readonly: true %>
28
+ <%= f.select :type_id,
29
+ initiative_type_options,
30
+ {},
31
+ {
32
+ disabled: !@form.signature_type_updatable?,
33
+ "data-scope-selector": "initiative_decidim_scope_id",
34
+ "data-scope-id": f.object.scope_id.to_s,
35
+ "data-scope-search-url": decidim_initiatives.initiative_type_scopes_search_url,
36
+ "data-signature-types-selector": "initiative_signature_type",
37
+ "data-signature-type": current_initiative&.signature_type,
38
+ "data-signature-types-search-url": decidim_initiatives.initiative_type_signature_types_search_url
39
+ } %>
29
40
  </div>
30
41
  <% end %>
31
42
 
@@ -34,7 +45,11 @@
34
45
  </div>
35
46
 
36
47
  <div class="field">
37
- <%= text_editor_for(f, :description, lines: 8, toolbar: :full) %>
48
+ <%= text_editor_for(f, :description, lines: 8, toolbar: :content) %>
49
+ </div>
50
+
51
+ <div class="field">
52
+ <%= f.text_field :hashtag %>
38
53
  </div>
39
54
 
40
55
  <% signature_type_options = signature_type_options(f.object) %>
@@ -46,6 +61,12 @@
46
61
  </div>
47
62
  <% end %>
48
63
 
64
+ <% if initiative_type.custom_signature_end_date_enabled? %>
65
+ <div class="field">
66
+ <%= f.date_field :signature_end_date %>
67
+ </div>
68
+ <% end %>
69
+
49
70
  <% if scopes.length == 1 %>
50
71
  <%= f.hidden_field :scope_id, value: scopes.first.scope&.id %>
51
72
  <% else %>
@@ -57,12 +78,6 @@
57
78
  </div>
58
79
  <% end %>
59
80
 
60
- <% if initiative_type.custom_signature_end_date_enabled? %>
61
- <div class="field">
62
- <%= f.date_field :signature_end_date %>
63
- </div>
64
- <% end %>
65
-
66
81
  <% if initiative_type.area_enabled? %>
67
82
  <div class="field">
68
83
  <%= f.areas_select :area_id, areas_for_select(current_organization), prompt: t(".select_area") %>
@@ -73,7 +88,7 @@
73
88
  <div class="field">
74
89
  <%= f.select :decidim_user_group_id,
75
90
  Decidim::UserGroups::ManageableUserGroups.for(current_user).verified.map { |g| [g.name, g.id] },
76
- include_blank: current_user.name %>
91
+ include_blank: current_user.name, help_text: t(".decidim_user_group_id_help") %>
77
92
  </div>
78
93
  <% end %>
79
94
 
@@ -27,7 +27,7 @@
27
27
  </div>
28
28
 
29
29
  <div class="field">
30
- <%= text_editor_for(f, :description, lines: 8, toolbar: :full) %>
30
+ <%= text_editor_for(f, :description, lines: 8, toolbar: :content) %>
31
31
  </div>
32
32
 
33
33
  <div class="actions">
@@ -1,24 +1,5 @@
1
1
  <%= form_required_explanation %>
2
2
 
3
- <div class="field">
4
- <%= form.text_field :title, autofocus: true, disabled: !allowed_to?(:update, :initiative, initiative: current_initiative), value: translated_attribute(@form.title) %>
5
- </div>
6
-
7
- <div class="field">
8
- <%= text_editor_for(form, :description, toolbar: :full, lines: 8, disabled: !allowed_to?(:update, :initiative, initiative: current_initiative), value: translated_attribute(@form.description)) %>
9
- </div>
10
-
11
- <div class="field">
12
- <%= form.text_field :hashtag, disabled: !allowed_to?(:update, :initiative, initiative: current_initiative) %>
13
- </div>
14
-
15
- <div class="field">
16
- <%= form.select :state,
17
- Decidim::Initiative.states.keys.map { |state| [I18n.t(state, scope: "decidim.initiatives.admin_states"), state] },
18
- {},
19
- { disabled: !@form.state_updatable? } %>
20
- </div>
21
-
22
3
  <% unless single_initiative_type? %>
23
4
  <div class="field">
24
5
  <%= form.select :type_id,
@@ -37,17 +18,38 @@
37
18
  <% end %>
38
19
 
39
20
  <div class="field">
40
- <%= form.select :scope_id,
41
- @form.available_scopes.map { |scope| [translated_attribute(scope.scope_name), scope&.scope&.id] },
42
- { disabled: !@form.state_updatable? } %>
21
+ <%= form.text_field :title, autofocus: true, disabled: !allowed_to?(:update, :initiative, initiative: current_initiative), value: translated_attribute(@form.title) %>
43
22
  </div>
44
23
 
24
+ <div class="field">
25
+ <%= text_editor_for(form, :description, toolbar: :content, lines: 8, disabled: !allowed_to?(:update, :initiative, initiative: current_initiative), value: translated_attribute(@form.description)) %>
26
+ </div>
27
+
28
+ <div class="field">
29
+ <%= form.text_field :hashtag, disabled: !allowed_to?(:update, :initiative, initiative: current_initiative) %>
30
+ </div>
31
+
32
+ <% signature_type_options = signature_type_options(form.object) %>
33
+ <% if signature_type_options.length == 1 %>
34
+ <%= form.hidden_field :signature_type %>
35
+ <% else %>
36
+ <div class="field">
37
+ <%= form.select :signature_type, signature_type_options, {}, { disabled: !@form.signature_type_updatable? } %>
38
+ </div>
39
+ <% end %>
40
+
45
41
  <% if can_edit_custom_signature_end_date?(current_initiative) %>
46
42
  <div class="row column">
47
43
  <%= form.date_field :signature_end_date, disabled: !allowed_to?(:update, :initiative, initiative: current_initiative) %>
48
44
  </div>
49
45
  <% end %>
50
46
 
47
+ <div class="field">
48
+ <%= form.select :scope_id,
49
+ @form.available_scopes.map { |scope| [translated_attribute(scope.scope_name), scope&.scope&.id] },
50
+ { disabled: !@form.state_updatable? } %>
51
+ </div>
52
+
51
53
  <% if current_initiative.area_enabled? %>
52
54
  <div class="field">
53
55
  <%= form.areas_select :area_id,
@@ -61,8 +63,12 @@
61
63
  <% end %>
62
64
 
63
65
  <div class="field">
64
- <%= form.select :signature_type, [], {}, { disabled: !@form.signature_type_updatable? } %>
66
+ <%= form.select :state,
67
+ Decidim::Initiative.states.keys.map { |state| [I18n.t(state, scope: "decidim.initiatives.admin_states"), state] },
68
+ {},
69
+ { disabled: !@form.state_updatable? } %>
65
70
  </div>
71
+
66
72
  <% if current_initiative.type.attachments_enabled? %>
67
73
  <fieldset class="attachments_container">
68
74
  <legend><%= t("attachment_legend", scope: "decidim.initiatives.form") %></legend>
@@ -60,7 +60,7 @@
60
60
 
61
61
  <div class="print-table-cell">
62
62
  <div class="cell-header"><%= t ".email" %></div>
63
- <div class="cell-content"><%= current_initiative.author.email %></div>
63
+ <div class="cell-content"></div>
64
64
  </div>
65
65
  </div>
66
66
  </div>
File without changes
@@ -232,6 +232,8 @@ ar:
232
232
  published: نشرت
233
233
  validating: المصادقة الفنية
234
234
  application_helper:
235
+ filter_area_values:
236
+ all: الكل
235
237
  filter_scope_values:
236
238
  all: الكل
237
239
  filter_state_values:
@@ -253,7 +255,6 @@ ar:
253
255
  fill_data:
254
256
  back: الى الخلف
255
257
  continue: استمر
256
- initiative_type: نوع المبادرة
257
258
  more_information: "(معلومات اكثر)"
258
259
  select_scope: حدد النطاق
259
260
  finish:
@@ -293,6 +294,8 @@ ar:
293
294
  email_outro: لقد تلقيت هذا الإشعار لأنك تتابع %{author_nickname}. يمكنك إيقاف تلقي الإخطارات باتباع الرابط السابق.
294
295
  email_subject: المبادرة التي أقرتها %{author_nickname}
295
296
  notification_title: تمت الموافقة على مبادرة <a href="%{resource_path}">%{resource_title}</a> من قبل <a href="%{author_path}">%{author_name} %{author_nickname}</a>.
297
+ form:
298
+ delete_attachment: حذف
296
299
  index:
297
300
  title: المبادرات
298
301
  initiative_signatures:
@@ -333,6 +336,8 @@ ar:
333
336
  few: و %{count} المزيد من الناس
334
337
  many: و %{count} المزيد من الناس
335
338
  other: و %{count} المزيد من الناس
339
+ committee_members:
340
+ revoke: سحب
336
341
  count:
337
342
  title:
338
343
  zero: "%{count} مبادرات"
@@ -372,6 +377,7 @@ ar:
372
377
  recent: الأحدث
373
378
  print:
374
379
  city: مدينة
380
+ full_name: الاسم الكامل
375
381
  initiative:
376
382
  description: 'الوصف:'
377
383
  result:
@@ -414,13 +420,9 @@ ar:
414
420
  status_change_for: لقد غيرت المبادرة %{title} حالتها
415
421
  last_activity:
416
422
  new_initiative: مبادرة جديدة
417
- pages:
418
- home:
419
- highlighted_initiatives:
420
- active_initiatives: المبادرات النشطة
421
- see_all_initiatives: رؤية جميع المبادرات
422
423
  show:
423
424
  badge_name:
425
+ accepted: ما يكفي من التوقيعات
424
426
  validating: تحقق تقني
425
427
  states:
426
428
  accepted: وافقت
@@ -311,7 +311,7 @@ ca:
311
311
  validating: Validació tècnica
312
312
  application_helper:
313
313
  filter_area_values:
314
- all: Totes
314
+ all: Tots
315
315
  filter_scope_values:
316
316
  all: Tots
317
317
  filter_state_values:
@@ -340,8 +340,8 @@ ca:
340
340
  fill_data:
341
341
  back: Torna
342
342
  continue: Continua
343
+ decidim_user_group_id_help: No és possible canviar l'autoria de la iniciativa després de crear-la
343
344
  fill_data_help: "<ul> <li>Revisa el contingut de la teva iniciativa. El títol és fàcil d'entendre? L'objectiu de la teva iniciativa és clar?</li> <li>Has d'escollir el tipus de signatura. Presencial, digital o una combinació de totes dues.</li> <li>Quin és l'àmbit geogràfic de la iniciativa?</li> </ul>"
344
- initiative_type: Tipus d'iniciativa
345
345
  more_information: "(Més informació)"
346
346
  select_area: Selecciona una àrea
347
347
  select_scope: Selecciona un àmbit d'aplicació
@@ -419,9 +419,10 @@ ca:
419
419
  form:
420
420
  add_attachments: Documents
421
421
  attachment_legend: "(Opcional) Afegir un fitxer adjunt"
422
- delete_attachment: Esborrar
422
+ delete_attachment: Suprimeix
423
423
  index:
424
424
  title: Iniciatives
425
+ uninitialized: Les iniciatives no han estat configurades encara des de l'administració.
425
426
  initiative_signatures:
426
427
  fill_personal_data:
427
428
  continue: Continua
@@ -578,8 +579,8 @@ ca:
578
579
  rejected: No ha aconseguit les signatures
579
580
  validating: Validació tècnica
580
581
  states:
581
- accepted: Acceptat
582
- expired: Vençut
582
+ accepted: Acceptada
583
+ expired: Vençuda
583
584
  unavailable_scope: Àmbit no disponible
584
585
  update:
585
586
  error: S'ha produït un error
@@ -600,7 +601,7 @@ ca:
600
601
  layouts:
601
602
  decidim:
602
603
  initiative_creation_header:
603
- back: Tornar
604
+ back: Torna
604
605
  fill_data: Crear
605
606
  finish: Acabar
606
607
  previous_form: Començar
@@ -66,6 +66,11 @@ cs:
66
66
  title: Název nesmí být prázdný
67
67
  activerecord:
68
68
  models:
69
+ decidim/initiative:
70
+ one: Iniciativa
71
+ few: Iniciativy
72
+ many: Iniciativ
73
+ other: Iniciativ
69
74
  decidim/initiative_comittee:
70
75
  one: Výbor
71
76
  few: Výbory
@@ -341,8 +346,8 @@ cs:
341
346
  fill_data:
342
347
  back: Zpět
343
348
  continue: Pokračovat
349
+ decidim_user_group_id_help: Po vytvoření není možné změnit autoritu iniciativy
344
350
  fill_data_help: "<ul> <li>Přečtěte si obsah vaší iniciativy. Je váš název snadno srozumitelný? Je cíl vaší iniciativy jasný?</li> <li>Musíte zvolit typ podpisu. Osobní, on-line nebo kombinace obou</li> <li>Jaká je geografická oblast působnosti?</li> </ul>"
345
- initiative_type: Typ iniciativy
346
351
  more_information: "(Více informací)"
347
352
  select_area: Vybrat oblast
348
353
  select_scope: Zvolte rozsah
@@ -420,9 +425,10 @@ cs:
420
425
  form:
421
426
  add_attachments: Dokumenty
422
427
  attachment_legend: "(Volitelné) Přidat přílohu"
423
- delete_attachment: Smazat
428
+ delete_attachment: Odstranit
424
429
  index:
425
430
  title: Iniciativy
431
+ uninitialized: Iniciativy ještě nejsou nakonfigurovány správcem
426
432
  initiative_signatures:
427
433
  fill_personal_data:
428
434
  continue: Pokračovat
@@ -464,7 +470,7 @@ cs:
464
470
  confirm_revoke: Jste si jist?
465
471
  invite_to_committee_help: Sdílejte tento odkaz pro pozvání ostatních účastníků do propagačního výboru
466
472
  no_members_yet: V propagačním výboru nejsou žádní členové
467
- revoke: Odvolat
473
+ revoke: Zrušit
468
474
  title: Členové výboru
469
475
  count:
470
476
  title: