scrivito_accordion_widget 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/scrivito_accordion_widget.js +11 -0
- data/app/assets/stylesheets/scrivito_accordion_widget.css +6 -2
- data/app/models/accordion_panel_widget.rb +2 -0
- data/app/models/accordion_widget.rb +1 -0
- data/app/views/accordion_panel_widget/{show.html.erb → _show.html.erb} +0 -0
- data/app/views/accordion_widget/show.html.erb +10 -1
- data/lib/scrivito_accordion_widget/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9df3a5713ded233e49006e054850b0db0117265a
|
4
|
+
data.tar.gz: b7d5c14d4fbdfd96fd4f539ab33790b1a7b45e54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5968ba71d3c93339326247928b44d00bbe62a7b35c32beb2304e918c2be6e98e58f88338d6b48b2ab6acd3345f24f8ea6066b79964a2fbdc7ea58010d724aa3
|
7
|
+
data.tar.gz: c9f50c0a7bb98a3a4370fa502ed35c8b1634e7656ae6de9238e52745c6f5019caba6224728e53ba98b07308967f388f7427842e4ed331ba1d5048b1b5734aefe
|
@@ -0,0 +1,11 @@
|
|
1
|
+
$(function() {
|
2
|
+
$.each($("[data-scrivito-widget-obj-class='AccordionWidget']"), function(index, accordion) {
|
3
|
+
$(accordion).scrivito("menu").add("add_panel_to_accordion", {
|
4
|
+
title: "Add Panel",
|
5
|
+
icon: "plus",
|
6
|
+
execute: function(dom_element) {
|
7
|
+
// TODO: create new widget
|
8
|
+
},
|
9
|
+
});
|
10
|
+
});
|
11
|
+
});
|
@@ -1,5 +1,9 @@
|
|
1
|
-
|
2
|
-
margin
|
1
|
+
.scrivito_editing_active .panel-group .panel-body.scrivito_empty_widget_field {
|
2
|
+
margin: 10px !important;
|
3
|
+
}
|
4
|
+
|
5
|
+
.scrivito_editing_active .panel-group .panel-body {
|
6
|
+
margin: 0px !important;
|
3
7
|
}
|
4
8
|
|
5
9
|
.scrivito_editing_active .panel-group {
|
File without changes
|
@@ -1,3 +1,12 @@
|
|
1
1
|
<div class='panel-group' id='<%= "accordion-#{widget.id}" %>' role="tablist" aria-multiselectable="true">
|
2
|
-
|
2
|
+
|
3
|
+
<% widget.panels.each do |panel| %>
|
4
|
+
<%= render 'accordion_panel_widget/show', widget: panel %>
|
5
|
+
<% end %>
|
6
|
+
|
3
7
|
</div>
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
<%#= scrivito_tag(:div, widget, :panels, class: 'panel-group', id: "accordion-#{widget.id}", role: "tablist") %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_accordion_widget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -63,10 +63,11 @@ files:
|
|
63
63
|
- README.md
|
64
64
|
- Rakefile
|
65
65
|
- app/assets/images/widget_preview_accordion.png
|
66
|
+
- app/assets/javascripts/scrivito_accordion_widget.js
|
66
67
|
- app/assets/stylesheets/scrivito_accordion_widget.css
|
67
68
|
- app/models/accordion_panel_widget.rb
|
68
69
|
- app/models/accordion_widget.rb
|
69
|
-
- app/views/accordion_panel_widget/
|
70
|
+
- app/views/accordion_panel_widget/_show.html.erb
|
70
71
|
- app/views/accordion_panel_widget/thumbnail.html.erb
|
71
72
|
- app/views/accordion_widget/show.html.erb
|
72
73
|
- app/views/accordion_widget/thumbnail.html.erb
|