scrivito_three_column_widget 0.65.0 → 0.90.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ba66af8e8c73245c8b14b7b0e6aa0aad4dbd35b
4
- data.tar.gz: cf2ed34c69627cd9ff7cbe6023627839971de04e
3
+ metadata.gz: 108ca62034af9855276f00ad75d740fa31e8993d
4
+ data.tar.gz: da4fae60570770e1ef922e4d85b457c342c83164
5
5
  SHA512:
6
- metadata.gz: eee1da454388da833f121eac7a39008efd01ea6ff4865e65f0a6c79825a710dd7cdda6a6de6d49efb90d656dc096fafe302c8a29b7b9f4d33d6d965f9889b10c
7
- data.tar.gz: 6130684475a07d7014f2de9b58a6fe75c30f5734dc73dff1f134a70d13209b75593961ea3bd6d9c048e02af2befa4628767643c0b18e586e1c9a74ffd2da4704
6
+ metadata.gz: 9aadcca017ba60f2fc0486b8bb49b4b96eb96a13041f2c24e71a4a94a4a931e68ed75d8604b7f8a066740c2e9768da70e4a9f8d1cd6308f3a0172d18517c6342
7
+ data.tar.gz: 18b0e0938838adb204edba8510f9c6ec3a4f01670e125c50bba2a8a757bbc73d3540fd743a80d5b80dbb4c69fa9c6a584eda89a13d30214165d63934b2b8c30a
data/LICENSE ADDED
@@ -0,0 +1,3 @@
1
+ Copyright (c) 2009 - 2015 Infopark AG (http://www.infopark.com)
2
+ This software can be used and modified under the LGPL-3.0. Please refer to
3
+ http://www.gnu.org/licenses/lgpl-3.0.html for the license text.
data/README.md CHANGED
@@ -11,3 +11,7 @@ Use Bootstrap in your Rails App.
11
11
  Add the gem to your Gemfile:
12
12
 
13
13
  gem 'scrivito_three_column_widget'
14
+
15
+ ## Customization
16
+
17
+ We recomment to use [Scrivito Advanced Editors](https://github.com/Scrivito/scrivito_advanced_editors) for best usability.
@@ -2,8 +2,8 @@ class ThreeColumnWidget < Widget
2
2
  attribute :column_1, :widgetlist
3
3
  attribute :column_2, :widgetlist
4
4
  attribute :column_3, :widgetlist
5
- attribute :column_1_width, :string, default: '4'
6
- attribute :column_2_width, :string, default: '4'
5
+ attribute :column_1_width, :enum, values: (1..12).to_a.map{|e| e.to_s}, default: '4'
6
+ attribute :column_2_width, :enum, values: (1..12).to_a.map{|e| e.to_s}, default: '4'
7
7
 
8
8
  def column_3_width
9
9
  12 - self.column_1_width.to_i - self.column_2_width.to_i
@@ -1,7 +1,7 @@
1
- <%= scrivito_details_for 'column 1' do %>
2
- <%= scrivito_tag(:div, widget, :column_1_width, data: { editor: 'slider', min: 1, max: 12 }) %>
1
+ <%= scrivito_details_for 'Width for column 1' do %>
2
+ <%= scrivito_tag(:div, widget, :column_1_width) %>
3
3
  <% end %>
4
4
 
5
- <%= scrivito_details_for 'column 2' do %>
6
- <%= scrivito_tag(:div, widget, :column_2_width, data: { editor: 'slider', min: 1, max: 12 }) %>
7
- <% end %>
5
+ <%= scrivito_details_for 'Width for column 2' do %>
6
+ <%= scrivito_tag(:div, widget, :column_2_width) %>
7
+ <% end %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoThreeColumnWidget
2
- VERSION = "0.65.0"
2
+ VERSION = "0.90.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_three_column_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.65.0
4
+ version: 0.90.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-07-06 00:00:00.000000000 Z
11
+ date: 2015-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scrivito
@@ -32,11 +32,11 @@ executables: []
32
32
  extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
+ - LICENSE
35
36
  - README.md
36
37
  - Rakefile
37
38
  - app/assets/images/scrivito_three_column_widget/widget_preview_3cols.png
38
39
  - app/models/three_column_widget.rb
39
- - app/views/layouts/scrivito_three_columns/application.html.erb
40
40
  - app/views/three_column_widget/details.html.erb
41
41
  - app/views/three_column_widget/show.html.erb
42
42
  - app/views/three_column_widget/thumbnail.html.erb
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>ScrivitoThreeColumns</title>
5
- <%= stylesheet_link_tag "scrivito_three_columns/application", media: "all" %>
6
- <%= javascript_include_tag "scrivito_three_columns/application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>