decidim-templates 0.26.10 → 0.27.0.rc1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of decidim-templates might be problematic. Click here for more details.

Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/app/commands/decidim/templates/admin/apply_questionnaire_template.rb +1 -1
  3. data/app/commands/decidim/templates/admin/copy_questionnaire_template.rb +8 -5
  4. data/app/commands/decidim/templates/admin/create_questionnaire_template.rb +1 -1
  5. data/app/commands/decidim/templates/admin/destroy_template.rb +1 -1
  6. data/app/commands/decidim/templates/admin/questionnaire_copier.rb +2 -1
  7. data/app/commands/decidim/templates/admin/update_template.rb +1 -1
  8. data/app/controllers/decidim/templates/admin/questionnaire_templates/questionnaires_controller.rb +1 -1
  9. data/app/controllers/decidim/templates/admin/questionnaire_templates_controller.rb +4 -2
  10. data/app/models/decidim/templates/template.rb +6 -0
  11. data/app/packs/entrypoints/decidim_templates.js +1 -0
  12. data/app/packs/src/decidim/templates/admin/choose_template.js +30 -0
  13. data/app/permissions/decidim/templates/admin/permissions.rb +1 -1
  14. data/app/presenters/decidim/templates/admin_log/template_presenter.rb +36 -0
  15. data/app/views/decidim/templates/admin/questionnaire_templates/_choose.html.erb +13 -3
  16. data/app/views/decidim/templates/admin/questionnaire_templates/edit.html.erb +0 -1
  17. data/app/views/decidim/templates/admin/questionnaire_templates/index.html.erb +0 -1
  18. data/app/views/decidim/templates/admin/questionnaire_templates/new.html.erb +0 -1
  19. data/config/locales/am-ET.yml +1 -0
  20. data/config/locales/ar.yml +1 -26
  21. data/config/locales/bg.yml +1 -0
  22. data/config/locales/ca.yml +7 -0
  23. data/config/locales/cs.yml +7 -0
  24. data/config/locales/da.yml +1 -0
  25. data/config/locales/de.yml +1 -7
  26. data/config/locales/el.yml +1 -0
  27. data/config/locales/en.yml +7 -1
  28. data/config/locales/eo.yml +1 -0
  29. data/config/locales/es-MX.yml +7 -0
  30. data/config/locales/es-PY.yml +7 -0
  31. data/config/locales/es.yml +7 -0
  32. data/config/locales/et.yml +1 -0
  33. data/config/locales/eu.yml +3 -2
  34. data/config/locales/fi-plain.yml +7 -0
  35. data/config/locales/fi.yml +7 -0
  36. data/config/locales/fr-CA.yml +2 -1
  37. data/config/locales/fr.yml +2 -1
  38. data/config/locales/ga-IE.yml +1 -0
  39. data/config/locales/gl.yml +2 -0
  40. data/config/locales/hr.yml +1 -0
  41. data/config/locales/hu.yml +1 -65
  42. data/config/locales/id-ID.yml +1 -0
  43. data/config/locales/is-IS.yml +2 -1
  44. data/config/locales/it.yml +2 -0
  45. data/config/locales/ja.yml +8 -1
  46. data/config/locales/ko.yml +1 -0
  47. data/config/locales/lb.yml +1 -0
  48. data/config/locales/lt.yml +1 -66
  49. data/config/locales/lv.yml +1 -0
  50. data/config/locales/mt.yml +1 -0
  51. data/config/locales/nl.yml +2 -0
  52. data/config/locales/no.yml +2 -0
  53. data/config/locales/om-ET.yml +1 -0
  54. data/config/locales/pl.yml +2 -0
  55. data/config/locales/pt-BR.yml +3 -1
  56. data/config/locales/pt.yml +2 -0
  57. data/config/locales/ro-RO.yml +6 -5
  58. data/config/locales/ru.yml +1 -0
  59. data/config/locales/si-LK.yml +1 -0
  60. data/config/locales/sk.yml +1 -0
  61. data/config/locales/sl.yml +1 -0
  62. data/config/locales/so-SO.yml +1 -0
  63. data/config/locales/sr-CS.yml +1 -0
  64. data/config/locales/sv.yml +1 -1
  65. data/config/locales/sw-KE.yml +1 -0
  66. data/config/locales/ti-ER.yml +1 -0
  67. data/config/locales/tr-TR.yml +2 -0
  68. data/config/locales/uk.yml +1 -0
  69. data/config/locales/val-ES.yml +1 -0
  70. data/config/locales/vi.yml +1 -0
  71. data/config/locales/zh-CN.yml +2 -0
  72. data/config/locales/zh-TW.yml +1 -66
  73. data/db/seeds.rb +1 -1
  74. data/lib/decidim/templates/admin_engine.rb +8 -3
  75. data/lib/decidim/templates/test/shared_examples/uses_questionnaire_templates.rb +9 -8
  76. data/lib/decidim/templates/version.rb +1 -1
  77. metadata +16 -24
  78. data/app/helpers/decidim/templates/admin/templates_helper.rb +0 -32
  79. data/config/environment.rb +0 -3
  80. data/config/locales/fa-IR.yml +0 -1
  81. data/config/locales/gn-PY.yml +0 -1
  82. data/config/locales/ka-GE.yml +0 -1
  83. data/config/locales/kaa.yml +0 -7
  84. data/config/locales/lo-LA.yml +0 -1
  85. data/config/locales/oc-FR.yml +0 -1
  86. data/config/locales/sq-AL.yml +0 -1
  87. data/config/locales/th-TH.yml +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b7926b3c5e09bb81c3de2db7ab4cb87b9b901eeed7ce5f4cd6d8d7d9fda9bcf
4
- data.tar.gz: b53c9ac7a01ddce287d4d89936b1ce1fc3ede6dfcb8c62f77374c47d35573903
3
+ metadata.gz: 00fb7813ca553dfef2aa7b56f41da97804c6d27e0e62bc2d616842c4eff820a5
4
+ data.tar.gz: 37d4edffba55c81d5826439eb6a4b75549f3f891b9fd7d1d6fd482bbb47d4748
5
5
  SHA512:
6
- metadata.gz: 493310c74f4fc29a2f0241ef182ff4e8c148f5c97740992fc8abc01bd3a79a68e92f57b33dd7e864d6254c72a2cccc0bdbb74b1e639d488c6841efc6d1e6ace9
7
- data.tar.gz: 479929d579ff78e5c003887770f6366b01723e9f5b178855317602a6aaa3645b713a2bb61f907bf061b97707845e20e86f0df14402f3d42e3b1fbd1aa5eabb5f
6
+ metadata.gz: 6b8eb0373fbb853f099283f3dc52a86b69426954ee1dd92fbf2cceeefe67d836c71f2b26e832a14b1fd098d861f226663e457b1ffb6d8a5894282ce3f55ceb75
7
+ data.tar.gz: 882db5f20769282c34c7065d941a2d65decaa7de86883226eb0f05f5bd2b197a81299b80157349bee87058f7543f496ca30b12b469d9cc083e276c36647af784
@@ -4,7 +4,7 @@ module Decidim
4
4
  module Templates
5
5
  # A command with all the business logic when duplicating a questionnaire template
6
6
  module Admin
7
- class ApplyQuestionnaireTemplate < Rectify::Command
7
+ class ApplyQuestionnaireTemplate < Decidim::Command
8
8
  include Decidim::Templates::Admin::QuestionnaireCopier
9
9
 
10
10
  # Public: Initializes the command.
@@ -4,14 +4,15 @@ module Decidim
4
4
  module Templates
5
5
  # A command with all the business logic when duplicating a questionnaire template
6
6
  module Admin
7
- class CopyQuestionnaireTemplate < Rectify::Command
7
+ class CopyQuestionnaireTemplate < Decidim::Command
8
8
  include Decidim::Templates::Admin::QuestionnaireCopier
9
9
 
10
10
  # Public: Initializes the command.
11
11
  #
12
12
  # template - A template we want to duplicate
13
- def initialize(template)
13
+ def initialize(template, user)
14
14
  @template = template
15
+ @user = user
15
16
  end
16
17
 
17
18
  # Executes the command. Broadcasts these events:
@@ -23,9 +24,11 @@ module Decidim
23
24
  def call
24
25
  return broadcast(:invalid) unless @template.valid?
25
26
 
26
- Template.transaction do
27
- copy_template
28
- copy_questionnaire_questions(@template.templatable, @copied_template.templatable)
27
+ Decidim.traceability.perform_action!("duplicate", @template, @user) do
28
+ Template.transaction do
29
+ copy_template
30
+ copy_questionnaire_questions(@template.templatable, @copied_template.templatable)
31
+ end
29
32
  end
30
33
 
31
34
  broadcast(:ok, @copied_template)
@@ -4,7 +4,7 @@ module Decidim
4
4
  module Templates
5
5
  module Admin
6
6
  # Creates a QuestionnaireTemplate.
7
- class CreateQuestionnaireTemplate < Rectify::Command
7
+ class CreateQuestionnaireTemplate < Decidim::Command
8
8
  # Initializes the command.
9
9
  #
10
10
  # form - The source for this QuestionnaireTemplate.
@@ -4,7 +4,7 @@ module Decidim
4
4
  module Templates
5
5
  module Admin
6
6
  # This command deals with destroying a template from the admin panel.
7
- class DestroyTemplate < Rectify::Command
7
+ class DestroyTemplate < Decidim::Command
8
8
  # Public: Initializes the command.
9
9
  #
10
10
  # template - The Template to be destroyed.
@@ -7,7 +7,7 @@ module Decidim
7
7
  module QuestionnaireCopier
8
8
  def copy_questionnaire_questions(original_questionnaire, new_questionnaire)
9
9
  # start by copying the questions so that they already exist when cross referencing them in the conditions
10
- original_questionnaire.questions.includes(:answer_options, :matrix_rows, :display_conditions).load
10
+ original_questionnaire.reload.questions.includes(:answer_options, :matrix_rows, :display_conditions)
11
11
  original_questionnaire.questions.each do |original_question|
12
12
  new_question = original_question.dup
13
13
  new_question.questionnaire = new_questionnaire
@@ -49,6 +49,7 @@ module Decidim
49
49
  new_display_condition.answer_option = find_answer_option_by_body(destination_question_to_be_checked.answer_options, original_display_condition.answer_option.body)
50
50
  end
51
51
  new_display_condition.save!
52
+ destination_question.display_conditions << new_display_condition
52
53
  end
53
54
  end
54
55
 
@@ -4,7 +4,7 @@ module Decidim
4
4
  module Templates
5
5
  module Admin
6
6
  # Updates the questionnaire template given form data.
7
- class UpdateTemplate < Rectify::Command
7
+ class UpdateTemplate < Decidim::Command
8
8
  # Initializes the command.
9
9
  #
10
10
  # template - The Template to update.
@@ -33,7 +33,7 @@ module Decidim
33
33
  private
34
34
 
35
35
  def template
36
- @template ||= current_organization.templates.where(templatable_type: "Decidim::Forms::Questionnaire").find(params[:id])
36
+ @template ||= Template.find(params[:id])
37
37
  end
38
38
  end
39
39
  end
@@ -8,6 +8,8 @@ module Decidim
8
8
  class QuestionnaireTemplatesController < Decidim::Templates::Admin::ApplicationController
9
9
  include Decidim::TranslatableAttributes
10
10
 
11
+ skip_before_action :verify_authenticity_token, only: :preview
12
+
11
13
  helper_method :template
12
14
 
13
15
  def index
@@ -52,7 +54,7 @@ module Decidim
52
54
  def copy
53
55
  enforce_permission_to :copy, :template
54
56
 
55
- CopyQuestionnaireTemplate.call(template) do
57
+ CopyQuestionnaireTemplate.call(template, current_user) do
56
58
  on(:ok) do
57
59
  flash[:notice] = I18n.t("templates.copy.success", scope: "decidim.admin")
58
60
  redirect_to action: :index
@@ -140,7 +142,7 @@ module Decidim
140
142
  end
141
143
 
142
144
  def template
143
- @template ||= collection.find(params[:id])
145
+ @template ||= Template.find_by(id: params[:id])
144
146
  end
145
147
 
146
148
  def search(term)
@@ -11,6 +11,8 @@
11
11
  module Decidim
12
12
  module Templates
13
13
  class Template < ApplicationRecord
14
+ include Decidim::Traceable
15
+
14
16
  belongs_to :organization,
15
17
  foreign_key: "decidim_organization_id",
16
18
  class_name: "Decidim::Organization"
@@ -28,6 +30,10 @@ module Decidim
28
30
  def destroy_templatable
29
31
  templatable.destroy
30
32
  end
33
+
34
+ def self.log_presenter_class_for(_log)
35
+ Decidim::Templates::AdminLog::TemplatePresenter
36
+ end
31
37
  end
32
38
  end
33
39
  end
@@ -1,3 +1,4 @@
1
+ import "src/decidim/templates/admin/choose_template"
1
2
  import "entrypoints/decidim_templates.scss";
2
3
 
3
4
  // Images
@@ -0,0 +1,30 @@
1
+ import { datalistSelect } from "src/decidim/datalist_select";
2
+
3
+ $(() => {
4
+ const wrapper = document.querySelector("#choose-template");
5
+ if (!wrapper) {
6
+ return;
7
+ }
8
+
9
+ const preview = (id) => {
10
+ const options = wrapper.dataset;
11
+ const previewURL = options.previewurl;
12
+ if (!previewURL) {
13
+ return;
14
+ }
15
+ const params = new URLSearchParams({ id: id });
16
+ fetch(`${previewURL}?${params.toString()}`, {
17
+ method: "GET",
18
+ headers: { "Content-Type": "application/json" }
19
+ }).then((response) => response.text()).then((data) => {
20
+ const script = document.createElement("script");
21
+ script.type = "text/javascript";
22
+ script.innerHTML = data;
23
+ document.getElementsByTagName("head")[0].appendChild(script);
24
+ }).catch((error) => {
25
+ console.error(error); // eslint-disable-line no-console
26
+ });
27
+ }
28
+
29
+ datalistSelect(wrapper, preview)
30
+ })
@@ -6,7 +6,7 @@ module Decidim
6
6
  class Permissions < Decidim::DefaultPermissions
7
7
  def permissions
8
8
  return permission_action unless user
9
- return permission_action unless user.admin?
9
+
10
10
  return permission_action if permission_action.scope != :admin
11
11
 
12
12
  case permission_action.subject
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Templates
5
+ module AdminLog
6
+ # This class holds the logic to present a `Decidim::Template`
7
+ # for the `AdminLog` log.
8
+ #
9
+ # Usage should be automatic and you shouldn't need to call this class
10
+ # directly, but here's an example:
11
+ #
12
+ # action_log = Decidim::ActionLog.last
13
+ # view_helpers # => this comes from the views
14
+ # TemplatePresenter.new(action_log, view_helpers).present
15
+ class TemplatePresenter < Decidim::Log::BasePresenter
16
+ private
17
+
18
+ def diff_fields_mapping
19
+ {
20
+ name: :i18n,
21
+ description: :i18n
22
+ }
23
+ end
24
+
25
+ def action_string
26
+ case action
27
+ when "create", "update", "delete", "duplicate"
28
+ "decidim.templates.admin_log.template.#{action}"
29
+ else
30
+ super
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -12,9 +12,18 @@
12
12
  </div>
13
13
 
14
14
  <%= decidim_form_for([questionnaire], url: decidim_admin_templates.apply_questionnaire_templates_url(questionnaire_id: questionnaire, url: request.url), method: :post, html: { class: "form choose_questionnaire_templates" }) do |form| %>
15
- <div class="row column">
16
- <%= select_template form, templates %>
17
- </div>
15
+ <%= datalist_select(templates,
16
+ {
17
+ id: "choose-template",
18
+ list: "template-list",
19
+ label: t(".label"),
20
+ name: "select-template",
21
+ placeholder: t("placeholder", scope: "decidim.templates.admin.questionnaire_templates.choose"),
22
+ data: {
23
+ previewurl: decidim_admin_templates.preview_questionnaire_templates_url(format: :js)
24
+ }
25
+ }
26
+ ) { form.hidden_field :questionnaire_template_id } %>
18
27
 
19
28
  <div class="card-section questionnaire-template-preview">
20
29
  <h3 class="template-name"></h3>
@@ -32,4 +41,5 @@
32
41
  </div>
33
42
  </div>
34
43
 
44
+ <%= javascript_pack_tag "decidim_templates" %>
35
45
  <%= stylesheet_pack_tag "decidim_templates", media: "all" %>
@@ -1,4 +1,3 @@
1
- <% add_decidim_page_title(t(".questionnaire")) %>
2
1
  <%= decidim_form_for(@form, url: questionnaire_template_path, html: { class: "form edit_questionnaire_template" }) do |f| %>
3
2
  <%= render partial: "form", object: f %>
4
3
  <% end %>
@@ -1,4 +1,3 @@
1
- <% add_decidim_page_title(t(".title")) %>
2
1
  <div class="card">
3
2
  <div class="card-divider">
4
3
  <h2 class="card-title">
@@ -1,4 +1,3 @@
1
- <% add_decidim_page_title(t("templates", scope: "decidim.admin.titles")) %>
2
1
  <% content_for :title do %>
3
2
  <%= t("templates", scope: "decidim.admin.titles") %>
4
3
  <% end %>
@@ -1 +1,2 @@
1
+ ---
1
2
  am:
@@ -1,31 +1,6 @@
1
+ ---
1
2
  ar:
2
3
  activemodel:
3
4
  attributes:
4
5
  template:
5
6
  description: الوصف
6
- name: الاسم
7
- decidim:
8
- admin:
9
- menu:
10
- templates: النماذج
11
- titles:
12
- templates: النماذج
13
- models:
14
- questionnaire_template:
15
- fields:
16
- questions: عدد الأسئلة
17
- template:
18
- name: النموذج
19
- templates:
20
- admin:
21
- questionnaire_templates:
22
- choose:
23
- label: اختيار نموذج
24
- placeholder: اختيار نموذج
25
- skip_template: تخطي
26
- edit:
27
- edit: تعديل
28
- form:
29
- save: حفظ
30
- preview:
31
- current_step: الخطوة %{step}
@@ -1 +1,2 @@
1
+ ---
1
2
  bg:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ca:
2
3
  activemodel:
3
4
  attributes:
@@ -63,5 +64,11 @@ ca:
63
64
  current_step: Pas %{step}
64
65
  of_total_steps: de %{total_steps}
65
66
  tos_agreement: En participar acceptes els Termes i condicions d'ús
67
+ admin_log:
68
+ template:
69
+ create: "%{user_name} ha actualitzat la plantilla del qüestionari %{resource_name}"
70
+ delete: "%{user_name} ha esborrat la plantilla del qüestionari %{resource_name}"
71
+ duplicate: "%{user_name} ha duplicat la plantilla del qüestionari %{resource_name}"
72
+ update: "%{user_name} ha actualitzat la plantilla del qüestionari %{resource_name}"
66
73
  template_types:
67
74
  questionnaires: Qüestionari
@@ -1,3 +1,4 @@
1
+ ---
1
2
  cs:
2
3
  activemodel:
3
4
  attributes:
@@ -63,5 +64,11 @@ cs:
63
64
  current_step: Krok %{step}
64
65
  of_total_steps: z %{total_steps}
65
66
  tos_agreement: Zúčastněním souhlasíte s podmínkami služby
67
+ admin_log:
68
+ template:
69
+ create: "%{user_name} vytvořil šablonu dotazníku %{resource_name}"
70
+ delete: "%{user_name} odstranil šablonu dotazníku %{resource_name}"
71
+ duplicate: "%{user_name} zkopíroval šablonu dotazníku %{resource_name}"
72
+ update: "%{user_name} aktualizoval šablonu dotazníku %{resource_name}"
66
73
  template_types:
67
74
  questionnaires: Dotazníky
@@ -1 +1,2 @@
1
+ ---
1
2
  da:
@@ -1,11 +1,5 @@
1
+ ---
1
2
  de:
2
- activemodel:
3
- attributes:
4
- questionnaire:
5
- title: Titel
6
- template:
7
- description: Beschreibung
8
- name: Name
9
3
  decidim:
10
4
  admin:
11
5
  menu:
@@ -1 +1,2 @@
1
+ ---
1
2
  el:
@@ -25,7 +25,7 @@ en:
25
25
  success: Template deleted successfully
26
26
  empty: There are no templates yet.
27
27
  update:
28
- error: There was a problem updating this template.
28
+ error: There was a problem upadting this template.
29
29
  success: Template updated successfully
30
30
  titles:
31
31
  template_types:
@@ -64,5 +64,11 @@ en:
64
64
  current_step: Step %{step}
65
65
  of_total_steps: of %{total_steps}
66
66
  tos_agreement: By participating you accept its Terms of Service
67
+ admin_log:
68
+ template:
69
+ create: "%{user_name} created the %{resource_name} questionnaire template"
70
+ delete: "%{user_name} deleted the %{resource_name} questionnaire template"
71
+ duplicate: "%{user_name} duplicated the %{resource_name} questionnaire template"
72
+ update: "%{user_name} updated the %{resource_name} questionnaire template"
67
73
  template_types:
68
74
  questionnaires: Questionnaires
@@ -1 +1,2 @@
1
+ ---
1
2
  eo:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  es-MX:
2
3
  activemodel:
3
4
  attributes:
@@ -63,5 +64,11 @@ es-MX:
63
64
  current_step: Paso %{step}
64
65
  of_total_steps: de %{total_steps}
65
66
  tos_agreement: Al participar aceptas los Términos y condiciones de uso
67
+ admin_log:
68
+ template:
69
+ create: "%{user_name} ha creado la plantilla del cuestionario %{resource_name}"
70
+ delete: "%{user_name} ha eliminado la plantilla del cuestionario %{resource_name}"
71
+ duplicate: "%{user_name} ha duplicado la plantilla del cuestionario %{resource_name}"
72
+ update: "%{user_name} ha actualizado la platilla del cuestionario %{resource_name}"
66
73
  template_types:
67
74
  questionnaires: Cuestionarios
@@ -1,3 +1,4 @@
1
+ ---
1
2
  es-PY:
2
3
  activemodel:
3
4
  attributes:
@@ -63,5 +64,11 @@ es-PY:
63
64
  current_step: Paso %{step}
64
65
  of_total_steps: de %{total_steps}
65
66
  tos_agreement: Al participar aceptas los Términos y condiciones de uso
67
+ admin_log:
68
+ template:
69
+ create: "%{user_name} ha creado la plantilla del cuestionario %{resource_name}"
70
+ delete: "%{user_name} ha eliminado la plantilla del cuestionario %{resource_name}"
71
+ duplicate: "%{user_name} ha duplicado la plantilla del cuestionario %{resource_name}"
72
+ update: "%{user_name} ha actualizado la platilla del cuestionario %{resource_name}"
66
73
  template_types:
67
74
  questionnaires: Cuestionarios
@@ -1,3 +1,4 @@
1
+ ---
1
2
  es:
2
3
  activemodel:
3
4
  attributes:
@@ -63,5 +64,11 @@ es:
63
64
  current_step: Paso %{step}
64
65
  of_total_steps: de %{total_steps}
65
66
  tos_agreement: Al participar aceptas los Términos y condiciones de uso
67
+ admin_log:
68
+ template:
69
+ create: "%{user_name} ha creado la plantilla del cuestionario %{resource_name}"
70
+ delete: "%{user_name} ha eliminado la plantilla del cuestionario %{resource_name}"
71
+ duplicate: "%{user_name} ha duplicado la plantilla del cuestionario %{resource_name}"
72
+ update: "%{user_name} ha actualizado la platilla del cuestionario %{resource_name}"
66
73
  template_types:
67
74
  questionnaires: Cuestionarios
@@ -1 +1,2 @@
1
+ ---
1
2
  et:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  eu:
2
3
  activemodel:
3
4
  attributes:
@@ -24,7 +25,7 @@ eu:
24
25
  success: Txantiloia zuzen ezabatu da
25
26
  empty: Oraindik ez dago txantiloirik.
26
27
  update:
27
- error: Arazo bat egon da eztabaida hau eguneratzean.
28
+ error: Arazo bat izan da txantiloi hau eguneratzean.
28
29
  success: Txantiloia zuzen eguneratu da
29
30
  titles:
30
31
  template_types:
@@ -55,7 +56,7 @@ eu:
55
56
  form:
56
57
  save: Gorde
57
58
  template_title: Txantiloiaren informazioa
58
- title: '%{questionnaire_for}% galdetegiaren txantiloia'
59
+ title: '%{questionnaire_for} galdetegiaren txantiloia'
59
60
  index:
60
61
  confirm_delete: Ziur zaude txantiloi hau ezabatu nahi duzula?
61
62
  title: Galdetegi-txantiloiak
@@ -1,3 +1,4 @@
1
+ ---
1
2
  fi-pl:
2
3
  activemodel:
3
4
  attributes:
@@ -63,5 +64,11 @@ fi-pl:
63
64
  current_step: Vaihe %{step}
64
65
  of_total_steps: / %{total_steps}
65
66
  tos_agreement: Osallistumalla hyväksyt käyttöehdot
67
+ admin_log:
68
+ template:
69
+ create: "%{user_name} loi kyselymallin %{resource_name}"
70
+ delete: "%{user_name} poisti kyselymallin %{resource_name}"
71
+ duplicate: "%{user_name} kopioi kyselymallin %{resource_name}"
72
+ update: "%{user_name} päivitti kyselymallia %{resource_name}"
66
73
  template_types:
67
74
  questionnaires: Kyselyt
@@ -1,3 +1,4 @@
1
+ ---
1
2
  fi:
2
3
  activemodel:
3
4
  attributes:
@@ -63,5 +64,11 @@ fi:
63
64
  current_step: Vaihe %{step}
64
65
  of_total_steps: / %{total_steps}
65
66
  tos_agreement: Osallistumalla hyväksyt käyttöehdot
67
+ admin_log:
68
+ template:
69
+ create: "%{user_name} loi kyselymallin %{resource_name}"
70
+ delete: "%{user_name} poisti kyselymallin %{resource_name}"
71
+ duplicate: "%{user_name} kopioi kyselymallin %{resource_name}"
72
+ update: "%{user_name} päivitti kyselymallia %{resource_name}"
66
73
  template_types:
67
74
  questionnaires: Kyselyt
@@ -1,3 +1,4 @@
1
+ ---
1
2
  fr-CA:
2
3
  activemodel:
3
4
  attributes:
@@ -24,7 +25,7 @@ fr-CA:
24
25
  success: Modèle supprimé avec succès
25
26
  empty: Il n'y a pas de modèle pour l'instant.
26
27
  update:
27
- error: Un problème est survenu lors de la mise à jour de ce modèle.
28
+ error: Une erreur est survenue pendant la mise à jour du modèle.
28
29
  success: Modèle mis à jour avec succès
29
30
  titles:
30
31
  template_types:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  fr:
2
3
  activemodel:
3
4
  attributes:
@@ -24,7 +25,7 @@ fr:
24
25
  success: Modèle supprimé avec succès
25
26
  empty: Il n'y a pas de modèle pour l'instant.
26
27
  update:
27
- error: Un problème est survenu lors de la mise à jour de ce modèle.
28
+ error: Une erreur est survenue pendant la mise à jour du modèle.
28
29
  success: Modèle mis à jour avec succès
29
30
  titles:
30
31
  template_types:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ga:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  gl:
2
3
  activemodel:
3
4
  attributes:
@@ -24,6 +25,7 @@ gl:
24
25
  success: Padrón eliminado con éxito
25
26
  empty: Aínda non hai padróns.
26
27
  update:
28
+ error: Produciuse un problema ao actualizar o padrón.
27
29
  success: Padrón actualizado con éxito
28
30
  titles:
29
31
  template_types:
@@ -1 +1,2 @@
1
+ ---
1
2
  hr:
@@ -1,66 +1,2 @@
1
+ ---
1
2
  hu:
2
- activemodel:
3
- attributes:
4
- questionnaire:
5
- title: Cím
6
- template:
7
- description: Leírás
8
- name: Név
9
- decidim:
10
- admin:
11
- menu:
12
- templates: Sablonok
13
- templates:
14
- apply:
15
- error: Probléma merült fel a sablon alkalmazása során.
16
- success: Sablon sikeresen alkalmazva
17
- copy:
18
- error: Probléma merült fel a sablon másolása során.
19
- success: Sablon sikeresen másolva
20
- create:
21
- error: Probléma történt az sablon létrehozásakor.
22
- success: Sablon létrhehozása sikeres
23
- destroy:
24
- success: Sablon törlése sikeres
25
- empty: Nincsenek még sablonok.
26
- update:
27
- success: A sablon sikeresen frissült
28
- titles:
29
- template_types:
30
- questionnaires: Kérdőív-sablonok
31
- templates: Sablonok
32
- models:
33
- questionnaire_template:
34
- fields:
35
- questions: Kérdések száma
36
- title: Kérdõív címe
37
- template:
38
- fields:
39
- created_at: 'Létrehozva:'
40
- name: Sablon
41
- templates:
42
- admin:
43
- questionnaire_templates:
44
- choose:
45
- create_from_template: Létrehozás sablonból
46
- description: Egy új kérdőív létrehozására készült. Választhatsz előre létrehozott sablonok közül amelyeket később módosíthatsz.
47
- label: Válassz egy sablont
48
- placeholder: Válassz egy sablont
49
- skip_template: Átugrás
50
- edit:
51
- edit: Szerkesztés
52
- empty: Még nincsenek kérdések
53
- questionnaire: Kérdőív
54
- form:
55
- save: Mentés
56
- template_title: Sablon információi
57
- title: Kérdőív sablon %{questionnaire_for}
58
- index:
59
- confirm_delete: Biztos törölni szeretné a sablont?
60
- title: Kérdőív-sablonok
61
- preview:
62
- current_step: Lépés %{step}
63
- of_total_steps: 'ennyiből: %{total_steps}'
64
- tos_agreement: A részvétellel elfogadja az Általános Szerződési Feltételeket
65
- template_types:
66
- questionnaires: Kérdőívek
@@ -1 +1,2 @@
1
+ ---
1
2
  id: