scrivito_two_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: d2eea01c3c08fc9ae7b82bb421534db741dd716a
4
- data.tar.gz: 7454b6bb1c80e32d463f7ba63222ebb7c4dce317
3
+ metadata.gz: 845d11abbf10b57027ea1b65a11b577219eeb8d3
4
+ data.tar.gz: a7fa1e2dec3232dc755e85ba4da9344b2370b9fd
5
5
  SHA512:
6
- metadata.gz: 920ff0916c2858660ecc797942f385712f354c410b960e9caf8cdc2d06b2ee8789ab823eadbeb24d222d36d66a6b22fdac60e74efcd32a2db2cb163814dd5b8c
7
- data.tar.gz: e75537c0fb693da735c73b46713a6425a91a7b0e3fab49a2493c0fe7349ae907332a94e0b1b78b0dfa5956179d0b8d7d86accb4516ea7063202a779a99271a9d
6
+ metadata.gz: afdc8b6b6e5c9e2efff5c611f2a009f66515ca70acca7653ed073915aa55d239017b6954876c5dcdcb95f7c9a9f6f58b4d48db16574969113f9053e5fa168618
7
+ data.tar.gz: bb73e74f96c2c775e5caccab606a240c38a00dbfe80968b3658063d8acdcdd9e4e623d2a3797bd0e05a3659e0ffe87c04714d6ab61d391ea7ee00ae43f4c9b29
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_two_column_widget'
14
+
15
+ ## Customization
16
+
17
+ We recomment to use [Scrivito Advanced Editors](https://github.com/Scrivito/scrivito_advanced_editors) for best usability.
@@ -1,7 +1,7 @@
1
1
  class TwoColumnWidget < Widget
2
2
  attribute :column_1, :widgetlist
3
3
  attribute :column_2, :widgetlist
4
- attribute :column_1_width, :string, default: '6'
4
+ attribute :column_1_width, :enum, values: (1..12).to_a.map {|e| e.to_s}, default: '6'
5
5
 
6
6
  def column_2_width
7
7
  12 - self.column_1_width.to_i
@@ -1,3 +1,3 @@
1
1
  <%= scrivito_details_for 'column 1' do %>
2
- <%= scrivito_tag(:div, widget, :column_1_width, data: { editor: 'slider', min: 1, max: 12 }) %>
2
+ <%= scrivito_tag(:div, widget, :column_1_width) %>
3
3
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoTwoColumnWidget
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_two_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
@@ -43,7 +43,6 @@ files:
43
43
  - lib/scrivito_two_column_widget/engine.rb
44
44
  - lib/scrivito_two_column_widget/version.rb
45
45
  - lib/tasks/scrivito_two_column_widget_tasks.rake
46
- - scrivito/migrate/0_create_two_column_widget.rb
47
46
  homepage: https://www.scrivito.com
48
47
  licenses:
49
48
  - LGPL-3.0
@@ -1,27 +0,0 @@
1
- class CreateTwoColumnWidget < ::Scrivito::Migration
2
- def up
3
- Scrivito::ObjClass.create(
4
- name: 'TwoColumnWidget',
5
- is_binary: false,
6
- attributes: [
7
- {
8
- name: 'column_1',
9
- type: :widget,
10
- },
11
- {
12
- name: 'column_2',
13
- type: :widget,
14
- },
15
- {
16
- name: 'column_1_width',
17
- type: :string,
18
- },
19
- {
20
- name: 'column_2_width',
21
- type: :string,
22
- },
23
- ]
24
- )
25
- end
26
- end
27
-