activeadmin 2.9.0 → 2.14.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 +230 -1
- data/CONTRIBUTING.md +4 -5
- data/README.md +2 -2
- data/app/assets/javascripts/active_admin/base.js +13 -9
- data/app/assets/stylesheets/active_admin/_base.scss +53 -37
- data/app/assets/stylesheets/active_admin/_forms.scss +1 -11
- data/app/assets/stylesheets/active_admin/_normalize.scss +25 -123
- data/app/assets/stylesheets/active_admin/components/_date_picker.scss +1 -2
- data/app/assets/stylesheets/active_admin/components/_dropdown_menu.scss +0 -1
- data/app/assets/stylesheets/active_admin/mixins/_variables.scss +9 -0
- data/app/assets/stylesheets/active_admin/structure/_footer.scss +6 -1
- data/app/assets/stylesheets/active_admin/structure/_title_bar.scss +0 -1
- data/app/javascript/active_admin/initializers/has-many.js +4 -1
- data/app/views/active_admin/devise/shared/_links.erb +1 -1
- data/app/views/active_admin/page/index.html.arb +1 -0
- data/app/views/active_admin/resource/edit.html.arb +1 -0
- data/app/views/active_admin/resource/index.html.arb +1 -0
- data/app/views/active_admin/resource/new.html.arb +1 -0
- data/app/views/active_admin/resource/show.html.arb +1 -0
- data/app/views/layouts/active_admin.html.arb +1 -0
- data/app/views/layouts/active_admin_logged_out.html.erb +5 -4
- data/config/locales/fr.yml +3 -3
- data/config/locales/ko.yml +1 -1
- data/config/locales/nl.yml +1 -1
- data/config/locales/ro.yml +3 -2
- data/config/locales/vi.yml +34 -7
- data/config/locales/zh-CN.yml +36 -17
- data/lib/active_admin/abstract_view_factory.rb +1 -0
- data/lib/active_admin/application.rb +10 -10
- data/lib/active_admin/application_settings.rb +1 -0
- data/lib/active_admin/asset_registration.rb +4 -3
- data/lib/active_admin/authorization_adapter.rb +3 -0
- data/lib/active_admin/base_controller/authorization.rb +4 -3
- data/lib/active_admin/base_controller/menu.rb +1 -0
- data/lib/active_admin/base_controller.rb +2 -1
- data/lib/active_admin/batch_actions/controller.rb +1 -0
- data/lib/active_admin/batch_actions/resource_extension.rb +1 -0
- data/lib/active_admin/batch_actions/views/batch_action_form.rb +1 -0
- data/lib/active_admin/batch_actions/views/batch_action_selector.rb +1 -0
- data/lib/active_admin/batch_actions/views/selection_cells.rb +1 -0
- data/lib/active_admin/batch_actions.rb +1 -0
- data/lib/active_admin/callbacks.rb +1 -0
- data/lib/active_admin/cancan_adapter.rb +1 -0
- data/lib/active_admin/collection_decorator.rb +1 -0
- data/lib/active_admin/component.rb +1 -0
- data/lib/active_admin/controller_action.rb +1 -0
- data/lib/active_admin/csv_builder.rb +5 -18
- data/lib/active_admin/dependency.rb +1 -4
- data/lib/active_admin/deprecation.rb +1 -0
- data/lib/active_admin/devise.rb +11 -0
- data/lib/active_admin/dsl.rb +1 -0
- data/lib/active_admin/dynamic_setting.rb +1 -0
- data/lib/active_admin/dynamic_settings_node.rb +1 -0
- data/lib/active_admin/engine.rb +4 -2
- data/lib/active_admin/error.rb +1 -0
- data/lib/active_admin/filters/active.rb +1 -0
- data/lib/active_admin/filters/active_filter.rb +1 -0
- data/lib/active_admin/filters/active_sidebar.rb +2 -28
- data/lib/active_admin/filters/dsl.rb +1 -0
- data/lib/active_admin/filters/forms.rb +1 -0
- data/lib/active_admin/filters/formtastic_addons.rb +1 -0
- data/lib/active_admin/filters/resource_extension.rb +5 -4
- data/lib/active_admin/filters.rb +1 -0
- data/lib/active_admin/form_builder.rb +1 -0
- data/lib/active_admin/generators/boilerplate.rb +1 -0
- data/lib/active_admin/helpers/collection.rb +2 -0
- data/lib/active_admin/helpers/i18n.rb +1 -0
- data/lib/active_admin/helpers/optional_display.rb +1 -0
- data/lib/active_admin/helpers/routes/url_helpers.rb +1 -0
- data/lib/active_admin/helpers/scope_chain.rb +1 -0
- data/lib/active_admin/inputs/datepicker_input.rb +1 -0
- data/lib/active_admin/inputs/filters/base/search_method_select.rb +1 -0
- data/lib/active_admin/inputs/filters/base.rb +1 -0
- data/lib/active_admin/inputs/filters/boolean_input.rb +1 -0
- data/lib/active_admin/inputs/filters/check_boxes_input.rb +1 -0
- data/lib/active_admin/inputs/filters/date_picker_input.rb +1 -0
- data/lib/active_admin/inputs/filters/date_range_input.rb +1 -0
- data/lib/active_admin/inputs/filters/numeric_input.rb +1 -0
- data/lib/active_admin/inputs/filters/select_input.rb +1 -0
- data/lib/active_admin/inputs/filters/string_input.rb +1 -0
- data/lib/active_admin/inputs/filters/text_input.rb +1 -0
- data/lib/active_admin/inputs.rb +1 -0
- data/lib/active_admin/localizers/resource_localizer.rb +1 -0
- data/lib/active_admin/localizers.rb +1 -0
- data/lib/active_admin/menu.rb +1 -0
- data/lib/active_admin/menu_collection.rb +1 -0
- data/lib/active_admin/menu_item.rb +1 -0
- data/lib/active_admin/namespace.rb +3 -2
- data/lib/active_admin/namespace_settings.rb +1 -0
- data/lib/active_admin/order_clause.rb +1 -0
- data/lib/active_admin/orm/active_record/comments/comment.rb +1 -0
- data/lib/active_admin/orm/active_record/comments/namespace_helper.rb +1 -0
- data/lib/active_admin/orm/active_record/comments/resource_helper.rb +1 -0
- data/lib/active_admin/orm/active_record/comments/show_page_helper.rb +1 -0
- data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +2 -1
- data/lib/active_admin/orm/active_record/comments/views.rb +1 -0
- data/lib/active_admin/orm/active_record/comments.rb +9 -8
- data/lib/active_admin/orm/active_record.rb +1 -0
- data/lib/active_admin/orm/mongoid.rb +1 -0
- data/lib/active_admin/page.rb +1 -0
- data/lib/active_admin/page_controller.rb +1 -0
- data/lib/active_admin/page_dsl.rb +1 -0
- data/lib/active_admin/page_presenter.rb +1 -0
- data/lib/active_admin/pundit_adapter.rb +55 -13
- data/lib/active_admin/resource/action_items.rb +3 -2
- data/lib/active_admin/resource/attributes.rb +1 -0
- data/lib/active_admin/resource/belongs_to.rb +1 -0
- data/lib/active_admin/resource/controllers.rb +1 -0
- data/lib/active_admin/resource/includes.rb +1 -0
- data/lib/active_admin/resource/menu.rb +1 -0
- data/lib/active_admin/resource/model.rb +1 -0
- data/lib/active_admin/resource/naming.rb +1 -0
- data/lib/active_admin/resource/ordering.rb +1 -0
- data/lib/active_admin/resource/page_presenters.rb +1 -0
- data/lib/active_admin/resource/pagination.rb +1 -0
- data/lib/active_admin/resource/routes.rb +1 -0
- data/lib/active_admin/resource/scope_to.rb +1 -0
- data/lib/active_admin/resource/scopes.rb +1 -0
- data/lib/active_admin/resource/sidebars.rb +1 -0
- data/lib/active_admin/resource.rb +3 -2
- data/lib/active_admin/resource_collection.rb +1 -0
- data/lib/active_admin/resource_controller/action_builder.rb +1 -0
- data/lib/active_admin/resource_controller/data_access.rb +30 -4
- data/lib/active_admin/resource_controller/decorators.rb +1 -0
- data/lib/active_admin/resource_controller/polymorphic_routes.rb +1 -0
- data/lib/active_admin/resource_controller/resource_class_methods.rb +1 -0
- data/lib/active_admin/resource_controller/scoping.rb +1 -0
- data/lib/active_admin/resource_controller/sidebars.rb +1 -0
- data/lib/active_admin/resource_controller/streaming.rb +3 -2
- data/lib/active_admin/resource_controller.rb +1 -0
- data/lib/active_admin/resource_dsl.rb +7 -21
- data/lib/active_admin/router.rb +1 -0
- data/lib/active_admin/scope.rb +1 -0
- data/lib/active_admin/settings_node.rb +1 -0
- data/lib/active_admin/sidebar_section.rb +1 -0
- data/lib/active_admin/version.rb +2 -1
- data/lib/active_admin/view_factory.rb +1 -0
- data/lib/active_admin/view_helpers/active_admin_application_helper.rb +1 -0
- data/lib/active_admin/view_helpers/auto_link_helper.rb +2 -1
- data/lib/active_admin/view_helpers/breadcrumb_helper.rb +1 -0
- data/lib/active_admin/view_helpers/display_helper.rb +11 -3
- data/lib/active_admin/view_helpers/download_format_links_helper.rb +1 -0
- data/lib/active_admin/view_helpers/fields_for.rb +1 -0
- data/lib/active_admin/view_helpers/flash_helper.rb +1 -0
- data/lib/active_admin/view_helpers/form_helper.rb +1 -0
- data/lib/active_admin/view_helpers/method_or_proc_helper.rb +1 -0
- data/lib/active_admin/view_helpers/scope_name_helper.rb +1 -0
- data/lib/active_admin/view_helpers/sidebar_helper.rb +1 -0
- data/lib/active_admin/view_helpers/title_helper.rb +1 -0
- data/lib/active_admin/view_helpers/view_factory_helper.rb +1 -0
- data/lib/active_admin/view_helpers.rb +1 -0
- data/lib/active_admin/views/action_items.rb +1 -0
- data/lib/active_admin/views/components/active_admin_form.rb +2 -1
- data/lib/active_admin/views/components/active_filters_sidebar_content.rb +59 -0
- data/lib/active_admin/views/components/attributes_table.rb +1 -0
- data/lib/active_admin/views/components/blank_slate.rb +1 -0
- data/lib/active_admin/views/components/columns.rb +1 -0
- data/lib/active_admin/views/components/dropdown_menu.rb +3 -5
- data/lib/active_admin/views/components/index_list.rb +1 -0
- data/lib/active_admin/views/components/menu.rb +1 -0
- data/lib/active_admin/views/components/menu_item.rb +1 -0
- data/lib/active_admin/views/components/paginated_collection.rb +1 -0
- data/lib/active_admin/views/components/panel.rb +1 -0
- data/lib/active_admin/views/components/scopes.rb +1 -0
- data/lib/active_admin/views/components/sidebar.rb +1 -0
- data/lib/active_admin/views/components/sidebar_section.rb +1 -0
- data/lib/active_admin/views/components/site_title.rb +1 -0
- data/lib/active_admin/views/components/status_tag.rb +1 -0
- data/lib/active_admin/views/components/table_for.rb +1 -0
- data/lib/active_admin/views/components/tabs.rb +1 -0
- data/lib/active_admin/views/components/unsupported_browser.rb +1 -0
- data/lib/active_admin/views/footer.rb +1 -0
- data/lib/active_admin/views/header.rb +1 -0
- data/lib/active_admin/views/index_as_block.rb +1 -0
- data/lib/active_admin/views/index_as_blog.rb +1 -0
- data/lib/active_admin/views/index_as_grid.rb +1 -0
- data/lib/active_admin/views/index_as_table.rb +2 -1
- data/lib/active_admin/views/pages/base.rb +8 -4
- data/lib/active_admin/views/pages/form.rb +1 -0
- data/lib/active_admin/views/pages/index.rb +2 -1
- data/lib/active_admin/views/pages/layout.rb +1 -0
- data/lib/active_admin/views/pages/page.rb +1 -0
- data/lib/active_admin/views/pages/show.rb +1 -0
- data/lib/active_admin/views/tabbed_navigation.rb +1 -0
- data/lib/active_admin/views/title_bar.rb +1 -0
- data/lib/active_admin/views.rb +1 -0
- data/lib/active_admin.rb +2 -1
- data/lib/activeadmin.rb +1 -0
- data/lib/generators/active_admin/assets/assets_generator.rb +1 -0
- data/lib/generators/active_admin/devise/devise_generator.rb +1 -0
- data/lib/generators/active_admin/install/install_generator.rb +1 -0
- data/lib/generators/active_admin/install/templates/active_admin.rb.erb +17 -0
- data/lib/generators/active_admin/install/templates/dashboard.rb +1 -0
- data/lib/generators/active_admin/page/page_generator.rb +1 -0
- data/lib/generators/active_admin/page/templates/page.rb +1 -0
- data/lib/generators/active_admin/resource/resource_generator.rb +1 -0
- data/lib/generators/active_admin/webpacker/webpacker_generator.rb +1 -0
- data/lib/ransack_ext.rb +1 -0
- metadata +21 -59
- data/docs/.gitignore +0 -1
- data/docs/0-installation.md +0 -142
- data/docs/1-general-configuration.md +0 -224
- data/docs/10-custom-pages.md +0 -150
- data/docs/11-decorators.md +0 -70
- data/docs/12-arbre-components.md +0 -214
- data/docs/13-authorization-adapter.md +0 -285
- data/docs/14-gotchas.md +0 -138
- data/docs/2-resource-customization.md +0 -475
- data/docs/3-index-pages/custom-index.md +0 -35
- data/docs/3-index-pages/index-as-block.md +0 -19
- data/docs/3-index-pages/index-as-blog.md +0 -69
- data/docs/3-index-pages/index-as-grid.md +0 -27
- data/docs/3-index-pages/index-as-table.md +0 -234
- data/docs/3-index-pages.md +0 -328
- data/docs/4-csv-format.md +0 -74
- data/docs/5-forms.md +0 -237
- data/docs/6-show-pages.md +0 -93
- data/docs/7-sidebars.md +0 -75
- data/docs/8-custom-actions.md +0 -177
- data/docs/9-batch-actions.md +0 -237
- data/docs/CNAME +0 -1
- data/docs/Gemfile +0 -3
- data/docs/Gemfile.lock +0 -259
- data/docs/README.md +0 -24
- data/docs/_config.yml +0 -4
- data/docs/_includes/footer.html +0 -8
- data/docs/_includes/google-analytics.html +0 -16
- data/docs/_includes/head.html +0 -7
- data/docs/_includes/toc.html +0 -98
- data/docs/_includes/top-menu.html +0 -17
- data/docs/_layouts/default.html +0 -21
- data/docs/documentation.md +0 -60
- data/docs/images/activeadmin.png +0 -0
- data/docs/images/code-header.png +0 -0
- data/docs/images/divider.png +0 -0
- data/docs/images/features.png +0 -0
- data/docs/images/tidelift.svg +0 -14
- data/docs/index.html +0 -226
- data/docs/stylesheets/main.css +0 -1205
- /data/app/assets/stylesheets/active_admin/{print.scss → _print.scss} +0 -0
@@ -1,17 +1,15 @@
|
|
1
|
-
/*! normalize.css
|
1
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
2
2
|
|
3
3
|
/* Document
|
4
4
|
========================================================================== */
|
5
5
|
|
6
6
|
/**
|
7
7
|
* 1. Correct the line height in all browsers.
|
8
|
-
* 2. Prevent adjustments of font size after orientation changes in
|
9
|
-
* IE on Windows Phone and in iOS.
|
8
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
10
9
|
*/
|
11
10
|
|
12
11
|
html {
|
13
12
|
line-height: 1.15; /* 1 */
|
14
|
-
-ms-text-size-adjust: 100%; /* 2 */
|
15
13
|
-webkit-text-size-adjust: 100%; /* 2 */
|
16
14
|
}
|
17
15
|
|
@@ -19,7 +17,7 @@ html {
|
|
19
17
|
========================================================================== */
|
20
18
|
|
21
19
|
/**
|
22
|
-
* Remove the margin in all browsers
|
20
|
+
* Remove the margin in all browsers.
|
23
21
|
*/
|
24
22
|
|
25
23
|
body {
|
@@ -27,15 +25,10 @@ body {
|
|
27
25
|
}
|
28
26
|
|
29
27
|
/**
|
30
|
-
*
|
28
|
+
* Render the `main` element consistently in IE.
|
31
29
|
*/
|
32
30
|
|
33
|
-
|
34
|
-
aside,
|
35
|
-
footer,
|
36
|
-
header,
|
37
|
-
nav,
|
38
|
-
section {
|
31
|
+
main {
|
39
32
|
display: block;
|
40
33
|
}
|
41
34
|
|
@@ -52,25 +45,6 @@ h1 {
|
|
52
45
|
/* Grouping content
|
53
46
|
========================================================================== */
|
54
47
|
|
55
|
-
/**
|
56
|
-
* Add the correct display in IE 9-.
|
57
|
-
* 1. Add the correct display in IE.
|
58
|
-
*/
|
59
|
-
|
60
|
-
figcaption,
|
61
|
-
figure,
|
62
|
-
main { /* 1 */
|
63
|
-
display: block;
|
64
|
-
}
|
65
|
-
|
66
|
-
/**
|
67
|
-
* Add the correct margin in IE 8.
|
68
|
-
*/
|
69
|
-
|
70
|
-
figure {
|
71
|
-
margin: 1em 40px;
|
72
|
-
}
|
73
|
-
|
74
48
|
/**
|
75
49
|
* 1. Add the correct box sizing in Firefox.
|
76
50
|
* 2. Show the overflow in Edge and IE.
|
@@ -96,17 +70,15 @@ pre {
|
|
96
70
|
========================================================================== */
|
97
71
|
|
98
72
|
/**
|
99
|
-
*
|
100
|
-
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
|
73
|
+
* Remove the gray background on active links in IE 10.
|
101
74
|
*/
|
102
75
|
|
103
76
|
a {
|
104
|
-
background-color: transparent;
|
105
|
-
-webkit-text-decoration-skip: objects; /* 2 */
|
77
|
+
background-color: transparent;
|
106
78
|
}
|
107
79
|
|
108
80
|
/**
|
109
|
-
* 1. Remove the bottom border in Chrome 57-
|
81
|
+
* 1. Remove the bottom border in Chrome 57-
|
110
82
|
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
111
83
|
*/
|
112
84
|
|
@@ -116,15 +88,6 @@ abbr[title] {
|
|
116
88
|
text-decoration: underline dotted; /* 2 */
|
117
89
|
}
|
118
90
|
|
119
|
-
/**
|
120
|
-
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
|
121
|
-
*/
|
122
|
-
|
123
|
-
b,
|
124
|
-
strong {
|
125
|
-
font-weight: inherit;
|
126
|
-
}
|
127
|
-
|
128
91
|
/**
|
129
92
|
* Add the correct font weight in Chrome, Edge, and Safari.
|
130
93
|
*/
|
@@ -146,23 +109,6 @@ samp {
|
|
146
109
|
font-size: 1em; /* 2 */
|
147
110
|
}
|
148
111
|
|
149
|
-
/**
|
150
|
-
* Add the correct font style in Android 4.3-.
|
151
|
-
*/
|
152
|
-
|
153
|
-
dfn {
|
154
|
-
font-style: italic;
|
155
|
-
}
|
156
|
-
|
157
|
-
/**
|
158
|
-
* Add the correct background and color in IE 9-.
|
159
|
-
*/
|
160
|
-
|
161
|
-
mark {
|
162
|
-
background-color: #ff0;
|
163
|
-
color: #000;
|
164
|
-
}
|
165
|
-
|
166
112
|
/**
|
167
113
|
* Add the correct font size in all browsers.
|
168
114
|
*/
|
@@ -196,44 +142,18 @@ sup {
|
|
196
142
|
========================================================================== */
|
197
143
|
|
198
144
|
/**
|
199
|
-
*
|
200
|
-
*/
|
201
|
-
|
202
|
-
audio,
|
203
|
-
video {
|
204
|
-
display: inline-block;
|
205
|
-
}
|
206
|
-
|
207
|
-
/**
|
208
|
-
* Add the correct display in iOS 4-7.
|
209
|
-
*/
|
210
|
-
|
211
|
-
audio:not([controls]) {
|
212
|
-
display: none;
|
213
|
-
height: 0;
|
214
|
-
}
|
215
|
-
|
216
|
-
/**
|
217
|
-
* Remove the border on images inside links in IE 10-.
|
145
|
+
* Remove the border on images inside links in IE 10.
|
218
146
|
*/
|
219
147
|
|
220
148
|
img {
|
221
149
|
border-style: none;
|
222
150
|
}
|
223
151
|
|
224
|
-
/**
|
225
|
-
* Hide the overflow in IE.
|
226
|
-
*/
|
227
|
-
|
228
|
-
svg:not(:root) {
|
229
|
-
overflow: hidden;
|
230
|
-
}
|
231
|
-
|
232
152
|
/* Forms
|
233
153
|
========================================================================== */
|
234
154
|
|
235
155
|
/**
|
236
|
-
* 1. Change the font styles in all browsers
|
156
|
+
* 1. Change the font styles in all browsers.
|
237
157
|
* 2. Remove the margin in Firefox and Safari.
|
238
158
|
*/
|
239
159
|
|
@@ -242,7 +162,7 @@ input,
|
|
242
162
|
optgroup,
|
243
163
|
select,
|
244
164
|
textarea {
|
245
|
-
font-family:
|
165
|
+
font-family: inherit; /* 1 */
|
246
166
|
font-size: 100%; /* 1 */
|
247
167
|
line-height: 1.15; /* 1 */
|
248
168
|
margin: 0; /* 2 */
|
@@ -269,16 +189,14 @@ select { /* 1 */
|
|
269
189
|
}
|
270
190
|
|
271
191
|
/**
|
272
|
-
*
|
273
|
-
* controls in Android 4.
|
274
|
-
* 2. Correct the inability to style clickable types in iOS and Safari.
|
192
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
275
193
|
*/
|
276
194
|
|
277
195
|
button,
|
278
|
-
|
196
|
+
[type="button"],
|
279
197
|
[type="reset"],
|
280
198
|
[type="submit"] {
|
281
|
-
-webkit-appearance: button;
|
199
|
+
-webkit-appearance: button;
|
282
200
|
}
|
283
201
|
|
284
202
|
/**
|
@@ -329,17 +247,15 @@ legend {
|
|
329
247
|
}
|
330
248
|
|
331
249
|
/**
|
332
|
-
*
|
333
|
-
* 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
250
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
334
251
|
*/
|
335
252
|
|
336
253
|
progress {
|
337
|
-
|
338
|
-
vertical-align: baseline; /* 2 */
|
254
|
+
vertical-align: baseline;
|
339
255
|
}
|
340
256
|
|
341
257
|
/**
|
342
|
-
* Remove the default vertical scrollbar in IE
|
258
|
+
* Remove the default vertical scrollbar in IE 10+.
|
343
259
|
*/
|
344
260
|
|
345
261
|
textarea {
|
@@ -347,8 +263,8 @@ textarea {
|
|
347
263
|
}
|
348
264
|
|
349
265
|
/**
|
350
|
-
* 1. Add the correct box sizing in IE 10
|
351
|
-
* 2. Remove the padding in IE 10
|
266
|
+
* 1. Add the correct box sizing in IE 10.
|
267
|
+
* 2. Remove the padding in IE 10.
|
352
268
|
*/
|
353
269
|
|
354
270
|
[type="checkbox"],
|
@@ -377,10 +293,9 @@ textarea {
|
|
377
293
|
}
|
378
294
|
|
379
295
|
/**
|
380
|
-
* Remove the inner padding
|
296
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
381
297
|
*/
|
382
298
|
|
383
|
-
[type="search"]::-webkit-search-cancel-button,
|
384
299
|
[type="search"]::-webkit-search-decoration {
|
385
300
|
-webkit-appearance: none;
|
386
301
|
}
|
@@ -399,12 +314,10 @@ textarea {
|
|
399
314
|
========================================================================== */
|
400
315
|
|
401
316
|
/*
|
402
|
-
* Add the correct display in IE
|
403
|
-
* 1. Add the correct display in Edge, IE, and Firefox.
|
317
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
404
318
|
*/
|
405
319
|
|
406
|
-
details
|
407
|
-
menu {
|
320
|
+
details {
|
408
321
|
display: block;
|
409
322
|
}
|
410
323
|
|
@@ -416,30 +329,19 @@ summary {
|
|
416
329
|
display: list-item;
|
417
330
|
}
|
418
331
|
|
419
|
-
/*
|
332
|
+
/* Misc
|
420
333
|
========================================================================== */
|
421
334
|
|
422
335
|
/**
|
423
|
-
* Add the correct display in IE
|
424
|
-
*/
|
425
|
-
|
426
|
-
canvas {
|
427
|
-
display: inline-block;
|
428
|
-
}
|
429
|
-
|
430
|
-
/**
|
431
|
-
* Add the correct display in IE.
|
336
|
+
* Add the correct display in IE 10+.
|
432
337
|
*/
|
433
338
|
|
434
339
|
template {
|
435
340
|
display: none;
|
436
341
|
}
|
437
342
|
|
438
|
-
/* Hidden
|
439
|
-
========================================================================== */
|
440
|
-
|
441
343
|
/**
|
442
|
-
* Add the correct display in IE 10
|
344
|
+
* Add the correct display in IE 10.
|
443
345
|
*/
|
444
346
|
|
445
347
|
[hidden] {
|
@@ -17,11 +17,10 @@
|
|
17
17
|
}
|
18
18
|
|
19
19
|
.ui-datepicker-header {
|
20
|
-
height: 14px;
|
21
20
|
@include primary-gradient;
|
22
21
|
padding: 12px 5px 7px 4px;
|
23
22
|
margin: 0px 0px 2px 2px;
|
24
|
-
width:
|
23
|
+
width: 156px;
|
25
24
|
border-top-left-radius: 7px;
|
26
25
|
border-top-right-radius: 7px;
|
27
26
|
position: relative;
|
@@ -40,3 +40,12 @@ $text-input-horizontal-padding: 10px !default;
|
|
40
40
|
$text-input-total-padding: $text-input-horizontal-padding * 2 + $border-width * 2;
|
41
41
|
|
42
42
|
$blank-slate-border: 1px dashed #DADADA !default;
|
43
|
+
|
44
|
+
// Sidebar Forms
|
45
|
+
$sidebar-inner-content-width: $sidebar-width - ($section-padding * 2);
|
46
|
+
|
47
|
+
// Filter Forms
|
48
|
+
$filter-field-seperator-width: 12px !default;
|
49
|
+
$side-by-side-filter-input-width: ($sidebar-inner-content-width * 0.5) - ($text-input-horizontal-padding * 2) - $filter-field-seperator-width;
|
50
|
+
$side-by-side-filter-select-width: ($sidebar-inner-content-width * 0.5) - $filter-field-seperator-width;
|
51
|
+
$date-range-filter-input-width: ($sidebar-inner-content-width * 0.5) - ($filter-field-seperator-width * 0.5);
|
@@ -9,6 +9,11 @@
|
|
9
9
|
}
|
10
10
|
|
11
11
|
// -------------------------------------- Index Footer (Under Table)
|
12
|
-
#index_footer {
|
12
|
+
#index_footer {
|
13
|
+
@include clearfix;
|
14
|
+
padding-top: 5px;
|
15
|
+
text-align: right;
|
16
|
+
font-size: 0.85em;
|
17
|
+
}
|
13
18
|
|
14
19
|
.index_content { clear: both; }
|
@@ -57,7 +57,6 @@ $(function() {
|
|
57
57
|
recompute_positions($(this).closest('.has_many'));
|
58
58
|
});
|
59
59
|
|
60
|
-
init_sortable();
|
61
60
|
$(document).on('has_many_add:after', '.has_many_container', init_sortable);
|
62
61
|
});
|
63
62
|
|
@@ -93,3 +92,7 @@ var recompute_positions = function(parent){
|
|
93
92
|
}
|
94
93
|
});
|
95
94
|
};
|
95
|
+
|
96
|
+
$(document).
|
97
|
+
ready(init_sortable).
|
98
|
+
on('page:load turbolinks:load', init_sortable);
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<%- if devise_mapping.omniauthable? %>
|
28
28
|
<%- resource_class.omniauth_providers.each do |provider| %>
|
29
29
|
<%= link_to t('active_admin.devise.links.sign_in_with_omniauth_provider', provider: provider.to_s.titleize),
|
30
|
-
omniauth_authorize_path(resource_name, provider) %>
|
30
|
+
omniauth_authorize_path(resource_name, provider), method: :post %>
|
31
31
|
<br>
|
32
32
|
<% end -%>
|
33
33
|
<% end -%>
|
@@ -12,11 +12,11 @@
|
|
12
12
|
<%= stylesheet_link_tag style, **options %>
|
13
13
|
<% end %>
|
14
14
|
<% end %>
|
15
|
-
<% ActiveAdmin.application.javascripts.each do |path| %>
|
15
|
+
<% ActiveAdmin.application.javascripts.each do |path, options| %>
|
16
16
|
<% if ActiveAdmin.application.use_webpacker %>
|
17
|
-
<%= javascript_pack_tag path %>
|
17
|
+
<%= javascript_pack_tag path, **options %>
|
18
18
|
<% else %>
|
19
|
-
<%= javascript_include_tag path %>
|
19
|
+
<%= javascript_include_tag path, **options %>
|
20
20
|
<% end %>
|
21
21
|
<% end %>
|
22
22
|
|
@@ -26,7 +26,8 @@
|
|
26
26
|
<%= tag(:meta, name: name, content: content) %>
|
27
27
|
<% end %>
|
28
28
|
|
29
|
-
<%=
|
29
|
+
<%= csrf_meta_tags %>
|
30
|
+
<%= csp_meta_tag %>
|
30
31
|
</head>
|
31
32
|
<body class="active_admin logged_out <%= controller.action_name %>">
|
32
33
|
<div id="wrapper">
|
data/config/locales/fr.yml
CHANGED
@@ -38,9 +38,9 @@ fr:
|
|
38
38
|
to: "À"
|
39
39
|
search_status:
|
40
40
|
headline: "Statut de la recherche :"
|
41
|
-
current_scope: "
|
41
|
+
current_scope: "Périmètre :"
|
42
42
|
current_filters: "Filtres actuels :"
|
43
|
-
no_current_filters: "Aucun
|
43
|
+
no_current_filters: "Aucun filtre"
|
44
44
|
status_tag:
|
45
45
|
"yes": "Oui"
|
46
46
|
"no": "Non"
|
@@ -52,7 +52,7 @@ fr:
|
|
52
52
|
filters: "Filtres"
|
53
53
|
search_status: "Statut de la recherche"
|
54
54
|
pagination:
|
55
|
-
empty: "Aucun %{model} trouvé"
|
55
|
+
empty: "Aucun(e) %{model} trouvé(e)"
|
56
56
|
one: "Affichage de <b>1</b> %{model}"
|
57
57
|
one_page: "Affichage des <b>%{n}</b> %{model}"
|
58
58
|
multiple: "Affichage de %{model} <b>%{from} - %{to}</b> sur un total de <b>%{total}</b>"
|
data/config/locales/ko.yml
CHANGED
data/config/locales/nl.yml
CHANGED
@@ -114,7 +114,7 @@ nl:
|
|
114
114
|
submit: "inloggen"
|
115
115
|
reset_password:
|
116
116
|
title: "Wachtwoord vergeten?"
|
117
|
-
submit: "Reset mijn wachtwoord
|
117
|
+
submit: "Reset mijn wachtwoord"
|
118
118
|
change_password:
|
119
119
|
title: "Wijzig uw wachtwoord"
|
120
120
|
submit: "Mijn wachtwoord wijzigen"
|
data/config/locales/ro.yml
CHANGED
@@ -47,8 +47,9 @@ ro:
|
|
47
47
|
multiple: "Sunt afisate <b>%{from} - %{to}</b> din <b>%{total}</b> inregistrari"
|
48
48
|
multiple_without_total: "Sunt afisate <b>%{from} - %{to}</b>"
|
49
49
|
entry:
|
50
|
-
one: "
|
51
|
-
|
50
|
+
one: "înregistrăre"
|
51
|
+
few: "înregistrări"
|
52
|
+
other: "înregistrări"
|
52
53
|
any: "Oricare"
|
53
54
|
blank_slate:
|
54
55
|
content: "Momentan nu exista %{resource_name}."
|
data/config/locales/vi.yml
CHANGED
@@ -1,4 +1,20 @@
|
|
1
1
|
vi:
|
2
|
+
activerecord:
|
3
|
+
models:
|
4
|
+
comment:
|
5
|
+
one: "Bình luận"
|
6
|
+
other: "Các bình luận"
|
7
|
+
active_admin/comment:
|
8
|
+
one: "Bình luận"
|
9
|
+
other: "Các bình luận"
|
10
|
+
attributes:
|
11
|
+
active_admin/comment:
|
12
|
+
author_type: "Loại tác giả"
|
13
|
+
body: "Nội dung"
|
14
|
+
created_at: "Đã tạo"
|
15
|
+
namespace: "Namespace"
|
16
|
+
resource_type: "Resource type"
|
17
|
+
updated_at: "Đã cập nhật"
|
2
18
|
active_admin:
|
3
19
|
dashboard: Bảng điều khiển
|
4
20
|
dashboard_welcome:
|
@@ -21,6 +37,7 @@ vi:
|
|
21
37
|
has_many_new: "Thêm mới %{model}"
|
22
38
|
has_many_delete: "Xóa"
|
23
39
|
has_many_remove: "Hủy bỏ"
|
40
|
+
move: "Di chuyển"
|
24
41
|
filters:
|
25
42
|
buttons:
|
26
43
|
filter: "Lọc"
|
@@ -36,10 +53,12 @@ vi:
|
|
36
53
|
lteq_datetime: "Nhỏ hơn hoặc bằng"
|
37
54
|
from: "Từ"
|
38
55
|
to: "Đến"
|
56
|
+
scopes:
|
57
|
+
all: "Tất cả"
|
39
58
|
search_status:
|
40
59
|
headline: "Danh sách tìm kiếm:"
|
41
60
|
current_scope: "Phạm vi:"
|
42
|
-
current_filters: "Bộ
|
61
|
+
current_filters: "Bộ lọc hiện tại:"
|
43
62
|
no_current_filters: "Không có"
|
44
63
|
status_tag:
|
45
64
|
"yes": "Có"
|
@@ -47,7 +66,7 @@ vi:
|
|
47
66
|
"unset": "Không Có"
|
48
67
|
main_content: "Xin bổ sung %{model}#main_content để hiển thị nội dung."
|
49
68
|
logout: "Đăng xuất"
|
50
|
-
powered_by: "
|
69
|
+
powered_by: "Bản quyền bởi %{active_admin} %{version}"
|
51
70
|
sidebars:
|
52
71
|
filters: "Bộ Lọc"
|
53
72
|
search_status: "Trạng thái tìm kiếm"
|
@@ -75,12 +94,13 @@ vi:
|
|
75
94
|
one: "Đã xóa thành công 1 %{model}"
|
76
95
|
other: "Đã xóa thành công %{count} %{plural_model}"
|
77
96
|
selection_toggle_explanation: "(Thay đổi lựa chọn)"
|
78
|
-
action_label: "%{title} được chọn"
|
97
|
+
action_label: "%{title} đã được chọn"
|
79
98
|
labels:
|
80
99
|
destroy: "Xóa"
|
81
100
|
comments:
|
82
101
|
created_at: "Đã tạo"
|
83
102
|
resource_type: "Resource Type"
|
103
|
+
author_type: "Loại tác giả"
|
84
104
|
body: "Nội dung"
|
85
105
|
author: "Tác giả"
|
86
106
|
add: "Thêm bình luận"
|
@@ -117,15 +137,22 @@ vi:
|
|
117
137
|
title: "Thay đổi mật khẩu của bạn"
|
118
138
|
submit: "Thay đổi mật khẩu của tôi"
|
119
139
|
unlock:
|
120
|
-
title: "
|
121
|
-
submit: "
|
140
|
+
title: "Gửi lại hướng dẫn mở khoá"
|
141
|
+
submit: "Gửi lại hướng dẫn mở khoá"
|
122
142
|
resend_confirmation_instructions:
|
123
|
-
title: "
|
124
|
-
submit: "
|
143
|
+
title: "Gửi lại hướng dẫn xác nhận"
|
144
|
+
submit: "Gửi lại hướng dẫn xác nhận"
|
125
145
|
links:
|
146
|
+
sign_up: "Đăng ký"
|
126
147
|
sign_in: "Đăng nhập"
|
127
148
|
forgot_your_password: "Quên mật khẩu của bạn?"
|
128
149
|
sign_in_with_omniauth_provider: "Đăng nhập với %{provider}"
|
150
|
+
resend_unlock_instructions: "Gửi lại hướng dẫn mở khoá"
|
151
|
+
resend_confirmation_instructions: "Gửi lại hướng dẫn xác nhận"
|
152
|
+
unsupported_browser:
|
153
|
+
headline: "Vui lòng lưu ý rằng ActiveAdmin không còn hỗ trợ trên Internet Explorer các phiên bản 8 và thấp hơn."
|
154
|
+
recommendation: "Chúng tôi khuyên bạn hãy vào <a href=\"http://browsehappy.com/\">nâng cấp trình duyệt của bạn </a> để cải thiện trải nghiệm của bạn."
|
155
|
+
turn_off_compatibility_view: "Nếu bạn đang sử dụng IE 9 hoặc mới hơn, hãy chắc chắn bạn <a href=\"https://support.microsoft.com/en-us/help/17471\">tắt \"Compatibility View\"</a>."
|
129
156
|
access_denied:
|
130
157
|
message: "Bạn không có quyền thực hiện tính năng này"
|
131
158
|
index_list:
|