activeadmin 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activeadmin might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +43 -28
- data/CONTRIBUTING.md +47 -21
- data/app/assets/javascripts/active_admin/base.js +509 -0
- data/app/assets/stylesheets/active_admin/_base.scss +29 -29
- data/app/assets/stylesheets/active_admin/_header.scss +3 -5
- data/app/assets/stylesheets/active_admin/_mixins.scss +1 -1
- data/{vendor → app}/assets/stylesheets/active_admin/_normalize.scss +0 -0
- data/app/assets/stylesheets/active_admin/components/_tables.scss +1 -2
- data/app/assets/stylesheets/active_admin/mixins/_all.scss +8 -8
- data/app/assets/stylesheets/active_admin/mixins/_variables.scss +5 -0
- data/app/assets/stylesheets/active_admin/print.scss +2 -2
- data/app/assets/stylesheets/active_admin/structure/_main_structure.scss +1 -1
- data/app/javascript/active_admin/base.js +19 -0
- data/app/{assets/javascripts/active_admin/ext/jquery-ui.es6 → javascript/active_admin/ext/jquery-ui.js} +0 -0
- data/app/{assets/javascripts/active_admin/ext/jquery.es6 → javascript/active_admin/ext/jquery.js} +0 -0
- data/app/{assets/javascripts/active_admin/lib/batch_actions.es6 → javascript/active_admin/initializers/batch-actions.js} +4 -2
- data/app/javascript/active_admin/initializers/checkbox-toggler.js +3 -0
- data/app/{assets/javascripts/active_admin/initializers/datepicker.es6 → javascript/active_admin/initializers/datepicker.js} +0 -0
- data/app/javascript/active_admin/initializers/dropdown-menu.js +9 -0
- data/app/javascript/active_admin/initializers/filters.js +10 -0
- data/app/{assets/javascripts/active_admin/lib/has_many.es6 → javascript/active_admin/initializers/has-many.js} +0 -0
- data/app/javascript/active_admin/initializers/per-page.js +13 -0
- data/app/javascript/active_admin/initializers/table-checkbox-toggler.js +3 -0
- data/app/{assets/javascripts/active_admin/initializers/tabs.es6 → javascript/active_admin/initializers/tabs.js} +0 -0
- data/app/{assets/javascripts/active_admin/lib/checkbox-toggler.es6 → javascript/active_admin/lib/checkbox-toggler.js} +2 -2
- data/app/{assets/javascripts/active_admin/lib/dropdown-menu.es6 → javascript/active_admin/lib/dropdown-menu.js} +2 -9
- data/app/javascript/active_admin/lib/filters.js +39 -0
- data/app/{assets/javascripts/active_admin/lib/modal_dialog.es6 → javascript/active_admin/lib/modal-dialog.js} +3 -1
- data/app/javascript/active_admin/lib/per-page.js +38 -0
- data/app/{assets/javascripts/active_admin/lib/table-checkbox-toggler.es6 → javascript/active_admin/lib/table-checkbox-toggler.js} +4 -2
- data/app/javascript/active_admin/lib/utils.js +40 -0
- data/config/locales/az.yml +138 -0
- data/docs/1-general-configuration.md +20 -0
- data/docs/Gemfile.lock +55 -54
- data/lib/active_admin.rb +0 -1
- data/lib/active_admin/application.rb +1 -1
- data/lib/active_admin/filters/active_filter.rb +1 -1
- data/lib/active_admin/inputs/filters/date_range_input.rb +4 -4
- data/lib/active_admin/resource.rb +1 -1
- data/lib/active_admin/resource_controller/polymorphic_routes.rb +3 -2
- data/lib/active_admin/version.rb +1 -1
- data/lib/active_admin/views/components/paginated_collection.rb +1 -0
- data/lib/active_admin/views/components/table_for.rb +1 -0
- data/lib/active_admin/views/pages/base.rb +1 -1
- data/lib/active_admin/views/pages/index.rb +1 -0
- metadata +27 -43
- data/app/assets/images/active_admin/nested_menu_arrow.gif +0 -0
- data/app/assets/images/active_admin/nested_menu_arrow_dark.gif +0 -0
- data/app/assets/images/active_admin/orderable.png +0 -0
- data/app/assets/javascripts/active_admin/base.es6 +0 -23
- data/app/assets/javascripts/active_admin/initializers/filters.es6 +0 -45
- data/app/assets/javascripts/active_admin/lib/active_admin.es6 +0 -41
- data/app/assets/javascripts/active_admin/lib/per_page.es6 +0 -47
@@ -0,0 +1,138 @@
|
|
1
|
+
az:
|
2
|
+
active_admin:
|
3
|
+
dashboard: "İdarəetmə paneli"
|
4
|
+
dashboard_welcome:
|
5
|
+
welcome: "Active Admin-ə xoş gəlmişsiniz. Bu saytla idarəetmənin standart səhifəsidir."
|
6
|
+
call_to_action: "Buraya nə isə əlavə etmək üçün 'app/admin/dashboard.rb' sənədini dəyişin"
|
7
|
+
view: "Aç"
|
8
|
+
edit: "Dəyiş"
|
9
|
+
delete: "Sil"
|
10
|
+
delete_confirmation: "Siz bunu silmək istədiyinizdən əminsiniz?"
|
11
|
+
new_model: "%{model} yarat"
|
12
|
+
edit_model: "%{model} dəyiş"
|
13
|
+
delete_model: "%{model} sil"
|
14
|
+
details: "%{model} haqqında"
|
15
|
+
cancel: "İmtina"
|
16
|
+
empty: "Boş"
|
17
|
+
previous: "Geri"
|
18
|
+
next: "İrəli"
|
19
|
+
download: "Yüklənmə:"
|
20
|
+
has_many_new: "%{model} əlavə et"
|
21
|
+
has_many_delete: "Sil"
|
22
|
+
has_many_remove: "Yığışdır"
|
23
|
+
filters:
|
24
|
+
buttons:
|
25
|
+
filter: "Filtrlə"
|
26
|
+
clear: "Təmizlə"
|
27
|
+
predicates:
|
28
|
+
contains: "Yerləşir"
|
29
|
+
equals: "Bərabərdir"
|
30
|
+
starts_with: "Başlayır"
|
31
|
+
ends_with: "Bitir"
|
32
|
+
greater_than: "böyük"
|
33
|
+
less_than: "kiçik"
|
34
|
+
search_status:
|
35
|
+
headline: "Axtarışın statusu:"
|
36
|
+
current_scope: "Sahə:"
|
37
|
+
current_filters: "Cari filter:"
|
38
|
+
no_current_filters: "Heç biri"
|
39
|
+
status_tag:
|
40
|
+
"yes": "Bəli"
|
41
|
+
"no": "Xeyr"
|
42
|
+
main_content: "Создайте %{model}#main_content для отображения содержимого."
|
43
|
+
logout: "Çıxış"
|
44
|
+
powered_by: "Работает на %{active_admin} %{version}"
|
45
|
+
sidebars:
|
46
|
+
filters: "Filterlə"
|
47
|
+
search_status: "Axtarışın statusu"
|
48
|
+
pagination:
|
49
|
+
empty: "%{model} tapılmadı"
|
50
|
+
one: "Nəticə: <b>1</b> %{model}"
|
51
|
+
one_page: "Nəticə: <b>%{n}</b> %{model}"
|
52
|
+
multiple: "Nəticə: %{model} <b>%{from} - %{to}</b> <b>%{total}</b>"
|
53
|
+
multiple_without_total: "Nəticə: %{model} <b>%{from} - %{to}</b>"
|
54
|
+
entry:
|
55
|
+
one: "yazı"
|
56
|
+
few: "yazı"
|
57
|
+
many: "yazı"
|
58
|
+
other: "yazı"
|
59
|
+
any: "İstənilən"
|
60
|
+
blank_slate:
|
61
|
+
content: "%{resource_name} hələ yoxdur."
|
62
|
+
link: "Yarat"
|
63
|
+
dropdown_actions:
|
64
|
+
button_label: "Əməliyyatlar"
|
65
|
+
batch_actions:
|
66
|
+
button_label: "Qrup əməliyyatları"
|
67
|
+
default_confirmation: "Siz bunu etməyinizə əminsiniz?"
|
68
|
+
delete_confirmation: "Siz %{plural_model} silməyə əminsiniz?"
|
69
|
+
succesfully_destroyed:
|
70
|
+
one: "Uğurla silindi: 1 %{model}"
|
71
|
+
few: "Uğurla silindi: %{count} %{plural_model}"
|
72
|
+
many: "Uğurla silindi: %{count} %{plural_model}"
|
73
|
+
other: "Uğurla silindi: %{count} %{plural_model}"
|
74
|
+
selection_toggle_explanation: "(Hamısını seç / Seçilmişləri sıfırla)"
|
75
|
+
action_label: "%{title} seçilmiş"
|
76
|
+
labels:
|
77
|
+
destroy: "Sil"
|
78
|
+
comments:
|
79
|
+
created_at: "Yaranma tarixi"
|
80
|
+
resource_type: "Resursun tipi"
|
81
|
+
author_type: "Müəllifin tipi"
|
82
|
+
body: "Mətn"
|
83
|
+
author: "Müəllif"
|
84
|
+
add: "Şərh əlavə et"
|
85
|
+
delete: "Şərhi sil"
|
86
|
+
delete_confirmation: "Siz bu şərhi silmək istədiyinizdən əminsiniz?"
|
87
|
+
resource: "Resurs"
|
88
|
+
no_comments_yet: "Hələ şərhlər yoxdur."
|
89
|
+
author_missing: "Naməlum"
|
90
|
+
title_content: "Şərhlər (%{count})"
|
91
|
+
errors:
|
92
|
+
empty_text: "Şərh yadda saxlanılmadı, mətn boş ola bilməz."
|
93
|
+
devise:
|
94
|
+
username:
|
95
|
+
title: "İstifadəçi adı"
|
96
|
+
email:
|
97
|
+
title: "E-poçt"
|
98
|
+
subdomain:
|
99
|
+
title: "Subdomen"
|
100
|
+
password:
|
101
|
+
title: "Şifrə"
|
102
|
+
sign_up:
|
103
|
+
title: "Qeydiyyat"
|
104
|
+
submit: "Qeydiyyatdan keç"
|
105
|
+
login:
|
106
|
+
title: "Giriş"
|
107
|
+
remember_me: "Məni yadda saxla"
|
108
|
+
submit: "Daxil ol"
|
109
|
+
reset_password:
|
110
|
+
title: "Şifrəni unutmusunuz?"
|
111
|
+
submit: "Şifrəni sıfırla"
|
112
|
+
change_password:
|
113
|
+
title: "Şifrənin dəyişdirilməsi"
|
114
|
+
submit: "Şifrəni dəyiş"
|
115
|
+
unlock:
|
116
|
+
title: "Blokdan çıxarma üzrə təlimatı yenidən göndərmək"
|
117
|
+
submit: "Blokdan çıxarma üzrə təlimatı yenidən göndərmək"
|
118
|
+
resend_confirmation_instructions:
|
119
|
+
title: "Aktivləşdirmə ismarışını yenidən göndərmək"
|
120
|
+
submit: "Aktivləşdirmə ismarışını yenidən göndərmək"
|
121
|
+
links:
|
122
|
+
sign_up: "Qeydiyyat"
|
123
|
+
sign_in: "Giriş"
|
124
|
+
forgot_your_password: "Şifrəni unutmusunuz?"
|
125
|
+
sign_in_with_omniauth_provider: "%{provider} vasitəsilə daxil ol"
|
126
|
+
resend_unlock_instructions: "Blokdan çıxarma üzrə təlimatı yenidən göndərilməsi"
|
127
|
+
resend_confirmation_instructions: "Aktivləşdirmə ismarışını yenidən göndərilməsi"
|
128
|
+
unsupported_browser:
|
129
|
+
headline: "Zəhmət olmasa, bilin ki, Active Admin artıq Internet Explorer-in köhnə versiyalarını daha dəstəkləmir və yalnız IE 8 versiyasından başlayaraq dəstəkləyir"
|
130
|
+
recommendation: "Biz sizin brauzerinizin versiyasını yeniləməyi məsləhət görürük (<a href=\"http://windows.microsoft.com/ie\">Internet Explorer</a>, <a href=\"https://chrome.google.com/\">Google Chrome</a>, və ya <a href=\"https://mozilla.org/firefox/\">Firefox</a>)."
|
131
|
+
turn_off_compatibility_view: "Əgər siz IE 9 və ya daha yeni versiya istifadə edirsinizsə, əmin olun ki, <a href=\"https://support.microsoft.com/ru-ru/help/17471\">\"Uyğunluğun rejimində baxış\"</a> seçimini söndürmüsünüz."
|
132
|
+
access_denied:
|
133
|
+
message: "Bunu etmək üçün daxil olmalısınız."
|
134
|
+
index_list:
|
135
|
+
table: "Cədvəl"
|
136
|
+
block: "Siyahı"
|
137
|
+
grid: "Tor"
|
138
|
+
blog: "Bloq"
|
@@ -106,6 +106,26 @@ ActiveAdmin.setup do |config|
|
|
106
106
|
end
|
107
107
|
```
|
108
108
|
|
109
|
+
If you are creating a multi-tenant application you may want to have multiple namespaces mounted to the same path. We can do this using the `route_options` settings on the namespace
|
110
|
+
|
111
|
+
```ruby
|
112
|
+
config.namespace :site_1 do |admin|
|
113
|
+
admin.route_options = { path: :admin, constraints: ->(request){ request.domain == "site1.com" } }
|
114
|
+
end
|
115
|
+
|
116
|
+
config.namespace :site_2 do |admin|
|
117
|
+
admin.route_options = { path: :admin, constraints: ->(request){ request.domain == "site2.com" } }
|
118
|
+
end
|
119
|
+
```
|
120
|
+
|
121
|
+
If you would like to mount the namespace to a subdomain instead of path we can use the `route_options` for this as well
|
122
|
+
|
123
|
+
```ruby
|
124
|
+
config.namespace :admin do |admin|
|
125
|
+
admin.route_options = { path: '', subdomain: 'admin' }
|
126
|
+
end
|
127
|
+
```
|
128
|
+
|
109
129
|
Each setting available in the Active Admin setup block is configurable on a per
|
110
130
|
namespace basis.
|
111
131
|
|
data/docs/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
GEM
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activesupport (4.2.
|
4
|
+
activesupport (4.2.11.1)
|
5
5
|
i18n (~> 0.7)
|
6
6
|
minitest (~> 5.1)
|
7
7
|
thread_safe (~> 0.3, >= 0.3.4)
|
8
8
|
tzinfo (~> 1.1)
|
9
|
-
addressable (2.
|
10
|
-
public_suffix (>= 2.0.2, <
|
9
|
+
addressable (2.7.0)
|
10
|
+
public_suffix (>= 2.0.2, < 5.0)
|
11
11
|
coffee-script (2.4.1)
|
12
12
|
coffee-script-source
|
13
13
|
execjs
|
@@ -15,39 +15,39 @@ GEM
|
|
15
15
|
colorator (1.1.0)
|
16
16
|
commonmarker (0.17.13)
|
17
17
|
ruby-enum (~> 0.5)
|
18
|
-
concurrent-ruby (1.
|
19
|
-
dnsruby (1.61.
|
18
|
+
concurrent-ruby (1.1.5)
|
19
|
+
dnsruby (1.61.3)
|
20
20
|
addressable (~> 2.5)
|
21
21
|
em-websocket (0.5.1)
|
22
22
|
eventmachine (>= 0.12.9)
|
23
23
|
http_parser.rb (~> 0.6.0)
|
24
|
-
ethon (0.
|
24
|
+
ethon (0.12.0)
|
25
25
|
ffi (>= 1.3.0)
|
26
26
|
eventmachine (1.2.7)
|
27
27
|
execjs (2.7.0)
|
28
|
-
faraday (0.
|
28
|
+
faraday (0.17.0)
|
29
29
|
multipart-post (>= 1.2, < 3)
|
30
|
-
ffi (1.
|
30
|
+
ffi (1.11.1)
|
31
31
|
forwardable-extended (2.6.0)
|
32
|
-
gemoji (3.0.
|
33
|
-
github-pages (
|
34
|
-
activesupport (= 4.2.
|
35
|
-
github-pages-health-check (= 1.
|
36
|
-
jekyll (= 3.
|
32
|
+
gemoji (3.0.1)
|
33
|
+
github-pages (202)
|
34
|
+
activesupport (= 4.2.11.1)
|
35
|
+
github-pages-health-check (= 1.16.1)
|
36
|
+
jekyll (= 3.8.5)
|
37
37
|
jekyll-avatar (= 0.6.0)
|
38
38
|
jekyll-coffeescript (= 1.1.1)
|
39
|
-
jekyll-commonmark-ghpages (= 0.1.
|
39
|
+
jekyll-commonmark-ghpages (= 0.1.6)
|
40
40
|
jekyll-default-layout (= 0.1.4)
|
41
|
-
jekyll-feed (= 0.
|
41
|
+
jekyll-feed (= 0.11.0)
|
42
42
|
jekyll-gist (= 1.5.0)
|
43
|
-
jekyll-github-metadata (= 2.
|
43
|
+
jekyll-github-metadata (= 2.12.1)
|
44
44
|
jekyll-mentions (= 1.4.1)
|
45
45
|
jekyll-optional-front-matter (= 0.3.0)
|
46
46
|
jekyll-paginate (= 1.1.0)
|
47
47
|
jekyll-readme-index (= 0.2.0)
|
48
48
|
jekyll-redirect-from (= 0.14.0)
|
49
|
-
jekyll-relative-links (= 0.
|
50
|
-
jekyll-remote-theme (= 0.
|
49
|
+
jekyll-relative-links (= 0.6.0)
|
50
|
+
jekyll-remote-theme (= 0.4.0)
|
51
51
|
jekyll-sass-converter (= 1.5.2)
|
52
52
|
jekyll-seo-tag (= 2.5.0)
|
53
53
|
jekyll-sitemap (= 1.2.0)
|
@@ -66,28 +66,28 @@ GEM
|
|
66
66
|
jekyll-theme-tactile (= 0.1.1)
|
67
67
|
jekyll-theme-time-machine (= 0.1.1)
|
68
68
|
jekyll-titles-from-headings (= 0.5.1)
|
69
|
-
jemoji (= 0.10.
|
69
|
+
jemoji (= 0.10.2)
|
70
70
|
kramdown (= 1.17.0)
|
71
71
|
liquid (= 4.0.0)
|
72
72
|
listen (= 3.1.5)
|
73
73
|
mercenary (~> 0.3)
|
74
74
|
minima (= 2.5.0)
|
75
|
-
nokogiri (>= 1.
|
76
|
-
rouge (=
|
75
|
+
nokogiri (>= 1.10.4, < 2.0)
|
76
|
+
rouge (= 3.11.0)
|
77
77
|
terminal-table (~> 1.4)
|
78
|
-
github-pages-health-check (1.
|
78
|
+
github-pages-health-check (1.16.1)
|
79
79
|
addressable (~> 2.3)
|
80
80
|
dnsruby (~> 1.60)
|
81
81
|
octokit (~> 4.0)
|
82
|
-
public_suffix (~>
|
82
|
+
public_suffix (~> 3.0)
|
83
83
|
typhoeus (~> 1.3)
|
84
|
-
html-pipeline (2.
|
84
|
+
html-pipeline (2.12.0)
|
85
85
|
activesupport (>= 2)
|
86
86
|
nokogiri (>= 1.4)
|
87
87
|
http_parser.rb (0.6.0)
|
88
88
|
i18n (0.9.5)
|
89
89
|
concurrent-ruby (~> 1.0)
|
90
|
-
jekyll (3.
|
90
|
+
jekyll (3.8.5)
|
91
91
|
addressable (~> 2.4)
|
92
92
|
colorator (~> 1.0)
|
93
93
|
em-websocket (~> 0.5)
|
@@ -105,21 +105,21 @@ GEM
|
|
105
105
|
jekyll-coffeescript (1.1.1)
|
106
106
|
coffee-script (~> 2.2)
|
107
107
|
coffee-script-source (~> 1.11.1)
|
108
|
-
jekyll-commonmark (1.
|
108
|
+
jekyll-commonmark (1.3.1)
|
109
109
|
commonmarker (~> 0.14)
|
110
|
-
jekyll (>= 3.
|
111
|
-
jekyll-commonmark-ghpages (0.1.
|
110
|
+
jekyll (>= 3.7, < 5.0)
|
111
|
+
jekyll-commonmark-ghpages (0.1.6)
|
112
112
|
commonmarker (~> 0.17.6)
|
113
|
-
jekyll-commonmark (~> 1)
|
114
|
-
rouge (
|
113
|
+
jekyll-commonmark (~> 1.2)
|
114
|
+
rouge (>= 2.0, < 4.0)
|
115
115
|
jekyll-default-layout (0.1.4)
|
116
116
|
jekyll (~> 3.0)
|
117
|
-
jekyll-feed (0.
|
117
|
+
jekyll-feed (0.11.0)
|
118
118
|
jekyll (~> 3.3)
|
119
119
|
jekyll-gist (1.5.0)
|
120
120
|
octokit (~> 4.2)
|
121
|
-
jekyll-github-metadata (2.
|
122
|
-
jekyll (~> 3.
|
121
|
+
jekyll-github-metadata (2.12.1)
|
122
|
+
jekyll (~> 3.4)
|
123
123
|
octokit (~> 4.0, != 4.4.0)
|
124
124
|
jekyll-mentions (1.4.1)
|
125
125
|
html-pipeline (~> 2.3)
|
@@ -131,9 +131,10 @@ GEM
|
|
131
131
|
jekyll (~> 3.0)
|
132
132
|
jekyll-redirect-from (0.14.0)
|
133
133
|
jekyll (~> 3.3)
|
134
|
-
jekyll-relative-links (0.
|
134
|
+
jekyll-relative-links (0.6.0)
|
135
135
|
jekyll (~> 3.3)
|
136
|
-
jekyll-remote-theme (0.
|
136
|
+
jekyll-remote-theme (0.4.0)
|
137
|
+
addressable (~> 2.0)
|
137
138
|
jekyll (~> 3.5)
|
138
139
|
rubyzip (>= 1.2.1, < 3.0)
|
139
140
|
jekyll-sass-converter (1.5.2)
|
@@ -185,9 +186,9 @@ GEM
|
|
185
186
|
jekyll-seo-tag (~> 2.0)
|
186
187
|
jekyll-titles-from-headings (0.5.1)
|
187
188
|
jekyll (~> 3.3)
|
188
|
-
jekyll-watch (2.
|
189
|
+
jekyll-watch (2.2.1)
|
189
190
|
listen (~> 3.0)
|
190
|
-
jemoji (0.10.
|
191
|
+
jemoji (0.10.2)
|
191
192
|
gemoji (~> 3.0)
|
192
193
|
html-pipeline (~> 2.2)
|
193
194
|
jekyll (~> 3.0)
|
@@ -203,40 +204,40 @@ GEM
|
|
203
204
|
jekyll (~> 3.5)
|
204
205
|
jekyll-feed (~> 0.9)
|
205
206
|
jekyll-seo-tag (~> 2.1)
|
206
|
-
minitest (5.
|
207
|
-
multipart-post (2.
|
208
|
-
nokogiri (1.10.
|
207
|
+
minitest (5.12.2)
|
208
|
+
multipart-post (2.1.1)
|
209
|
+
nokogiri (1.10.5)
|
209
210
|
mini_portile2 (~> 2.4.0)
|
210
|
-
octokit (4.
|
211
|
+
octokit (4.14.0)
|
211
212
|
sawyer (~> 0.8.0, >= 0.5.3)
|
212
|
-
pathutil (0.16.
|
213
|
+
pathutil (0.16.2)
|
213
214
|
forwardable-extended (~> 2.6)
|
214
|
-
public_suffix (
|
215
|
+
public_suffix (3.1.1)
|
215
216
|
rb-fsevent (0.10.3)
|
216
|
-
rb-inotify (0.
|
217
|
-
ffi (
|
218
|
-
rouge (
|
217
|
+
rb-inotify (0.10.0)
|
218
|
+
ffi (~> 1.0)
|
219
|
+
rouge (3.11.0)
|
219
220
|
ruby-enum (0.7.2)
|
220
221
|
i18n
|
221
222
|
ruby_dep (1.5.0)
|
222
223
|
rubyzip (2.0.0)
|
223
|
-
safe_yaml (1.0.
|
224
|
-
sass (3.
|
224
|
+
safe_yaml (1.0.5)
|
225
|
+
sass (3.7.4)
|
225
226
|
sass-listen (~> 4.0.0)
|
226
227
|
sass-listen (4.0.0)
|
227
228
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
228
229
|
rb-inotify (~> 0.9, >= 0.9.7)
|
229
|
-
sawyer (0.8.
|
230
|
-
addressable (>= 2.3.5
|
231
|
-
faraday (
|
230
|
+
sawyer (0.8.2)
|
231
|
+
addressable (>= 2.3.5)
|
232
|
+
faraday (> 0.8, < 2.0)
|
232
233
|
terminal-table (1.8.0)
|
233
234
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
234
235
|
thread_safe (0.3.6)
|
235
|
-
typhoeus (1.3.
|
236
|
+
typhoeus (1.3.1)
|
236
237
|
ethon (>= 0.9.0)
|
237
238
|
tzinfo (1.2.5)
|
238
239
|
thread_safe (~> 0.1)
|
239
|
-
unicode-display_width (1.
|
240
|
+
unicode-display_width (1.6.0)
|
240
241
|
|
241
242
|
PLATFORMS
|
242
243
|
ruby
|
@@ -245,4 +246,4 @@ DEPENDENCIES
|
|
245
246
|
github-pages
|
246
247
|
|
247
248
|
BUNDLED WITH
|
248
|
-
|
249
|
+
2.0.2
|
data/lib/active_admin.rb
CHANGED
@@ -73,7 +73,7 @@ module ActiveAdmin
|
|
73
73
|
def namespace(name)
|
74
74
|
name ||= :root
|
75
75
|
|
76
|
-
namespace = namespaces[name] ||= begin
|
76
|
+
namespace = namespaces[name.to_sym] ||= begin
|
77
77
|
namespace = Namespace.new(self, name)
|
78
78
|
ActiveSupport::Notifications.publish ActiveAdmin::Namespace::RegisterEvent, namespace
|
79
79
|
namespace
|
@@ -7,8 +7,8 @@ module ActiveAdmin
|
|
7
7
|
def to_html
|
8
8
|
input_wrapping do
|
9
9
|
[ label_html,
|
10
|
-
builder.text_field(gt_input_name,
|
11
|
-
builder.text_field(lt_input_name,
|
10
|
+
builder.text_field(gt_input_name, input_html_options_for(gt_input_name, gt_input_placeholder)),
|
11
|
+
builder.text_field(lt_input_name, input_html_options_for(lt_input_name, lt_input_placeholder)),
|
12
12
|
].join("\n").html_safe
|
13
13
|
end
|
14
14
|
end
|
@@ -22,7 +22,7 @@ module ActiveAdmin
|
|
22
22
|
column && column.type == :date ? "#{method}_lteq" : "#{method}_lteq_datetime"
|
23
23
|
end
|
24
24
|
|
25
|
-
def
|
25
|
+
def input_html_options_for(input_name = gt_input_name, placeholder = gt_input_placeholder)
|
26
26
|
current_value = begin
|
27
27
|
#cast value to date object before rendering input
|
28
28
|
@object.public_send(input_name).to_s.to_date
|
@@ -33,7 +33,7 @@ module ActiveAdmin
|
|
33
33
|
class: "datepicker",
|
34
34
|
maxlength: 10,
|
35
35
|
placeholder: placeholder,
|
36
|
-
value: current_value ? current_value.strftime("%Y-%m-%d") : "" }
|
36
|
+
value: current_value ? current_value.strftime("%Y-%m-%d") : "" }.merge(input_html_options)
|
37
37
|
end
|
38
38
|
|
39
39
|
def gt_input_placeholder
|
@@ -70,7 +70,7 @@ module ActiveAdmin
|
|
70
70
|
def initialize(namespace, resource_class, options = {})
|
71
71
|
@namespace = namespace
|
72
72
|
@resource_class_name = "::#{resource_class.name}"
|
73
|
-
@options
|
73
|
+
@options = options
|
74
74
|
@sort_order = options[:sort_order]
|
75
75
|
@member_actions = []
|
76
76
|
@collection_actions = []
|