cortex-plugins-core 0.11.1 → 0.11.2

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: e4bd07a0ea13aa49a90ed6a2dbf4afe23b84bf3b
4
- data.tar.gz: ad25af70b6ae11d015c2f86d598d553b1d3b990f
3
+ metadata.gz: 29ec7609d19b3bd88aa0286cc60d58520aa4ce53
4
+ data.tar.gz: 1a6412290c60dd42465610ef7ed03e41108d8473
5
5
  SHA512:
6
- metadata.gz: 4fb61b3e99019a6f57eef80df805a9518dd5785f15c3c1081156bc87fa593c8dd732d3bb1e5cc9bdbe5b4fd79f456139c3e7c34851e61134f9c26db03f943cfb
7
- data.tar.gz: 2c63e3f1748256b1ee7da486582862be68bb18ee507e433129ce4989165f86757a0fb495eec9eb4c23dd06bef21a0e610feeddaca1cc0aa0bbae278641add3dc
6
+ metadata.gz: ab4b16bd8bbfc5213fcc0d1ca1a7308349994ba7b06a1f36fd63a2a41ad14ed7cb0dfa35dd4b36eca389444ac2ee54d6c82486777905906a033bb0117ddd9a19
7
+ data.tar.gz: 3840add38562cfa288365755777646824d94654ec3e9e5cc058f4d9f9dbc2f459fce5cc9ee9998c5116b313fdc6a6ef5cc5f119fdc2e0dc112467a7a12927efb
@@ -5,5 +5,8 @@
5
5
  = render_max_asset_size
6
6
  %br
7
7
  = render_field_id
8
+ - if @options[:tooltip]
9
+ %p
10
+ = render_tooltip
8
11
  = render_label
9
12
  = render_input
@@ -39,6 +39,10 @@ module Plugins
39
39
  @options[:form].file_field 'data[asset]'
40
40
  end
41
41
 
42
+ def render_tooltip
43
+ @options[:tooltip]
44
+ end
45
+
42
46
  def associated_content_item_thumb_url
43
47
  data['asset']['style_urls']['mini']
44
48
  end
@@ -1,5 +1,6 @@
1
- .mdl-textfield.mdl-js-textfield.authorfield
1
+ .mdl-textfield.mdl-js-textfield.authorfield.mdl-textfield--floating-label
2
2
  = render_field_id
3
3
  = render_label
4
4
  = render_input
5
+ = render_tooltip unless @options[:tooltip].nil?
5
6
  = render_default_value
@@ -2,5 +2,6 @@
2
2
  %label.mdl-checkbox.mdl-js-checkbox.mdl-js-ripple-effect{ for: checkbox_id }
3
3
  = render_checkbox
4
4
  = render_checkbox_label
5
+ = render_tooltip unless @options[:tooltip].nil?
5
6
 
6
7
  %br
@@ -1,3 +1,4 @@
1
1
  = render_field_id
2
2
  = render_label
3
+ = render_tooltip unless @options[:tooltip].nil?
3
4
  = render_switch
@@ -2,6 +2,7 @@
2
2
  = render_content_item_id
3
3
 
4
4
  = render_label
5
+ = render_tooltip unless @options[:tooltip].nil?
5
6
  %br
6
7
  %button.content-item-button#featured-button__select
7
8
  .content-item-button__select.content-item-button__select--selected
@@ -1,4 +1,5 @@
1
- .mdl-textfield.mdl-js-textfield
1
+ .mdl-textfield.mdl-js-textfield.mdl-textfield--floating-label
2
2
  = render_field_id
3
3
  = render_label
4
+ = render_tooltip unless @options[:tooltip].nil?
4
5
  = render_datepicker
@@ -1,5 +1,5 @@
1
1
  .mdl-textfield.mdl-js-textfield.mdl-textfield--floating-label
2
2
  = render_field_id
3
3
  = render_label
4
+ = render_tooltip unless @options[:tooltip].nil?
4
5
  = render_input
5
-
@@ -1,5 +1,5 @@
1
- .mdl-textfield.mdl-js-textfield
1
+ .mdl-textfield.mdl-js-textfield.mdl-textfield--floating-label
2
2
  = render_field_id
3
3
  = render_label
4
+ = render_tooltip unless @options[:tooltip].nil?
4
5
  = render_input
5
-
@@ -1,5 +1,6 @@
1
1
  = render_field_id
2
2
  = render_label
3
+ = render_tooltip unless @options[:tooltip].nil?
3
4
  %br
4
5
  %span{class: 'cortex-bootstrap'}
5
6
  = render_tag_field
@@ -1,5 +1,5 @@
1
- .mdl-textfield.mdl-js-textfield
1
+ .mdl-textfield.mdl-js-textfield.mdl-textfield--floating-label
2
2
  = render_field_id
3
3
  = render_label
4
+ = render_tooltip unless @options[:tooltip].nil?
4
5
  = render_input
5
-
@@ -1,4 +1,5 @@
1
- .mdl-textfield.mdl-js-textfield
1
+ .mdl-textfield.mdl-js-textfield.mdl-textfield--floating-label
2
2
  = render_label
3
+ = render_tooltip unless @options[:tooltip].nil?
3
4
  = render_field_id
4
5
  = render_multiline_input
@@ -0,0 +1,3 @@
1
+ .icon.material-icons.tooltip-icon{ :id => tooltip_id } help
2
+ .mdl-tooltip.mdl-tooltip--large{ "data-mdl-for" => tooltip_id }
3
+ = @options[:tooltip]
@@ -0,0 +1,15 @@
1
+ module Plugins
2
+ module Core
3
+ class TooltipCell < Plugins::Core::Cell
4
+ def show
5
+ render
6
+ end
7
+
8
+ private
9
+
10
+ def tooltip_id
11
+ @options[:id].parameterize('_')
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,4 +1,5 @@
1
1
  = render_label
2
+ = render_tooltip unless @options[:tooltip].nil?
2
3
 
3
4
  %p
4
5
  Please select 1-2 Categories.
@@ -1,4 +1,5 @@
1
1
  = render_label
2
+ = render_tooltip unless @options[:tooltip].nil?
2
3
  %br
3
4
  = render_field_id
4
5
  = render_select
@@ -1,4 +1,5 @@
1
1
  = render_label
2
+ = render_tooltip unless @options[:tooltip].nil?
2
3
  %br
3
4
  = render_field_id
4
5
  = render_select
@@ -1,7 +1,7 @@
1
1
  module Cortex
2
2
  module Plugins
3
3
  module Core
4
- VERSION = '0.11.1'
4
+ VERSION = '0.11.2'
5
5
  end
6
6
  end
7
7
  end
@@ -66,7 +66,8 @@ namespace :cortex do
66
66
  "grid_width": 12,
67
67
  "elements": [
68
68
  {
69
- "id": media.fields.find_by_name('Asset').id
69
+ "id": media.fields.find_by_name('Asset').id,
70
+ "tooltip": "Recommended blog featured image size: 1452px x 530px with a live area of 930px x 530px"
70
71
  }
71
72
  ]
72
73
  }
@@ -154,7 +155,7 @@ namespace :cortex do
154
155
  "name": "Creator",
155
156
  "cells": [{
156
157
  "field": {
157
- "method": "author_image"
158
+ "method": "author_email"
158
159
  },
159
160
  "display": {
160
161
  "classes": [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cortex-plugins-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - CareerBuilder Employer Site & Content Products
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-14 00:00:00.000000000 Z
11
+ date: 2017-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -154,6 +154,8 @@ files:
154
154
  - app/cells/plugins/core/text/multiline_input.haml
155
155
  - app/cells/plugins/core/text/wysiwyg.haml
156
156
  - app/cells/plugins/core/text_cell.rb
157
+ - app/cells/plugins/core/tooltip/show.haml
158
+ - app/cells/plugins/core/tooltip_cell.rb
157
159
  - app/cells/plugins/core/tree/checkboxes.haml
158
160
  - app/cells/plugins/core/tree/dropdown.haml
159
161
  - app/cells/plugins/core/tree_cell.rb