biola_wcms_components 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8086cddbaed44923a6ca08e0f41e793a749e6322
|
4
|
+
data.tar.gz: 12caec96c38c451c042ee4c66b22c51db7604dbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b069823a6296c9b474ae16d5af590f8eabfbea5968ca18cadd151bf2dd4604fd258971b3907aa29a4b20ef7dbfbef0c1239b8d7dc0e3b209af8c1a221f1c7089
|
7
|
+
data.tar.gz: 3dd44873145b13cd414ef7214fab0d880f47fe26394822f1bd57edac0b75a91ce3f516dfe3b432122d40bff9232de77c8c2456eec16b629cfd276a7ab10b7cc1
|
@@ -0,0 +1,15 @@
|
|
1
|
+
ruby:
|
2
|
+
raise 'Form parameter is required' if form.blank?
|
3
|
+
|
4
|
+
# You should be able to set target model to nil if you want,
|
5
|
+
# though it should default to the form object's class
|
6
|
+
if !defined?(target_class)
|
7
|
+
target_class = form.object.class.to_s
|
8
|
+
end
|
9
|
+
|
10
|
+
templates = PresentationDataTemplate
|
11
|
+
templates = templates.where(target_class: target_class) if target_class
|
12
|
+
|
13
|
+
p Please select a template for this presentation data.
|
14
|
+
|
15
|
+
= form.collection_select :presentation_data_template_id, templates.asc(:title), :id, :title, {include_blank: true}, class: 'form-control'
|
@@ -6,9 +6,13 @@
|
|
6
6
|
/
|
7
7
|
|
8
8
|
ruby:
|
9
|
+
if form ||= nil
|
10
|
+
schema ||= form.object.presentation_data_template.try(:schema)
|
11
|
+
presentation_data ||= form.object.presentation_data
|
12
|
+
end
|
13
|
+
|
9
14
|
schema ||= []
|
10
15
|
presentation_data ||= {}
|
11
|
-
form ||= nil
|
12
16
|
embedded_image_url ||= wcms_components_embedded_images_url
|
13
17
|
|
14
18
|
= wcms_component "shared/embedded_image_uploader",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: biola_wcms_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Hall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ace-rails-ap
|
@@ -174,6 +174,7 @@ files:
|
|
174
174
|
- app/helpers/wcms_components/component_helper.rb
|
175
175
|
- app/helpers/wcms_components/navigation_helper.rb
|
176
176
|
- app/views/wcms_components/alerts/_message_list.html.slim
|
177
|
+
- app/views/wcms_components/forms/_data_template_picker.html.slim
|
177
178
|
- app/views/wcms_components/forms/_date.html.slim
|
178
179
|
- app/views/wcms_components/forms/_datetime.html.slim
|
179
180
|
- app/views/wcms_components/forms/_json_editor.html.slim
|