decidim-templates 0.26.9 → 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
@@ -1,32 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module Templates
5
- module Admin
6
- # Custom helpers, scoped to the templates engine.
7
- #
8
- module TemplatesHelper
9
- def select_template(form, templates)
10
- prompt_options = {
11
- url: decidim_admin_templates.questionnaire_templates_url(format: :json),
12
- change_url: decidim_admin_templates.preview_questionnaire_templates_url(format: :js),
13
- placeholder: t("placeholder", scope: "decidim.templates.admin.questionnaire_templates.choose")
14
- }
15
-
16
- default_options = templates.last(5).map { |questionnaire_template| { value: questionnaire_template.id, label: translated_attribute(questionnaire_template.name) } }
17
-
18
- form.autocomplete_select(
19
- :questionnaire_template_id,
20
- false,
21
- {
22
- multiple: false,
23
- label: t("label", scope: "decidim.templates.admin.questionnaire_templates.choose"),
24
- default_options: default_options
25
- },
26
- prompt_options
27
- )
28
- end
29
- end
30
- end
31
- end
32
- end
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Empty line for playing nice with tpope/vim-rails
@@ -1 +0,0 @@
1
- fa:
@@ -1 +0,0 @@
1
- gn:
@@ -1 +0,0 @@
1
- ka:
@@ -1,7 +0,0 @@
1
- kaa:
2
- decidim:
3
- templates:
4
- admin:
5
- questionnaire_templates:
6
- form:
7
- save: Saqlaw
@@ -1 +0,0 @@
1
- lo:
@@ -1 +0,0 @@
1
- oc:
@@ -1 +0,0 @@
1
- sq:
@@ -1 +0,0 @@
1
- th: