effective_style_guide 1.5.2 → 1.5.3

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: d944449c80c03b0eab90d58d8c4929c5235d6b52
4
- data.tar.gz: b1aabf84c62884626c5c55c91fd73103656ee22c
3
+ metadata.gz: 6166fb4e1e5d0b67d54b39b5bc708663bb59c7fe
4
+ data.tar.gz: 329af607adeee525813474c63bf72946be10603a
5
5
  SHA512:
6
- metadata.gz: 3090ca337f9363dbaa9f7dce93948e0dcfd2096da2682e37d345a00a0688afd2ea5bd1330b36d0da90d6f700c51a2a4d352f3c81ba56bf906908160b7b990f2d
7
- data.tar.gz: e6fbe7213f39e1d541dbb2f60c741af3aa7b9362d88d0d7cdeed6fa331630bb9dc2fdf06bcbd30fe8bf1c05e25d62d3ce80a308b6d93c86baa82e9c45549eec1
6
+ metadata.gz: fe386826ffaf224ae793b8d82f2b91e82b908b385140d936daa8280e0effc00d239d0e3930bd806df9a61deff0884f141519dc8c527d11cd1d03d064bb53a1c8
7
+ data.tar.gz: 690bb5d4ba7ed024363bbc7be8ac5d8f41fe159442dc37b5422b178ae4179e22efe3f63a338e604d4b0365d5f387b2c89784a44651aba10d48ffcea89e092446
@@ -25,6 +25,13 @@
25
25
  :placeholder => 'Create or select multiple tags',
26
26
  :multiple => true,
27
27
  :tags => true
28
+
29
+ = f.input :category,
30
+ :as => :effective_panel_select,
31
+ :input_js => { invade: false },
32
+ :collection => EffectiveStyleGuide.grouped_colors,
33
+ :hint => 'please select a category (this is an effective_panel_select from EffectiveFormInputs)'
34
+
28
35
  - else
29
36
  = f.input :category,
30
37
  :as => :select,
@@ -128,6 +135,12 @@
128
135
  :placeholder => 'Create or select multiple tags',
129
136
  :multiple => true,
130
137
  :tags => true
138
+
139
+ = f.input :category,
140
+ :as => :effective_panel_select,
141
+ :input_js => { invade: false },
142
+ :collection => EffectiveStyleGuide.grouped_colors,
143
+ :hint => 'please select a category (this is an effective_panel_select from EffectiveFormInputs)'
131
144
  - else
132
145
  = f.input :category,
133
146
  :as => :select,
@@ -26,6 +26,13 @@
26
26
  :placeholder => 'Create or select multiple tags',
27
27
  :multiple => true,
28
28
  :tags => true
29
+
30
+ = f.input :category,
31
+ :as => :effective_panel_select,
32
+ :input_js => { invade: false },
33
+ :collection => EffectiveStyleGuide.grouped_colors,
34
+ :hint => 'please select a category (this is an effective_panel_select from EffectiveFormInputs)'
35
+
29
36
  - else
30
37
  = f.input :category,
31
38
  :as => :select,
@@ -127,6 +134,12 @@
127
134
  :placeholder => 'Create or select multiple tags',
128
135
  :multiple => true,
129
136
  :tags => true
137
+
138
+ = f.input :category,
139
+ :as => :effective_panel_select,
140
+ :input_js => { invade: false },
141
+ :collection => EffectiveStyleGuide.grouped_colors,
142
+ :hint => 'please select a category (this is an effective_panel_select from EffectiveFormInputs)'
130
143
  - else
131
144
  = f.input :category,
132
145
  :as => :select,
@@ -1,3 +1,3 @@
1
1
  module EffectiveStyleGuide
2
- VERSION = '1.5.2'.freeze
2
+ VERSION = '1.5.3'.freeze
3
3
  end
@@ -27,4 +27,12 @@ module EffectiveStyleGuide
27
27
  ['Coffee', 'Tea', 'Soda']
28
28
  end
29
29
 
30
+ def self.grouped_colors
31
+ {
32
+ 'Top' => [['Red', 1], ['Orange', 2], ['Yellow', 3]],
33
+ 'Middle' => [['Green', 4], ['Blue', 5], ['Indigo', 6]],
34
+ 'Bottom' => [['Violet', 7]]
35
+ }
36
+ end
37
+
30
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_style_guide
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-19 00:00:00.000000000 Z
11
+ date: 2017-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails