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: 4b7c9131f6a8993ed4d9841d0ff47790c3479c2e
4
- data.tar.gz: fe85bab8dbbc289140df5948ead403fa0532dd66
3
+ metadata.gz: 8086cddbaed44923a6ca08e0f41e793a749e6322
4
+ data.tar.gz: 12caec96c38c451c042ee4c66b22c51db7604dbc
5
5
  SHA512:
6
- metadata.gz: bf4652f7261bd846c94eabef8da28f19b9b7cd540e7c9bc927a54bbeebdee228578e90519915c2dfa9d350f595724d1b14c16ef3e006449f8c8f3a29987ecead
7
- data.tar.gz: bc7f4c6147a713771e0338d8ccd86b98cf24a5882eb345b680bff7e2830d3901f8f7f92b1948e9c7d7f5bd88cbf6f5772b4ffb66046649d5bc6f34fb95c6cfb8
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",
@@ -1,3 +1,3 @@
1
1
  module BiolaWcmsComponents
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
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.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-16 00:00:00.000000000 Z
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