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.
- checksums.yaml +4 -4
- data/app/commands/decidim/templates/admin/apply_questionnaire_template.rb +1 -1
- data/app/commands/decidim/templates/admin/copy_questionnaire_template.rb +8 -5
- data/app/commands/decidim/templates/admin/create_questionnaire_template.rb +1 -1
- data/app/commands/decidim/templates/admin/destroy_template.rb +1 -1
- data/app/commands/decidim/templates/admin/questionnaire_copier.rb +2 -1
- data/app/commands/decidim/templates/admin/update_template.rb +1 -1
- data/app/controllers/decidim/templates/admin/questionnaire_templates/questionnaires_controller.rb +1 -1
- data/app/controllers/decidim/templates/admin/questionnaire_templates_controller.rb +4 -2
- data/app/models/decidim/templates/template.rb +6 -0
- data/app/packs/entrypoints/decidim_templates.js +1 -0
- data/app/packs/src/decidim/templates/admin/choose_template.js +30 -0
- data/app/permissions/decidim/templates/admin/permissions.rb +1 -1
- data/app/presenters/decidim/templates/admin_log/template_presenter.rb +36 -0
- data/app/views/decidim/templates/admin/questionnaire_templates/_choose.html.erb +13 -3
- data/app/views/decidim/templates/admin/questionnaire_templates/edit.html.erb +0 -1
- data/app/views/decidim/templates/admin/questionnaire_templates/index.html.erb +0 -1
- data/app/views/decidim/templates/admin/questionnaire_templates/new.html.erb +0 -1
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +1 -26
- data/config/locales/bg.yml +1 -0
- data/config/locales/ca.yml +7 -0
- data/config/locales/cs.yml +7 -0
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +1 -7
- data/config/locales/el.yml +1 -0
- data/config/locales/en.yml +7 -1
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +7 -0
- data/config/locales/es-PY.yml +7 -0
- data/config/locales/es.yml +7 -0
- data/config/locales/et.yml +1 -0
- data/config/locales/eu.yml +3 -2
- data/config/locales/fi-plain.yml +7 -0
- data/config/locales/fi.yml +7 -0
- data/config/locales/fr-CA.yml +2 -1
- data/config/locales/fr.yml +2 -1
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/gl.yml +2 -0
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +1 -65
- data/config/locales/id-ID.yml +1 -0
- data/config/locales/is-IS.yml +2 -1
- data/config/locales/it.yml +2 -0
- data/config/locales/ja.yml +8 -1
- data/config/locales/ko.yml +1 -0
- data/config/locales/lb.yml +1 -0
- data/config/locales/lt.yml +1 -66
- data/config/locales/lv.yml +1 -0
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +2 -0
- data/config/locales/no.yml +2 -0
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +2 -0
- data/config/locales/pt-BR.yml +3 -1
- data/config/locales/pt.yml +2 -0
- data/config/locales/ro-RO.yml +6 -5
- 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 +1 -1
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +2 -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 +2 -0
- data/config/locales/zh-TW.yml +1 -66
- data/db/seeds.rb +1 -1
- data/lib/decidim/templates/admin_engine.rb +8 -3
- data/lib/decidim/templates/test/shared_examples/uses_questionnaire_templates.rb +9 -8
- data/lib/decidim/templates/version.rb +1 -1
- metadata +16 -24
- data/app/helpers/decidim/templates/admin/templates_helper.rb +0 -32
- data/config/environment.rb +0 -3
- data/config/locales/fa-IR.yml +0 -1
- data/config/locales/gn-PY.yml +0 -1
- data/config/locales/ka-GE.yml +0 -1
- data/config/locales/kaa.yml +0 -7
- data/config/locales/lo-LA.yml +0 -1
- data/config/locales/oc-FR.yml +0 -1
- data/config/locales/sq-AL.yml +0 -1
- 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
|
data/config/environment.rb
DELETED
data/config/locales/fa-IR.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
fa:
|
data/config/locales/gn-PY.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
gn:
|
data/config/locales/ka-GE.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ka:
|
data/config/locales/kaa.yml
DELETED
data/config/locales/lo-LA.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
lo:
|
data/config/locales/oc-FR.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
oc:
|
data/config/locales/sq-AL.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
sq:
|
data/config/locales/th-TH.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
th:
|