polyblock 0.2.5 → 0.2.7
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: e40e428d63eae1bd65f7506d26b15c06ec686ba5
|
4
|
+
data.tar.gz: 4e6e904c4f6eed92a4c3dc6f1e50c6e06bda659b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 464780fbf2e0292d0d08d25012acc611be8e6d427c2f6a21971a9400de877a5659bb1703233640e95e7d477de18d15bf8fa8a6e7e10ea91fda415f8cece54eaa
|
7
|
+
data.tar.gz: d89cd1a47c1bee418eff4d5efcbb6525b6cc46f9c838881e3e66b0f1ae7f67e827bb001d1cd6f43a0bf1c329afcb997bf76c0aaa4f31bc27248261418f364a99
|
@@ -39,8 +39,11 @@ module Polyblock
|
|
39
39
|
content_tag(options[:tag], content, tag_options, false)
|
40
40
|
end
|
41
41
|
|
42
|
-
def simple_fields_for_polyblock(name, f)
|
43
|
-
|
42
|
+
def simple_fields_for_polyblock(name, f, options={})
|
43
|
+
options = {
|
44
|
+
:label => false
|
45
|
+
}.merge(options)
|
46
|
+
render :partial => "polyblock/simple_fields_for", :locals => {:f => f, :name => name, :options => options}
|
44
47
|
end
|
45
48
|
|
46
49
|
end
|
@@ -1,3 +1,6 @@
|
|
1
1
|
= f.simple_fields_for name do |ff|
|
2
2
|
= ff.input_field :name, :as => :hidden, :value => name.to_s
|
3
|
-
|
3
|
+
- if !options[:label]
|
4
|
+
= ff.input_field :content, :as => :ckeditor
|
5
|
+
- else
|
6
|
+
= ff.input :content, :as => :ckeditor, :label => options[:label].is_a?(String) ? options[:label] : name.titleize
|
data/lib/polyblock/version.rb
CHANGED