thecore_ui_rails_admin 3.8.3 → 3.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/rails_admin/actions/active_job_monitor.js +12 -0
- data/app/assets/javascripts/rails_admin/actions/change_password.js +10 -0
- data/app/assets/javascripts/rails_admin/actions/general_computation.js +11 -0
- data/app/assets/javascripts/rails_admin/actions/import_users_from_ldap.js +12 -0
- data/app/assets/javascripts/rails_admin/actions/load_filters.js +10 -0
- data/app/assets/javascripts/rails_admin/actions/push_notification_test.js +11 -0
- data/app/assets/javascripts/rails_admin/actions/save_filters.js +10 -0
- data/app/assets/javascripts/rails_admin/actions/test_ldap_server.js +11 -0
- data/app/assets/javascripts/rails_admin/custom/ui.js.erb +1 -1
- data/app/assets/stylesheets/rails_admin/actions/active_job_monitor.scss +16 -0
- data/app/assets/stylesheets/rails_admin/actions/change_password.scss +16 -0
- data/app/assets/stylesheets/rails_admin/actions/general_computation.scss +16 -0
- data/app/assets/stylesheets/rails_admin/actions/import_users_from_ldap.scss +16 -0
- data/app/assets/stylesheets/rails_admin/actions/load_filters.scss +16 -0
- data/app/assets/stylesheets/rails_admin/actions/push_notification_test.scss +16 -0
- data/app/assets/stylesheets/rails_admin/actions/save_filters.scss +16 -0
- data/app/assets/stylesheets/rails_admin/actions/test_ldap_server.scss +16 -0
- data/app/views/rails_admin/main/active_job_monitor.html.erb +2 -0
- data/app/views/rails_admin/main/change_password.html.erb +2 -0
- data/app/views/rails_admin/main/general_computation.html.erb +2 -0
- data/app/views/rails_admin/main/import_users_from_ldap.html.erb +2 -0
- data/app/views/rails_admin/main/load_filters.html.erb +4 -2
- data/app/views/rails_admin/main/push_notification_test.html.erb +2 -0
- data/app/views/rails_admin/main/{save_filter.html.erb → save_filters.html.erb} +4 -2
- data/app/views/rails_admin/main/test_ldap_server.html.erb +2 -0
- data/config/initializers/after_initialize.rb +7 -7
- data/config/initializers/assets.rb +9 -1
- data/config/locales/en.thecore_ui_ra.yml +8 -0
- data/config/locales/it.thecore_ui_ra.yml +8 -0
- data/lib/collection_actions/save_filters.rb +1 -1
- data/lib/thecore_ui_rails_admin/version.rb +1 -1
- metadata +18 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 86967d24b02baf579504a0a863522949ffdb7c935a62760a786921c172828324
|
|
4
|
+
data.tar.gz: f17455de41bfa8955a6685a347bb8a31714e3a7640b665d1d873cf0388cf6393
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5841d2e2ee455acf24b89510b2fe6cbf772b80dc88c76fb5458d41703e74e1520cd1d5c4f5dd7b262ee15d8028404ac1c7fbd0caeeafc9f8f311d2b2a18c08d4
|
|
7
|
+
data.tar.gz: e865ceafc3ecbd6488f6f97ffc7eecbd8c9d504e7d006e744b4a2579cb2ff5f1ed156c302ffe55d308ff462d5be585fd1ad2d056f269eab987de09b8526e3fa5
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Companion JS for the active_job_monitor root action. The real UI (see
|
|
2
|
+
// app/views/rails_admin/main/active_job_monitor.html.erb) is a plain iframe embedding the
|
|
3
|
+
// Sidekiq web UI, with its own onload="adjustIframe(this)" handler already wired up in
|
|
4
|
+
// app/assets/javascripts/rails_admin/custom/ui.js.erb -- this file is deliberately inert
|
|
5
|
+
// rather than a copy of the thecore:root_action generator's own button/ActionCable starter
|
|
6
|
+
// script, which would wire up event listeners against DOM elements
|
|
7
|
+
// (#active_job_monitor-id/-response/-loader) this page never renders and throw on load. Kept
|
|
8
|
+
// as a real file, not skipped, so this action still satisfies the generator's own
|
|
9
|
+
// companion-file convention (see thecore_ui_rails_admin#9).
|
|
10
|
+
document.addEventListener('turbo:load', function activeJobMonitorFunction(event) {
|
|
11
|
+
// Intentionally inert -- see the comment above.
|
|
12
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Companion JS for the change_password member action. The real view (see
|
|
2
|
+
// app/views/rails_admin/main/change_password.html.erb) is a plain hand-rolled form with no
|
|
3
|
+
// client-side behavior of its own -- this file is deliberately inert rather than a copy of the
|
|
4
|
+
// thecore:member_action generator's own button/XHR starter script, which would wire up event
|
|
5
|
+
// listeners against DOM elements (#change_password-id/-response) this page never renders and
|
|
6
|
+
// throw on load. Kept as a real file, not skipped, so this action still satisfies the
|
|
7
|
+
// generator's own companion-file convention (see thecore_ui_rails_admin#9).
|
|
8
|
+
document.addEventListener('turbo:load', function changePasswordFunction(event) {
|
|
9
|
+
// Intentionally inert -- see the comment above.
|
|
10
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Companion JS for the general_computation root action. The real handler (see
|
|
2
|
+
// lib/root_actions/general_computation.rb) only ever renders `render json: ...` for a JSON
|
|
3
|
+
// request; its view (app/views/rails_admin/main/general_computation.html.erb) carries no real
|
|
4
|
+
// content of its own -- this file is deliberately inert rather than a copy of the
|
|
5
|
+
// thecore:root_action generator's own button/ActionCable starter script, which would wire up
|
|
6
|
+
// event listeners against DOM elements (#general_computation-id/-response/-loader) this page
|
|
7
|
+
// never renders and throw on load. Kept as a real file, not skipped, so this action still
|
|
8
|
+
// satisfies the generator's own companion-file convention (see thecore_ui_rails_admin#9).
|
|
9
|
+
document.addEventListener('turbo:load', function generalComputationFunction(event) {
|
|
10
|
+
// Intentionally inert -- see the comment above.
|
|
11
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Companion JS for the import_users_from_ldap member action. The action's own require line in
|
|
2
|
+
// config/initializers/after_initialize.rb is deliberately commented out ("a bit risky to have
|
|
3
|
+
// it in the UI") -- this action is disabled and its view
|
|
4
|
+
// (app/views/rails_admin/main/import_users_from_ldap.html.erb) carries no real content of its
|
|
5
|
+
// own -- this file is deliberately inert rather than a copy of the thecore:member_action
|
|
6
|
+
// generator's own button/XHR starter script, which would wire up event listeners against DOM
|
|
7
|
+
// elements (#import_users_from_ldap-id/-response) this page never renders and throw on load.
|
|
8
|
+
// Kept as a real file, not skipped, so this action still satisfies the generator's own
|
|
9
|
+
// companion-file convention (see thecore_ui_rails_admin#9).
|
|
10
|
+
document.addEventListener('turbo:load', function importUsersFromLdapFunction(event) {
|
|
11
|
+
// Intentionally inert -- see the comment above.
|
|
12
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Companion JS for the load_filters collection action. The real UI (see
|
|
2
|
+
// app/views/rails_admin/main/load_filters.html.erb) is a plain list of links with no
|
|
3
|
+
// client-side behavior of its own -- this file is deliberately inert rather than a copy of the
|
|
4
|
+
// thecore:collection_action generator's own button/ActionCable starter script, which would
|
|
5
|
+
// wire up event listeners against DOM elements (#load_filters-id/-response/-loader) this page
|
|
6
|
+
// never renders and throw on load. Kept as a real file, not skipped, so this action still
|
|
7
|
+
// satisfies the generator's own companion-file convention (see thecore_ui_rails_admin#9).
|
|
8
|
+
document.addEventListener('turbo:load', function loadFiltersFunction(event) {
|
|
9
|
+
// Intentionally inert -- see the comment above.
|
|
10
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Companion JS for the push_notification_test root action. The real UI (see
|
|
2
|
+
// app/views/rails_admin/main/push_notification_test.html.erb) already wires up its own inline
|
|
3
|
+
// <script> against real element ids (#send-push-form, .subscriber-checkbox, #send-push-btn) --
|
|
4
|
+
// this file is deliberately inert rather than a copy of the thecore:root_action generator's own
|
|
5
|
+
// button/ActionCable starter script, which would wire up event listeners against DOM elements
|
|
6
|
+
// (#push_notification_test-id/-response/-loader) this page never renders and throw on load.
|
|
7
|
+
// Kept as a real file, not skipped, so this action still satisfies the generator's own
|
|
8
|
+
// companion-file convention (see thecore_ui_rails_admin#9).
|
|
9
|
+
document.addEventListener('turbo:load', function pushNotificationTestFunction(event) {
|
|
10
|
+
// Intentionally inert -- see the comment above.
|
|
11
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Companion JS for the save_filters collection action. The real UI (see
|
|
2
|
+
// app/views/rails_admin/main/save_filters.html.erb) is a plain HTML form with no client-side
|
|
3
|
+
// behavior of its own -- this file is deliberately inert rather than a copy of the
|
|
4
|
+
// thecore:collection_action generator's own button/ActionCable starter script, which would
|
|
5
|
+
// wire up event listeners against DOM elements (#save_filters-id/-response/-loader) this page
|
|
6
|
+
// never renders and throw on load. Kept as a real file, not skipped, so this action still
|
|
7
|
+
// satisfies the generator's own companion-file convention (see thecore_ui_rails_admin#9).
|
|
8
|
+
document.addEventListener('turbo:load', function saveFiltersFunction(event) {
|
|
9
|
+
// Intentionally inert -- see the comment above.
|
|
10
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Companion JS for the test_ldap_server member action. The real view (see
|
|
2
|
+
// app/views/rails_admin/main/test_ldap_server.html.erb) already wires up its own inline
|
|
3
|
+
// <script> against real element ids (#test-connection, #spinner, #ldap-user-details, ...) --
|
|
4
|
+
// this file is deliberately inert rather than a copy of the thecore:member_action generator's
|
|
5
|
+
// own button/XHR starter script, which would wire up event listeners against DOM elements
|
|
6
|
+
// (#test_ldap_server-id/-response) this page never renders and throw on load. Kept as a real
|
|
7
|
+
// file, not skipped, so this action still satisfies the generator's own companion-file
|
|
8
|
+
// convention (see thecore_ui_rails_admin#9).
|
|
9
|
+
document.addEventListener('turbo:load', function testLdapServerFunction(event) {
|
|
10
|
+
// Intentionally inert -- see the comment above.
|
|
11
|
+
});
|
|
@@ -38,7 +38,7 @@ $(document).on('turbo:load', function (event) {
|
|
|
38
38
|
const customer_logo_path = "<%= asset_path('app_logo.svg') %>";
|
|
39
39
|
$(".navbar-brand").prepend(`<img class="navbar-brand-logo" alt="Customer Logo" src="${customer_logo_path}"/>`);
|
|
40
40
|
|
|
41
|
-
//This presumes the existence of the
|
|
41
|
+
//This presumes the existence of the save_filters collection custom action for rails_admin
|
|
42
42
|
const saveFilterLinks = document.querySelectorAll("li.nav-item.icon.save_filters_collection_link > a")
|
|
43
43
|
saveFilterLinks.forEach(link => {
|
|
44
44
|
const currentQuery = window.location.search;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Companion SCSS for the active_job_monitor root action. No custom styling is needed today --
|
|
2
|
+
// this file is deliberately minimal rather than a copy of the thecore:root_action generator's
|
|
3
|
+
// own spinner/loader starter styles, which target elements this action's real view doesn't
|
|
4
|
+
// render. Kept as a real file, not skipped, so this action still satisfies the generator's own
|
|
5
|
+
// companion-file convention (see thecore_ui_rails_admin#9). The @keyframes below is the one
|
|
6
|
+
// piece of the starter template preserved verbatim, unused today, purely so a future page that
|
|
7
|
+
// does add a loader can reuse the generator's own standard animation name.
|
|
8
|
+
@keyframes sk-bounce {
|
|
9
|
+
0%,
|
|
10
|
+
100% {
|
|
11
|
+
transform: scale(0.0);
|
|
12
|
+
}
|
|
13
|
+
50% {
|
|
14
|
+
transform: scale(1.0);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Companion SCSS for the change_password member action. No custom styling is needed today --
|
|
2
|
+
// this file is deliberately minimal rather than a copy of the thecore:member_action
|
|
3
|
+
// generator's own spinner/loader starter styles, which target elements this action's real view
|
|
4
|
+
// doesn't render. Kept as a real file, not skipped, so this action still satisfies the
|
|
5
|
+
// generator's own companion-file convention (see thecore_ui_rails_admin#9). The @keyframes
|
|
6
|
+
// below is the one piece of the starter template preserved verbatim, unused today, purely so a
|
|
7
|
+
// future page that does add a loader can reuse the generator's own standard animation name.
|
|
8
|
+
@keyframes sk-bounce {
|
|
9
|
+
0%,
|
|
10
|
+
100% {
|
|
11
|
+
transform: scale(0.0);
|
|
12
|
+
}
|
|
13
|
+
50% {
|
|
14
|
+
transform: scale(1.0);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Companion SCSS for the general_computation root action. No custom styling is needed today --
|
|
2
|
+
// this file is deliberately minimal rather than a copy of the thecore:root_action generator's
|
|
3
|
+
// own spinner/loader starter styles, which target elements this action's real view doesn't
|
|
4
|
+
// render. Kept as a real file, not skipped, so this action still satisfies the generator's own
|
|
5
|
+
// companion-file convention (see thecore_ui_rails_admin#9). The @keyframes below is the one
|
|
6
|
+
// piece of the starter template preserved verbatim, unused today, purely so a future page that
|
|
7
|
+
// does add a loader can reuse the generator's own standard animation name.
|
|
8
|
+
@keyframes sk-bounce {
|
|
9
|
+
0%,
|
|
10
|
+
100% {
|
|
11
|
+
transform: scale(0.0);
|
|
12
|
+
}
|
|
13
|
+
50% {
|
|
14
|
+
transform: scale(1.0);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Companion SCSS for the import_users_from_ldap member action. No custom styling is needed
|
|
2
|
+
// today -- this file is deliberately minimal rather than a copy of the thecore:member_action
|
|
3
|
+
// generator's own spinner/loader starter styles, which target elements this action's real view
|
|
4
|
+
// doesn't render. Kept as a real file, not skipped, so this action still satisfies the
|
|
5
|
+
// generator's own companion-file convention (see thecore_ui_rails_admin#9). The @keyframes
|
|
6
|
+
// below is the one piece of the starter template preserved verbatim, unused today, purely so a
|
|
7
|
+
// future page that does add a loader can reuse the generator's own standard animation name.
|
|
8
|
+
@keyframes sk-bounce {
|
|
9
|
+
0%,
|
|
10
|
+
100% {
|
|
11
|
+
transform: scale(0.0);
|
|
12
|
+
}
|
|
13
|
+
50% {
|
|
14
|
+
transform: scale(1.0);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Companion SCSS for the load_filters collection action. No custom styling is needed today --
|
|
2
|
+
// this file is deliberately minimal rather than a copy of the thecore:collection_action
|
|
3
|
+
// generator's own spinner/loader starter styles, which target elements this action's real view
|
|
4
|
+
// doesn't render. Kept as a real file, not skipped, so this action still satisfies the
|
|
5
|
+
// generator's own companion-file convention (see thecore_ui_rails_admin#9). The @keyframes
|
|
6
|
+
// below is the one piece of the starter template preserved verbatim, unused today, purely so a
|
|
7
|
+
// future page that does add a loader can reuse the generator's own standard animation name.
|
|
8
|
+
@keyframes sk-bounce {
|
|
9
|
+
0%,
|
|
10
|
+
100% {
|
|
11
|
+
transform: scale(0.0);
|
|
12
|
+
}
|
|
13
|
+
50% {
|
|
14
|
+
transform: scale(1.0);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Companion SCSS for the push_notification_test root action. No custom styling is needed today
|
|
2
|
+
// -- this file is deliberately minimal rather than a copy of the thecore:root_action
|
|
3
|
+
// generator's own spinner/loader starter styles, which target elements this action's real view
|
|
4
|
+
// doesn't render. Kept as a real file, not skipped, so this action still satisfies the
|
|
5
|
+
// generator's own companion-file convention (see thecore_ui_rails_admin#9). The @keyframes
|
|
6
|
+
// below is the one piece of the starter template preserved verbatim, unused today, purely so a
|
|
7
|
+
// future page that does add a loader can reuse the generator's own standard animation name.
|
|
8
|
+
@keyframes sk-bounce {
|
|
9
|
+
0%,
|
|
10
|
+
100% {
|
|
11
|
+
transform: scale(0.0);
|
|
12
|
+
}
|
|
13
|
+
50% {
|
|
14
|
+
transform: scale(1.0);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Companion SCSS for the save_filters collection action. No custom styling is needed today --
|
|
2
|
+
// this file is deliberately minimal rather than a copy of the thecore:collection_action
|
|
3
|
+
// generator's own spinner/loader starter styles, which target elements this action's real view
|
|
4
|
+
// doesn't render. Kept as a real file, not skipped, so this action still satisfies the
|
|
5
|
+
// generator's own companion-file convention (see thecore_ui_rails_admin#9). The @keyframes
|
|
6
|
+
// below is the one piece of the starter template preserved verbatim, unused today, purely so a
|
|
7
|
+
// future page that does add a loader can reuse the generator's own standard animation name.
|
|
8
|
+
@keyframes sk-bounce {
|
|
9
|
+
0%,
|
|
10
|
+
100% {
|
|
11
|
+
transform: scale(0.0);
|
|
12
|
+
}
|
|
13
|
+
50% {
|
|
14
|
+
transform: scale(1.0);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Companion SCSS for the test_ldap_server member action. No custom styling is needed today --
|
|
2
|
+
// this file is deliberately minimal rather than a copy of the thecore:member_action
|
|
3
|
+
// generator's own spinner/loader starter styles, which target elements this action's real view
|
|
4
|
+
// doesn't render. Kept as a real file, not skipped, so this action still satisfies the
|
|
5
|
+
// generator's own companion-file convention (see thecore_ui_rails_admin#9). The @keyframes
|
|
6
|
+
// below is the one piece of the starter template preserved verbatim, unused today, purely so a
|
|
7
|
+
// future page that does add a loader can reuse the generator's own standard animation name.
|
|
8
|
+
@keyframes sk-bounce {
|
|
9
|
+
0%,
|
|
10
|
+
100% {
|
|
11
|
+
transform: scale(0.0);
|
|
12
|
+
}
|
|
13
|
+
50% {
|
|
14
|
+
transform: scale(1.0);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
<%= stylesheet_link_tag 'rails_admin/actions/active_job_monitor' %>
|
|
1
2
|
<span class="hide-toolbar"></span>
|
|
2
3
|
|
|
3
4
|
<iframe class="sidekiq-monitor" src="<%="#{ENV['RAILS_RELATIVE_URL_ROOT']}/sidekiq".gsub('//','/')%>" title="Background Processes Monitor" frameborder="0"
|
|
4
5
|
allow="accelerometer; clipboard-write; encrypted-media; gyroscope;" allowfullscreen style="width:100%;"
|
|
5
6
|
scrolling="no" onload="adjustIframe(this)"></iframe>
|
|
7
|
+
<%= javascript_include_tag 'rails_admin/actions/active_job_monitor' %>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
<%= stylesheet_link_tag 'rails_admin/actions/change_password' %>
|
|
1
2
|
<div class="alert alert-info">
|
|
2
3
|
<%= t('admin.actions.change_password.requirements', min_length: User.password_length.min) %>
|
|
3
4
|
</div>
|
|
@@ -40,3 +41,4 @@
|
|
|
40
41
|
</div>
|
|
41
42
|
</div>
|
|
42
43
|
<% end %>
|
|
44
|
+
<%= javascript_include_tag 'rails_admin/actions/change_password' %>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
<%= stylesheet_link_tag 'rails_admin/actions/load_filters' %>
|
|
2
|
+
<!-- START app/views/rails_admin/main/load_filters.html.erb -->
|
|
2
3
|
<!-- In Rails Admin Bootstrap, show all the filters which are listed in @saved_filters -->
|
|
3
4
|
|
|
4
5
|
<div class="row">
|
|
@@ -19,4 +20,5 @@
|
|
|
19
20
|
</ul>
|
|
20
21
|
</div>
|
|
21
22
|
</div>
|
|
22
|
-
<!-- END app/views/rails_admin/main/
|
|
23
|
+
<!-- END app/views/rails_admin/main/load_filters.html.erb -->
|
|
24
|
+
<%= javascript_include_tag "rails_admin/actions/load_filters" %>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
<%= stylesheet_link_tag 'rails_admin/actions/push_notification_test' %>
|
|
1
2
|
<span class="hide-toolbar"></span>
|
|
2
3
|
|
|
3
4
|
<div class="container mt-4">
|
|
@@ -134,3 +135,4 @@
|
|
|
134
135
|
});
|
|
135
136
|
})();
|
|
136
137
|
</script>
|
|
138
|
+
<%= javascript_include_tag 'rails_admin/actions/push_notification_test' %>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
<%= stylesheet_link_tag 'rails_admin/actions/save_filters' %>
|
|
2
|
+
<!-- START app/views/rails_admin/main/save_filters.html.erb -->
|
|
2
3
|
<div class="form-horizontal">
|
|
3
4
|
<form method="post" action="">
|
|
4
5
|
<%= hidden_field_tag :authenticity_token, form_authenticity_token %>
|
|
@@ -33,4 +34,5 @@
|
|
|
33
34
|
<% end %>
|
|
34
35
|
</form>
|
|
35
36
|
</div>
|
|
36
|
-
<!-- END app/views/rails_admin/main/
|
|
37
|
+
<!-- END app/views/rails_admin/main/save_filters.html.erb -->
|
|
38
|
+
<%= javascript_include_tag "rails_admin/actions/save_filters" %>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
<%= stylesheet_link_tag 'rails_admin/actions/test_ldap_server' %>
|
|
1
2
|
<!-- Show the LDAP server connection status -->
|
|
2
3
|
<div class="p-3 mb-2 bg-<%=@status%> text-white">
|
|
3
4
|
<%=@message%>
|
|
@@ -66,3 +67,4 @@
|
|
|
66
67
|
});
|
|
67
68
|
});
|
|
68
69
|
</script>
|
|
70
|
+
<%= javascript_include_tag 'rails_admin/actions/test_ldap_server' %>
|
|
@@ -60,13 +60,13 @@ Rails.application.configure do
|
|
|
60
60
|
# elsewhere.
|
|
61
61
|
RailsAdmin::Config::Actions.all
|
|
62
62
|
|
|
63
|
-
require
|
|
64
|
-
require
|
|
65
|
-
require
|
|
66
|
-
require
|
|
67
|
-
require
|
|
63
|
+
require 'root_actions/general_computation'
|
|
64
|
+
require 'root_actions/active_job_monitor'
|
|
65
|
+
require 'root_actions/push_notification_test'
|
|
66
|
+
require 'member_actions/change_password'
|
|
67
|
+
require 'member_actions/test_ldap_server'
|
|
68
68
|
# require 'member_actions/import_users_from_ldap' # Disabled as it's a bit risky to have it in the UI
|
|
69
|
-
require
|
|
70
|
-
require
|
|
69
|
+
require 'collection_actions/save_filters'
|
|
70
|
+
require 'collection_actions/load_filters'
|
|
71
71
|
end
|
|
72
72
|
end
|
|
@@ -2,4 +2,12 @@ Rails.application.config.assets.precompile += %w(
|
|
|
2
2
|
channels/index.js
|
|
3
3
|
)
|
|
4
4
|
|
|
5
|
-
Rails.application.config.assets.precompile += %w( rails_admin/actions/general_computation.js rails_admin/actions/general_computation.css )
|
|
5
|
+
Rails.application.config.assets.precompile += %w( rails_admin/actions/general_computation.js rails_admin/actions/general_computation.css )
|
|
6
|
+
|
|
7
|
+
Rails.application.config.assets.precompile += %w( rails_admin/actions/save_filters.js rails_admin/actions/save_filters.css )
|
|
8
|
+
Rails.application.config.assets.precompile += %w( rails_admin/actions/load_filters.js rails_admin/actions/load_filters.css )
|
|
9
|
+
Rails.application.config.assets.precompile += %w( rails_admin/actions/active_job_monitor.js rails_admin/actions/active_job_monitor.css )
|
|
10
|
+
Rails.application.config.assets.precompile += %w( rails_admin/actions/push_notification_test.js rails_admin/actions/push_notification_test.css )
|
|
11
|
+
Rails.application.config.assets.precompile += %w( rails_admin/actions/change_password.js rails_admin/actions/change_password.css )
|
|
12
|
+
Rails.application.config.assets.precompile += %w( rails_admin/actions/test_ldap_server.js rails_admin/actions/test_ldap_server.css )
|
|
13
|
+
Rails.application.config.assets.precompile += %w( rails_admin/actions/import_users_from_ldap.js rails_admin/actions/import_users_from_ldap.css )
|
|
@@ -77,6 +77,14 @@ en:
|
|
|
77
77
|
icon_label: "Icon URL (optional)"
|
|
78
78
|
send_button: "Send Test"
|
|
79
79
|
large_selection_warning: "You are about to send to %{count} subscriber(s). This may take a while. Do you want to continue?"
|
|
80
|
+
general_computation:
|
|
81
|
+
title: General Computation
|
|
82
|
+
breadcrumb: General Computation
|
|
83
|
+
menu: General Computation
|
|
84
|
+
import_users_from_ldap:
|
|
85
|
+
title: Import Users from LDAP
|
|
86
|
+
breadcrumb: Import Users from LDAP
|
|
87
|
+
menu: Import Users from LDAP
|
|
80
88
|
scopes:
|
|
81
89
|
_all: All
|
|
82
90
|
flash:
|
|
@@ -77,6 +77,14 @@ it:
|
|
|
77
77
|
icon_label: "URL icona (opzionale)"
|
|
78
78
|
send_button: "Invia Test"
|
|
79
79
|
large_selection_warning: "Stai per inviare a %{count} subscriber/i. L'operazione potrebbe richiedere del tempo. Vuoi continuare?"
|
|
80
|
+
general_computation:
|
|
81
|
+
title: Calcolo Generale
|
|
82
|
+
breadcrumb: Calcolo Generale
|
|
83
|
+
menu: Calcolo Generale
|
|
84
|
+
import_users_from_ldap:
|
|
85
|
+
title: Importa Utenti da LDAP
|
|
86
|
+
breadcrumb: Importa Utenti da LDAP
|
|
87
|
+
menu: Importa Utenti da LDAP
|
|
80
88
|
scopes:
|
|
81
89
|
_all: Tutti
|
|
82
90
|
flash:
|
|
@@ -24,7 +24,7 @@ RailsAdmin::Config::Actions.add_action "save_filters", :base, :collection do
|
|
|
24
24
|
@query_string = request.referer.split('?')[1] # Get filters from referrer
|
|
25
25
|
@query_html = RailsAdminFilterControllerHelper.filters_html_list(@query_string, @abstract_model).html_safe
|
|
26
26
|
@model_name = @abstract_model
|
|
27
|
-
render :
|
|
27
|
+
render :save_filters
|
|
28
28
|
end
|
|
29
29
|
end
|
|
30
30
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: thecore_ui_rails_admin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.8.
|
|
4
|
+
version: 3.8.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gabriele Tassoni
|
|
@@ -78,12 +78,28 @@ files:
|
|
|
78
78
|
- app/assets/config/thecore_ui_rails_admin_manifest.js
|
|
79
79
|
- app/assets/javascripts/channels/index.js
|
|
80
80
|
- app/assets/javascripts/devise/sessions.js
|
|
81
|
+
- app/assets/javascripts/rails_admin/actions/active_job_monitor.js
|
|
82
|
+
- app/assets/javascripts/rails_admin/actions/change_password.js
|
|
83
|
+
- app/assets/javascripts/rails_admin/actions/general_computation.js
|
|
84
|
+
- app/assets/javascripts/rails_admin/actions/import_users_from_ldap.js
|
|
85
|
+
- app/assets/javascripts/rails_admin/actions/load_filters.js
|
|
86
|
+
- app/assets/javascripts/rails_admin/actions/push_notification_test.js
|
|
87
|
+
- app/assets/javascripts/rails_admin/actions/save_filters.js
|
|
88
|
+
- app/assets/javascripts/rails_admin/actions/test_ldap_server.js
|
|
81
89
|
- app/assets/javascripts/rails_admin/custom/thecore/ui.js
|
|
82
90
|
- app/assets/javascripts/rails_admin/custom/ui.js.erb
|
|
83
91
|
- app/assets/javascripts/rails_admin/jquery-ui/ie.js
|
|
84
92
|
- app/assets/javascripts/selectize.min.js
|
|
85
93
|
- app/assets/stylesheets/devise/custom/sessions.scss
|
|
86
94
|
- app/assets/stylesheets/devise/custom/thecore/sessions.scss
|
|
95
|
+
- app/assets/stylesheets/rails_admin/actions/active_job_monitor.scss
|
|
96
|
+
- app/assets/stylesheets/rails_admin/actions/change_password.scss
|
|
97
|
+
- app/assets/stylesheets/rails_admin/actions/general_computation.scss
|
|
98
|
+
- app/assets/stylesheets/rails_admin/actions/import_users_from_ldap.scss
|
|
99
|
+
- app/assets/stylesheets/rails_admin/actions/load_filters.scss
|
|
100
|
+
- app/assets/stylesheets/rails_admin/actions/push_notification_test.scss
|
|
101
|
+
- app/assets/stylesheets/rails_admin/actions/save_filters.scss
|
|
102
|
+
- app/assets/stylesheets/rails_admin/actions/test_ldap_server.scss
|
|
87
103
|
- app/assets/stylesheets/rails_admin/custom/dashboard.scss
|
|
88
104
|
- app/assets/stylesheets/rails_admin/custom/mixins.scss
|
|
89
105
|
- app/assets/stylesheets/rails_admin/custom/thecore/mixins.scss
|
|
@@ -108,7 +124,7 @@ files:
|
|
|
108
124
|
- app/views/rails_admin/main/import_users_from_ldap.html.erb
|
|
109
125
|
- app/views/rails_admin/main/load_filters.html.erb
|
|
110
126
|
- app/views/rails_admin/main/push_notification_test.html.erb
|
|
111
|
-
- app/views/rails_admin/main/
|
|
127
|
+
- app/views/rails_admin/main/save_filters.html.erb
|
|
112
128
|
- app/views/rails_admin/main/test_ldap_server.html.erb
|
|
113
129
|
- app/views/rails_admin/main/test_ldap_server.js.erb
|
|
114
130
|
- config/initializers/abilities.rb
|