activeadmin-selleo-cms 0.0.58 → 0.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
= label_tag dom_id(option), option.title
|
|
21
21
|
- if question.has_other_option
|
|
22
22
|
= label_tag "#{dom_id(question)}_other", t("active_admin.cms.forms.other")
|
|
23
|
-
=
|
|
23
|
+
.other= ActiveadminSelleoCms::FormAnswer.value_for(params[:form_uuid], "#{dom_id(question)}_other")
|
|
24
24
|
- elsif [:radio_button_tag].include? question.input_type
|
|
25
25
|
.questions_options
|
|
26
26
|
- question.options.each do |option|
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
= label_tag dom_id(option), option.title
|
|
29
29
|
- if question.has_other_option
|
|
30
30
|
= label_tag "#{dom_id(question)}_other", t("active_admin.cms.forms.other")
|
|
31
|
-
=
|
|
31
|
+
.other= ActiveadminSelleoCms::FormAnswer.value_for(params[:form_uuid], "#{dom_id(question)}_other")
|
|
32
32
|
- elsif [:file_field_tag].include? question.input_type
|
|
33
33
|
.file_upload
|
|
34
34
|
%ol
|
|
@@ -36,5 +36,7 @@
|
|
|
36
36
|
%li= link_to file.data_file_name, file.data.url
|
|
37
37
|
- elsif question.input_type == :legend
|
|
38
38
|
%legend= question.label
|
|
39
|
+
- elsif [:text_area_tag, :text_field_tag].include? question.input_type
|
|
40
|
+
.textarea= ActiveadminSelleoCms::FormAnswer.value_for(params[:form_uuid], dom_id(question))
|
|
39
41
|
- else
|
|
40
42
|
= send(question.input_type, dom_id(question), ActiveadminSelleoCms::FormAnswer.value_for(params[:form_uuid], dom_id(question)), required: question.is_required, data: {form_question_id: question.id})
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activeadmin-selleo-cms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.59
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-08-
|
|
12
|
+
date: 2013-08-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|