fullstack-admin 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/helpers/admin_form_helper.rb +15 -0
- data/fullstack-admin.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.5
|
@@ -180,6 +180,21 @@ module AdminFormHelper
|
|
180
180
|
end
|
181
181
|
end
|
182
182
|
|
183
|
+
def box(title, options = {})
|
184
|
+
options[:orientation] ||= "form-horizontal"
|
185
|
+
|
186
|
+
@target.template.content_tag(:div, :class => ("box " << options[:orientation])) do
|
187
|
+
buff = ""
|
188
|
+
buff << @target.template.content_tag(:div, title, :class => "box-header")
|
189
|
+
buff << @target.template.content_tag(:div, :class => "box-content") do
|
190
|
+
yield
|
191
|
+
end
|
192
|
+
buff.html_safe
|
193
|
+
end
|
194
|
+
|
195
|
+
end
|
196
|
+
|
197
|
+
|
183
198
|
def sort_association(association, options = {})
|
184
199
|
assoc_str = association.to_s
|
185
200
|
@target.template.render :partial => "sort", :locals => {
|
data/fullstack-admin.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fullstack-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -1279,7 +1279,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1279
1279
|
version: '0'
|
1280
1280
|
segments:
|
1281
1281
|
- 0
|
1282
|
-
hash:
|
1282
|
+
hash: 1400748193854743822
|
1283
1283
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1284
1284
|
none: false
|
1285
1285
|
requirements:
|