lalala 4.0.0.dev.349 → 4.0.0.dev.350
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lalala/admin/pages.rb +16 -1
- data/lib/lalala/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 483f33450f209f0544fb54ccb718a7fc76379c6a
|
4
|
+
data.tar.gz: 4a330aa11699a31a516a4b5e2f90fd3272a4bbfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a24724a3d30ea5c42010f08663e1b828ec398b5f917c3cd556912226b1656d2d5e2a24fdff1540f8db3b21ee654d5b3bde911f2da280aa181090298715f4b3a9
|
7
|
+
data.tar.gz: 1a37d429e7442f533b543a46af88d2e4cda961bff3c93981e838acc29dedb086af4013958b63f19e0e0be5cd4eb406ecc83fdc238514e462e3bcd64d436c21f1
|
data/lib/lalala/admin/pages.rb
CHANGED
@@ -1,11 +1,14 @@
|
|
1
1
|
if defined?(ActiveAdmin) and defined?(ApplicationPage)
|
2
2
|
ActiveAdmin.register ApplicationPage, :as => 'Page' do
|
3
|
-
|
4
3
|
menu priority: 20, html_options: { class: 'icon-page' }
|
5
4
|
|
6
5
|
config.filters = false
|
7
6
|
config.paginate = false
|
7
|
+
config.clear_action_items!
|
8
8
|
|
9
|
+
#
|
10
|
+
# Index
|
11
|
+
#
|
9
12
|
index as: :tree_table, paginator: false, download_links: false do
|
10
13
|
selectable_column
|
11
14
|
|
@@ -44,6 +47,10 @@ if defined?(ActiveAdmin) and defined?(ApplicationPage)
|
|
44
47
|
|
45
48
|
end
|
46
49
|
|
50
|
+
|
51
|
+
#
|
52
|
+
# Form
|
53
|
+
#
|
47
54
|
form do |f|
|
48
55
|
h = "".html_safe
|
49
56
|
if f.object.new_record?
|
@@ -54,6 +61,10 @@ if defined?(ActiveAdmin) and defined?(ApplicationPage)
|
|
54
61
|
h
|
55
62
|
end
|
56
63
|
|
64
|
+
|
65
|
+
#
|
66
|
+
# Order action
|
67
|
+
#
|
57
68
|
collection_action :order, :method => :put do
|
58
69
|
unless Array === params[:ordered_ids]
|
59
70
|
render status: 422
|
@@ -68,6 +79,10 @@ if defined?(ActiveAdmin) and defined?(ApplicationPage)
|
|
68
79
|
render json: { status: "OK" }, status: 200
|
69
80
|
end
|
70
81
|
|
82
|
+
|
83
|
+
#
|
84
|
+
# Controller
|
85
|
+
#
|
71
86
|
controller do
|
72
87
|
|
73
88
|
def new
|
data/lib/lalala/version.rb
CHANGED