scrivito_tabbed_content_widget 0.0.65 → 0.66.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: 55058f51ec19de65444df2fc0d5a3c7d47275658
|
4
|
+
data.tar.gz: 80ea2c7bd0e343ff515f236d41c2d778267237d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cc0a60c5eea66baeb32d7253afbff0cd017d3da05e8331519026492948912ba726f28c3a1cd1e186db669085403ba453c9a4167b53f9f10f0a75ad74039d0e5
|
7
|
+
data.tar.gz: ea41f2c9a3b658db917ae5dc060dc81438aa9f35db9d2549af4b360f69bddb81146726050a4e47fd3f4e495915066786d16a29652f523d08874d56681cf0232d
|
data/README.md
CHANGED
@@ -10,11 +10,11 @@ Add the gem to your Gemfile:
|
|
10
10
|
|
11
11
|
Add this line to your applications stylesheet manifest
|
12
12
|
|
13
|
-
|
13
|
+
*= require scrivito_tabbed_content_widget
|
14
14
|
|
15
15
|
Add this line to your applications javascript manifest
|
16
16
|
|
17
|
-
|
17
|
+
//= require scrivito_tabbed_content_widget
|
18
18
|
|
19
19
|
## License
|
20
20
|
|
@@ -1,8 +1,12 @@
|
|
1
1
|
class TabbedContentWidget < Widget
|
2
|
-
attribute :tabs, :widgetlist
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
attribute :tabs, :widgetlist
|
3
|
+
|
4
|
+
default_for :tabs do |attribute, scrivito_user|
|
5
|
+
[
|
6
|
+
TabbedContentTabWidget.new(title: 'First Tab'),
|
7
|
+
TabbedContentTabWidget.new(title: 'Second Tab')
|
8
|
+
]
|
9
|
+
end
|
6
10
|
|
7
11
|
def valid_widget_classes_for(field_name)
|
8
12
|
[TabbedContentTabWidget]
|
@@ -1,9 +1,9 @@
|
|
1
|
-
<div class="scrivito-
|
1
|
+
<div class="scrivito-title-details">
|
2
2
|
<%= scrivito_tag :h4, widget, :title %>
|
3
|
-
<%= link_to '(details)', '#', 'data-scrivito-
|
4
|
-
<div class="scrivito-
|
3
|
+
<%= link_to '(details)', '#', 'data-scrivito-toggle-details' => widget.id %>
|
4
|
+
<div class="scrivito-details-<%= widget.id %>">
|
5
5
|
<div>
|
6
|
-
<
|
6
|
+
<h5>Background Color</h5>
|
7
7
|
<%= render 'scrivito_advanced_editors/color_picker', widget: widget, attribute: :background_color %>
|
8
8
|
</div>
|
9
9
|
</div>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_tabbed_content_widget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.66.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scrivito
|