decidim-proposals 0.24.3 → 0.25.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/proposals/cost_report_cell.rb +1 -1
  3. data/app/cells/decidim/proposals/proposal_m_cell.rb +4 -0
  4. data/app/cells/decidim/proposals/proposals_picker/show.erb +1 -1
  5. data/app/commands/decidim/proposals/admin/import_proposals.rb +21 -4
  6. data/app/controllers/decidim/proposals/admin/proposals_controller.rb +1 -1
  7. data/app/controllers/decidim/proposals/collaborative_drafts_controller.rb +1 -0
  8. data/app/controllers/decidim/proposals/proposals_controller.rb +1 -0
  9. data/app/forms/decidim/proposals/admin/import_participatory_text_form.rb +1 -0
  10. data/app/forms/decidim/proposals/admin/proposals_import_form.rb +6 -0
  11. data/app/forms/decidim/proposals/proposal_form.rb +7 -4
  12. data/app/helpers/decidim/proposals/map_helper.rb +5 -5
  13. data/app/helpers/decidim/proposals/participatory_texts_helper.rb +1 -1
  14. data/app/helpers/decidim/proposals/proposal_wizard_helper.rb +0 -16
  15. data/app/models/decidim/proposals/proposal.rb +11 -1
  16. data/app/{assets → packs}/documents/decidim/proposals/participatory_texts/participatory_text.md +0 -0
  17. data/app/{assets → packs}/documents/decidim/proposals/participatory_texts/participatory_text.odt +0 -0
  18. data/app/packs/entrypoints/decidim_proposals.js +8 -0
  19. data/app/packs/entrypoints/decidim_proposals_admin.js +3 -0
  20. data/app/{assets/images/decidim/gamification/badges/accepted_proposals.svg → packs/images/decidim/gamification/badges/decidim_gamification_badges_accepted_proposals.svg} +0 -0
  21. data/app/{assets/images/decidim/gamification/badges/proposal_votes.svg → packs/images/decidim/gamification/badges/decidim_gamification_badges_proposal_votes.svg} +0 -0
  22. data/app/{assets/images/decidim/gamification/badges/proposals.svg → packs/images/decidim/gamification/badges/decidim_gamification_badges_proposals.svg} +0 -0
  23. data/app/{assets/images/decidim/proposals/icon.svg → packs/images/decidim/proposals/decidim_proposals.svg} +0 -0
  24. data/app/packs/src/decidim/proposals/add_proposal.js +49 -0
  25. data/app/packs/src/decidim/proposals/admin/proposals.js +143 -0
  26. data/app/{assets/javascripts/decidim/proposals/admin/proposals_form.js.es6 → packs/src/decidim/proposals/admin/proposals_form.js} +2 -2
  27. data/app/{assets/javascripts/decidim/proposals/admin/proposals_picker.js.es6 → packs/src/decidim/proposals/admin/proposals_picker.js} +0 -0
  28. data/app/{assets/javascripts/decidim/proposals/utils.js.es6 → packs/src/decidim/proposals/utils.js} +2 -2
  29. data/app/packs/stylesheets/decidim/proposals/_proposals.scss +1 -0
  30. data/app/{assets/stylesheets/decidim/proposals/proposals/_preview.css.scss → packs/stylesheets/decidim/proposals/proposals/_preview.scss} +0 -0
  31. data/app/queries/decidim/proposals/metrics/accepted_proposals_metric_manage.rb +1 -1
  32. data/app/queries/decidim/proposals/metrics/proposals_metric_manage.rb +1 -1
  33. data/app/queries/decidim/proposals/metrics/votes_metric_manage.rb +1 -1
  34. data/app/queries/decidim/proposals/similar_proposals.rb +1 -0
  35. data/app/services/decidim/proposals/proposal_builder.rb +4 -4
  36. data/app/views/decidim/proposals/admin/proposals/_form.html.erb +1 -1
  37. data/app/views/decidim/proposals/admin/proposals/index.html.erb +1 -1
  38. data/app/views/decidim/proposals/admin/proposals_imports/new.html.erb +6 -0
  39. data/app/views/decidim/proposals/collaborative_drafts/_filters.html.erb +1 -1
  40. data/app/views/decidim/proposals/collaborative_drafts/edit.html.erb +1 -1
  41. data/app/views/decidim/proposals/collaborative_drafts/index.html.erb +0 -2
  42. data/app/views/decidim/proposals/collaborative_drafts/new.html.erb +1 -1
  43. data/app/views/decidim/proposals/proposals/_dynamic_map_instructions.html.erb +2 -1
  44. data/app/views/decidim/proposals/proposals/_edit_form_fields.html.erb +5 -1
  45. data/app/views/decidim/proposals/proposals/_filters.html.erb +1 -1
  46. data/app/views/decidim/proposals/proposals/complete.html.erb +1 -1
  47. data/app/views/decidim/proposals/proposals/edit.html.erb +1 -1
  48. data/app/views/decidim/proposals/proposals/edit_draft.html.erb +1 -1
  49. data/app/views/decidim/proposals/proposals/index.html.erb +4 -6
  50. data/app/views/decidim/proposals/proposals/new.html.erb +1 -1
  51. data/app/views/decidim/proposals/proposals/preview.html.erb +7 -31
  52. data/config/assets.rb +10 -0
  53. data/config/locales/ar.yml +3 -1
  54. data/config/locales/bg.yml +3 -1
  55. data/config/locales/ca.yml +10 -4
  56. data/config/locales/cs.yml +12 -3
  57. data/config/locales/de.yml +10 -4
  58. data/config/locales/el.yml +3 -1
  59. data/config/locales/en.yml +12 -3
  60. data/config/locales/es-MX.yml +10 -4
  61. data/config/locales/es-PY.yml +10 -4
  62. data/config/locales/es.yml +10 -4
  63. data/config/locales/eu.yml +3 -1
  64. data/config/locales/fi-plain.yml +12 -3
  65. data/config/locales/fi.yml +12 -3
  66. data/config/locales/fr-CA.yml +8 -3
  67. data/config/locales/fr-LU.yml +903 -0
  68. data/config/locales/fr.yml +8 -3
  69. data/config/locales/gl.yml +11 -3
  70. data/config/locales/hu.yml +3 -1
  71. data/config/locales/id-ID.yml +3 -1
  72. data/config/locales/it.yml +55 -1
  73. data/config/locales/ja.yml +38 -1
  74. data/config/locales/lb-LU.yml +1 -0
  75. data/config/locales/lv.yml +3 -1
  76. data/config/locales/nl.yml +13 -2
  77. data/config/locales/no.yml +3 -1
  78. data/config/locales/pl.yml +14 -10
  79. data/config/locales/pt-BR.yml +199 -1
  80. data/config/locales/pt.yml +3 -1
  81. data/config/locales/ro-RO.yml +6 -1
  82. data/config/locales/ru.yml +3 -1
  83. data/config/locales/sk.yml +3 -1
  84. data/config/locales/sv.yml +13 -4
  85. data/config/locales/tr-TR.yml +3 -4
  86. data/config/locales/uk.yml +3 -1
  87. data/config/locales/zh-CN.yml +3 -1
  88. data/db/migrate/20201002085508_fix_proposals_data.rb +7 -8
  89. data/db/migrate/20210318082934_fix_counters_for_copied_proposals.rb +6 -5
  90. data/lib/decidim/proposals.rb +0 -1
  91. data/lib/decidim/proposals/admin_engine.rb +0 -4
  92. data/lib/decidim/proposals/commentable_proposal.rb +5 -13
  93. data/lib/decidim/proposals/component.rb +4 -4
  94. data/lib/decidim/proposals/engine.rb +14 -19
  95. data/lib/decidim/proposals/proposal_serializer.rb +1 -0
  96. data/lib/decidim/proposals/test/capybara_proposals_picker.rb +10 -0
  97. data/lib/decidim/proposals/test/factories.rb +3 -0
  98. data/lib/decidim/proposals/version.rb +1 -1
  99. metadata +39 -113
  100. data/app/assets/config/admin/decidim_proposals_manifest.js +0 -2
  101. data/app/assets/config/decidim_proposals_manifest.js +0 -4
  102. data/app/assets/javascripts/decidim/proposals/add_proposal.js.es6 +0 -31
  103. data/app/assets/javascripts/decidim/proposals/admin/proposals.es6 +0 -130
  104. data/app/assets/stylesheets/decidim/proposals/_proposals.css.scss +0 -1
  105. data/config/locales/ja-JP.yml +0 -865
@@ -1,6 +1,6 @@
1
- $(() => {
2
- const { attachGeocoding } = window.Decidim;
1
+ import attachGeocoding from "src/decidim/geocoding/attach_input"
3
2
 
3
+ $(() => {
4
4
  const $form = $(".proposal_form_admin");
5
5
 
6
6
  if ($form.length > 0) {
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable no-invalid-this */
2
2
 
3
- (() => {
3
+ $(() => {
4
4
  $("#vote_button").mouseover(function () {
5
5
  $(this).text($(this).data("replace"));
6
6
  });
@@ -8,4 +8,4 @@
8
8
  $("#vote_button").mouseout(function () {
9
9
  $(this).text($(this).data("original"));
10
10
  });
11
- })(this);
11
+ });
@@ -0,0 +1 @@
1
+ @import "stylesheets/decidim/proposals/proposals/preview";
@@ -16,7 +16,7 @@ module Decidim
16
16
  spaces = Decidim.participatory_space_manifests.flat_map do |manifest|
17
17
  manifest.participatory_spaces.call(@organization).public_spaces
18
18
  end
19
- @query = Decidim::Proposals::Proposal.where(component: visible_component_ids_from_spaces(spaces)).joins(:component)
19
+ @query = Decidim::Proposals::Proposal.where(component: visible_components_from_spaces(spaces)).joins(:component)
20
20
  .left_outer_joins(:category)
21
21
  @query = @query.where("decidim_proposals_proposals.created_at <= ?", end_time).accepted
22
22
  @query = @query.group("decidim_categorizations.id", :participatory_space_type, :participatory_space_id)
@@ -30,7 +30,7 @@ module Decidim
30
30
  spaces = Decidim.participatory_space_manifests.flat_map do |manifest|
31
31
  manifest.participatory_spaces.call(@organization)
32
32
  end
33
- @query = Decidim::Proposals::Proposal.where(component: visible_component_ids_from_spaces(spaces)).joins(:component)
33
+ @query = Decidim::Proposals::Proposal.where(component: visible_components_from_spaces(spaces)).joins(:component)
34
34
  .left_outer_joins(:category)
35
35
  @query = @query.where("decidim_proposals_proposals.published_at <= ?", end_time).except_withdrawn.not_hidden
36
36
  @query = @query.group("decidim_categorizations.decidim_category_id",
@@ -31,7 +31,7 @@ module Decidim
31
31
  spaces = Decidim.participatory_space_manifests.flat_map do |manifest|
32
32
  manifest.participatory_spaces.call(@organization).public_spaces
33
33
  end
34
- proposal_ids = Decidim::Proposals::Proposal.where(component: visible_component_ids_from_spaces(spaces.pluck(:id))).except_withdrawn.not_hidden.pluck(:id)
34
+ proposal_ids = Decidim::Proposals::Proposal.where(component: visible_components_from_spaces(spaces)).except_withdrawn.not_hidden.pluck(:id)
35
35
  @query = Decidim::Proposals::ProposalVote.joins(proposal: :component)
36
36
  .left_outer_joins(proposal: :category)
37
37
  .where(proposal: proposal_ids)
@@ -28,6 +28,7 @@ module Decidim
28
28
  Decidim::Proposals::Proposal
29
29
  .where(component: @components)
30
30
  .published
31
+ .not_hidden
31
32
  .where(
32
33
  "GREATEST(#{title_similarity}, #{body_similarity}) >= ?",
33
34
  translated_attribute(@proposal.title),
@@ -110,14 +110,14 @@ module Decidim
110
110
  # Attached to needs to be always defined before the file is set
111
111
  attached_to: proposal
112
112
  }.merge(
113
- attachment.attributes.slice("content_type", "description", "file", "file_size", "title", "weight")
113
+ attachment.attributes.slice("content_type", "description", "file_size", "title", "weight")
114
114
  )
115
115
  )
116
116
 
117
- if File.exist?(attachment.file.file.path)
118
- new_attachment.file = File.open(attachment.file.file.path)
117
+ if attachment.file.attached?
118
+ new_attachment.file = attachment.file.blob
119
119
  else
120
- new_attachment.remote_file_url = attachment.url
120
+ new_attachment.attached_uploader(:file).remote_url = attachment.attached_uploader(:file).url(host: original_proposal.organization.host)
121
121
  end
122
122
 
123
123
  new_attachment.save!
@@ -98,4 +98,4 @@
98
98
  </div>
99
99
  </div>
100
100
 
101
- <%= javascript_include_tag "decidim/proposals/admin/proposals_form" %>
101
+ <%= javascript_pack_tag "decidim_proposals_admin" %>
@@ -81,4 +81,4 @@
81
81
  </div>
82
82
  </div>
83
83
 
84
- <%= javascript_include_tag "decidim/proposals/admin/proposals" %>
84
+ <%= javascript_pack_tag "decidim_proposals_admin" %>
@@ -16,6 +16,12 @@
16
16
  <div class="row column">
17
17
  <%= f.check_box :keep_authors %>
18
18
  </div>
19
+ <div class="row column">
20
+ <%= f.check_box :keep_answers %>
21
+ </div>
22
+ <div class="row column">
23
+ <%= scopes_picker_filter f, :scope_ids %>
24
+ </div>
19
25
  <div class="row column">
20
26
  <%= f.check_box :import_proposals %>
21
27
  </div>
@@ -4,7 +4,7 @@
4
4
  <div class="filters__section">
5
5
  <div class="filters__search">
6
6
  <div class="input-group">
7
- <%= form.search_field :search_text, label: false, class: "input-group-field", placeholder: t(".search"), title: t(".search"), data: { disable_dynamic_change: true } %>
7
+ <%= form.search_field :search_text, label: false, class: "input-group-field", placeholder: t(".search"), title: t(".search"), "aria-label": t(".search"), data: { disable_dynamic_change: true } %>
8
8
  <div class="input-group-button">
9
9
  <button type="submit" class="button" aria-controls="collaborative_drafts">
10
10
  <%= icon "magnifying-glass", aria_label: t(".search"), role: "img" %>
@@ -28,4 +28,4 @@
28
28
  </div>
29
29
  </div>
30
30
 
31
- <%= javascript_include_tag "decidim/proposals/add_proposal" %>
31
+ <%= javascript_pack_tag "decidim_proposals" %>
@@ -21,5 +21,3 @@
21
21
  <%= render partial: "collaborative_drafts" %>
22
22
  </div>
23
23
  </div>
24
- <%= javascript_include_tag "decidim/filters" %>
25
- <%= javascript_include_tag "decidim/results_listing" %>
@@ -21,4 +21,4 @@
21
21
  <div class="columns large-3"></div>
22
22
  </div>
23
23
 
24
- <%= javascript_include_tag "decidim/proposals/add_proposal" %>
24
+ <%= javascript_pack_tag "decidim_proposals" %>
@@ -1,3 +1,4 @@
1
1
  <div class="column dynamic-map-instructions">
2
- <%== t(".instructions") %>
2
+ <h3><%= t(".instructions") %></h3>
3
+ <p><%= t(".description") %></p>
3
4
  </div>
@@ -39,6 +39,10 @@
39
39
 
40
40
  <div class="field" id="address_input">
41
41
  <%= form.geocoding_field :address, placeholder: t("decidim.proposals.proposals.placeholder.address") %>
42
+ <div class="map" id="address_map">
43
+ <%= render partial: "dynamic_map_instructions" %>
44
+ <%= dynamic_map_for proposal_preview_data_for_map(@proposal) %>
45
+ </div>
42
46
  </div>
43
47
  <% end %>
44
48
 
@@ -67,7 +71,7 @@
67
71
  <% if @form.photos.any? %>
68
72
  <% @form.photos.each do |photo| %>
69
73
  <div class="callout gallery__item" id="attachment_<%= photo.id %>" data-closable>
70
- <%= image_tag photo.thumbnail_url, class: "thumbnail", alt: photo.file.file.filename %>
74
+ <%= image_tag photo.thumbnail_url, class: "thumbnail", alt: photo.file.filename %>
71
75
  <%= form.hidden_field :photos, multiple: true, value: photo.id, id: "photo-#{photo.id}" %>
72
76
  <button class="close-button"
73
77
  aria-label="<%= t("delete_image", scope: "decidim.proposals.proposals.edit") %>"
@@ -4,7 +4,7 @@
4
4
  <div class="filters__section">
5
5
  <div class="filters__search">
6
6
  <div class="input-group">
7
- <%= form.search_field :search_text, label: false, class: "input-group-field", placeholder: t(".search"), title: t(".search"), data: { disable_dynamic_change: true } %>
7
+ <%= form.search_field :search_text, label: false, class: "input-group-field", placeholder: t(".search"), title: t(".search"), "aria-label": t(".search"), data: { disable_dynamic_change: true } %>
8
8
  <div class="input-group-button">
9
9
  <button type="submit" class="button" aria-controls="proposals">
10
10
  <%= icon "magnifying-glass", aria_label: t(".search"), role: "img" %>
@@ -21,4 +21,4 @@
21
21
  <div class="columns large-3"></div>
22
22
  </div>
23
23
 
24
- <%= javascript_include_tag "decidim/proposals/add_proposal" %>
24
+ <%= javascript_pack_tag "decidim_proposals" %>
@@ -28,4 +28,4 @@
28
28
  </div>
29
29
  </div>
30
30
 
31
- <%= javascript_include_tag "decidim/proposals/add_proposal" %>
31
+ <%= javascript_pack_tag "decidim_proposals" %>
@@ -23,4 +23,4 @@
23
23
  <div class="columns large-3"></div>
24
24
  </div>
25
25
 
26
- <%= javascript_include_tag "decidim/proposals/add_proposal" %>
26
+ <%= javascript_pack_tag "decidim_proposals" %>
@@ -7,7 +7,7 @@
7
7
  <h3>${title}</h3>
8
8
  <div id="bodyContent">
9
9
  <p>{{html body}}</p>
10
- <div class="map__date-adress">
10
+ <div class="map__date-address">
11
11
  <div class="address card__extra">
12
12
  <div class="address__icon">{{html icon}}</div>
13
13
  <div class="address__details">
@@ -55,9 +55,7 @@
55
55
  </div>
56
56
  </div>
57
57
  <div class="row">
58
- <div class="text-right">
59
- <%= link_to t(".see_all_withdrawn"), proposals_path("filter[state][]" => "withdrawn") %>
60
- </div>
58
+ <div class="text-right">
59
+ <%= link_to t(".see_all_withdrawn"), proposals_path("filter[state][]" => "withdrawn") %>
60
+ </div>
61
61
  </div>
62
- <%= javascript_include_tag("decidim/filters") %>
63
- <%= javascript_include_tag "decidim/results_listing" %>
@@ -35,4 +35,4 @@
35
35
  <div class="columns large-3"></div>
36
36
  </div>
37
37
 
38
- <%= javascript_include_tag "decidim/proposals/add_proposal" %>
38
+ <%= javascript_pack_tag "decidim_proposals" %>
@@ -13,46 +13,22 @@
13
13
  <% end %>
14
14
 
15
15
  <%= render_proposal_body(@proposal) %>
16
-
17
16
  </div>
18
17
  <div class="row column">
19
18
  <%= cell "decidim/proposals/proposal_tags", @proposal %>
20
19
  </div>
21
20
  </div>
22
- <div class="row column">
23
- <%= attachments_for @proposal %>
24
- </div>
25
-
26
21
  <% if component_settings.geocoding_enabled? %>
27
22
  <% if has_position?(@proposal) %>
28
- <%= render partial: "dynamic_map_instructions" %>
29
- <%= dynamic_map_for proposal_preview_data_for_map(@proposal) do %>
30
- <%= stylesheet_link_tag "decidim/map" %>
31
- <%= javascript_include_tag "decidim/map" %>
32
- <% end %>
33
- <%= decidim_form_for(@form, url: update_draft_proposal_path(@form), html: { method: :patch }) do |form| %>
34
- <%= form.hidden_field :title, value: form_presenter.title %>
35
- <%= form.hidden_field :body, value: form_presenter.body %>
36
- <%= form.hidden_field :address %>
37
- <%= form.hidden_field :latitude, data: { type: "latitude" } %>
38
- <%= form.hidden_field :longitude, data: { type: "longitude" } %>
39
- <div class="preview--form__hidden">
40
- <% if @form.categories&.any? %>
41
- <%= form.categories_select :category_id, @form.categories %>
42
- <% end %>
43
- <% if current_participatory_space.has_subscopes? %>
44
- <%= scopes_picker_field form, :scope_id %>
45
- <% end %>
46
- <% if current_user.user_groups.verified.any? %>
47
- <%= form.select :user_group_id, current_user.user_groups.verified.map { |g| [g.name, g.id] }, prompt: current_user.name %>
48
- <% end %>
49
- </div>
50
- <div class="actions">
51
- <%= form.submit t(".update_position"), class: "button expanded", data: { disable: true } %>
52
- </div>
53
- <% end %>
23
+ <div class="row column">
24
+ <h3 class="section-heading"><%= t("decidim.application.geocoding.geocoded_address") %></h3>
25
+ <%= render partial: "decidim/shared/static_map", locals: { icon_name: "proposals", geolocalizable: @proposal } %>
26
+ </div>
54
27
  <% end %>
55
28
  <% end %>
29
+ <div class="row column">
30
+ <%= attachments_for @proposal %>
31
+ </div>
56
32
 
57
33
  <div class="p-l">
58
34
  <div class="row column flex-center">
data/config/assets.rb ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ base_path = File.expand_path("..", __dir__)
4
+
5
+ Decidim::Webpacker.register_path("#{base_path}/app/packs")
6
+ Decidim::Webpacker.register_entrypoints(
7
+ decidim_proposals: "#{base_path}/app/packs/entrypoints/decidim_proposals.js",
8
+ decidim_proposals_admin: "#{base_path}/app/packs/entrypoints/decidim_proposals_admin.js"
9
+ )
10
+ Decidim::Webpacker.register_stylesheet_import("stylesheets/decidim/proposals/proposals")
@@ -42,7 +42,9 @@ ar:
42
42
  invalid_document_type: 'نوع المستند غير صالح. التنسيقات المقبولة هي: %{valid_mime_types}'
43
43
  proposal:
44
44
  attributes:
45
- attachment:
45
+ add_documents:
46
+ needs_to_be_reattached: يحتاج إلى إعادة ربط
47
+ add_photos:
46
48
  needs_to_be_reattached: يحتاج إلى إعادة ربط
47
49
  body:
48
50
  identical: لا يمكن أن يكون العنوان متطابقًا
@@ -42,7 +42,9 @@ bg:
42
42
  invalid_document_type: 'Невалиден тип документ. Допустимите формати са: %{valid_mime_types}'
43
43
  proposal:
44
44
  attributes:
45
- attachment:
45
+ add_documents:
46
+ needs_to_be_reattached: Необходимо е да се прикачи отново
47
+ add_photos:
46
48
  needs_to_be_reattached: Необходимо е да се прикачи отново
47
49
  body:
48
50
  cant_be_equal_to_template: не може да е еднакво с шаблона
@@ -35,6 +35,7 @@ ca:
35
35
  origin_component_id: Component des d'on importar les propostes
36
36
  proposals_import:
37
37
  import_proposals: Importar propostes
38
+ keep_answers: Manté l'estat i les respostes
38
39
  keep_authors: Mantenir l'autoria original
39
40
  valuation_assignment:
40
41
  admin_log:
@@ -47,7 +48,9 @@ ca:
47
48
  invalid_document_type: 'Tipus de document no vàlid. Els formats acceptats són: %{valid_mime_types}'
48
49
  proposal:
49
50
  attributes:
50
- attachment:
51
+ add_documents:
52
+ needs_to_be_reattached: És necessari tornar a adjuntar l'arxiu
53
+ add_photos:
51
54
  needs_to_be_reattached: És necessari tornar a adjuntar l'arxiu
52
55
  body:
53
56
  cant_be_equal_to_template: No pot ser igual a la plantilla
@@ -113,9 +116,11 @@ ca:
113
116
  proposals:
114
117
  actions:
115
118
  amend: Esmena
119
+ comment: Comentar
116
120
  create: Crear
117
121
  endorse: Adherir-se
118
122
  vote: Donar suport
123
+ vote_comment: Votar el comentari
119
124
  withdraw: Retirar
120
125
  name: Propostes
121
126
  settings:
@@ -710,8 +715,6 @@ ca:
710
715
  proposals_count:
711
716
  one: "%{count} proposta"
712
717
  other: "%{count} propostes"
713
- dynamic_map_instructions:
714
- instructions: <h3>Pots moure el punt al mapa. </h3><p>No oblidis fer clic al botó "Actualitzar posició" abans de publicar la teva proposta.</p>
715
718
  edit:
716
719
  add_documents: Documents
717
720
  add_images: Arxiu
@@ -783,7 +786,6 @@ ca:
783
786
  other: Podràs editar aquesta proposta durant els primers %{count} minuts després de la publicació de la proposta. Un cop passada aquesta finestra de temps, no podràs editar la proposta.
784
787
  publish: Publica
785
788
  title: Publica la teva proposta
786
- update_position: Actualitzar posició
787
789
  proposal:
788
790
  creation_date: 'Data de creació: %{date}'
789
791
  view_proposal: Veure proposta
@@ -900,3 +902,7 @@ ca:
900
902
  included_proposals:
901
903
  proposal_project: 'Proposta vinculada a aquests projectes:'
902
904
  proposal_result: 'Proposta vinculada a aquests resultats:'
905
+ statistics:
906
+ proposals_accepted: Propostes acceptades
907
+ proposals_count: Propostes
908
+ supports_count: Suports
@@ -35,6 +35,7 @@ cs:
35
35
  origin_component_id: Komponenta pro kopírování návrhů z
36
36
  proposals_import:
37
37
  import_proposals: Návrhy na dovoz
38
+ keep_answers: Zachovat stav a odpovědi
38
39
  keep_authors: Uchovávejte původní autory
39
40
  valuation_assignment:
40
41
  admin_log:
@@ -47,7 +48,9 @@ cs:
47
48
  invalid_document_type: 'Neplatný typ dokumentu. Přijaté formáty jsou: %{valid_mime_types}'
48
49
  proposal:
49
50
  attributes:
50
- attachment:
51
+ add_documents:
52
+ needs_to_be_reattached: Potřebuje být znovu připojen
53
+ add_photos:
51
54
  needs_to_be_reattached: Potřebuje být znovu připojen
52
55
  body:
53
56
  cant_be_equal_to_template: nelze se rovnat šabloně
@@ -121,9 +124,11 @@ cs:
121
124
  proposals:
122
125
  actions:
123
126
  amend: Pozměnit
127
+ comment: Komentář
124
128
  create: Vytvořit
125
129
  endorse: Schválit
126
130
  vote: Hlasování
131
+ vote_comment: Komentář hlasování
127
132
  withdraw: Ustoupit
128
133
  name: Návrhy
129
134
  settings:
@@ -727,7 +732,8 @@ cs:
727
732
  many: "%{count} návrhů"
728
733
  other: "%{count} návrhů"
729
734
  dynamic_map_instructions:
730
- instructions: <h3>Můžete přesunout bod na mapě. </h3><p>Nezapomeňte kliknout na tlačítko "Aktualizovat pozici" před zveřejněním vašeho návrhu.</p>
735
+ description: Souřadnice budou aktualizovány po kliknutí na tlačítko 'náhled'. Adresa se však nemění.
736
+ instructions: Můžete přesunout bod na mapě.
731
737
  edit:
732
738
  add_documents: Dokumenty
733
739
  add_images: Soubor
@@ -803,7 +809,6 @@ cs:
803
809
  other: Budete mít možnost upravit tento návrh během prvních %{count} minut po návrh zveřejněn. Po uplynutí tohoto časového okna nebudete moci návrh upravit.
804
810
  publish: Publikovat
805
811
  title: Publikujte svůj návrh
806
- update_position: Aktualizovat pozici
807
812
  proposal:
808
813
  creation_date: 'Tvorba: %{date}'
809
814
  view_proposal: Zobrazit návrh
@@ -924,3 +929,7 @@ cs:
924
929
  included_proposals:
925
930
  proposal_project: 'Návrh se objevuje v těchto projektech:'
926
931
  proposal_result: 'Návrh se objeví v těchto výsledcích:'
932
+ statistics:
933
+ proposals_accepted: Přijaté návrhy
934
+ proposals_count: Návrhy
935
+ supports_count: Podpory
@@ -35,6 +35,7 @@ de:
35
35
  origin_component_id: Komponente zum Kopieren der Vorschläge aus
36
36
  proposals_import:
37
37
  import_proposals: Vorschläge importieren
38
+ keep_answers: Status und Antworten behalten
38
39
  keep_authors: Behalten Sie die ursprünglichen Autoren
39
40
  valuation_assignment:
40
41
  admin_log:
@@ -47,7 +48,9 @@ de:
47
48
  invalid_document_type: 'Ungültiger Dokumenttyp Zulässige Formate sind: %{valid_mime_types}'
48
49
  proposal:
49
50
  attributes:
50
- attachment:
51
+ add_documents:
52
+ needs_to_be_reattached: Der Anhang muss erneut angehängt werden
53
+ add_photos:
51
54
  needs_to_be_reattached: Der Anhang muss erneut angehängt werden
52
55
  body:
53
56
  cant_be_equal_to_template: kann nicht gleich der Vorlage sein
@@ -113,9 +116,11 @@ de:
113
116
  proposals:
114
117
  actions:
115
118
  amend: Änderungsvorschlag
119
+ comment: Kommentieren
116
120
  create: Erstellen
117
121
  endorse: Unterstützung
118
122
  vote: Abstimmung
123
+ vote_comment: Kommentar bewerten
119
124
  withdraw: Zurückziehen
120
125
  name: Vorschläge
121
126
  settings:
@@ -710,8 +715,6 @@ de:
710
715
  proposals_count:
711
716
  one: "%{count} Vorschlag"
712
717
  other: "%{count} Vorschläge"
713
- dynamic_map_instructions:
714
- instructions: <h3>Sie können den Punkt auf der Karte verschieben.</h3><p>Vergessen Sie nicht, vor der Veröffentlichung Ihres Vorschlags auf die Schaltfläche "Position aktualisieren" zu klicken.</p>
715
718
  edit:
716
719
  add_documents: Dokumente
717
720
  add_images: Datei
@@ -783,7 +786,6 @@ de:
783
786
  other: Sie können diesen Vorschlag in den ersten %{count} Minute nach seiner Veröffentlichung bearbeiten. Nach Ablauf dieses Zeitfensters können Sie diesen nicht mehr bearbeiten.
784
787
  publish: Veröffentlichen
785
788
  title: Vorschlag veröffentlichen
786
- update_position: Position aktualisieren
787
789
  proposal:
788
790
  creation_date: 'Erstellt am %{date}'
789
791
  view_proposal: Vorschlag anzeigen
@@ -900,3 +902,7 @@ de:
900
902
  included_proposals:
901
903
  proposal_project: 'Vorschlag, der in diesen Projekten erscheint:'
902
904
  proposal_result: 'Vorschlag erscheint in diesen Ergebnissen:'
905
+ statistics:
906
+ proposals_accepted: Akzeptierte Vorschläge
907
+ proposals_count: Vorschläge
908
+ supports_count: Unterstützungen