thecore_ui_rails_admin 3.1.0 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e75c34df88567c95a7d7f3e237ea7fbc0bad27bcd39886582ff517cfb1ea7c3b
|
4
|
+
data.tar.gz: 13b0dc0e88a87d59570d6d8a7b5496413425594999e36661d5469bf454efb336
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42da27ddad28d3ad6ab6bcded18a52dc6e4f07d83cf5a9666c3a7a61b6a5c0aa39cfa8d12e44598bfaccd21a951be7bc7a7ed9b840e8165067590e6a97f3c7a4
|
7
|
+
data.tar.gz: bd3db964423416a420e7670ab494375253596fe22b0b55086b432b709094d3c4c53bcb2e946324e12b044869fb6b04a433cebfef65750c4ae8ce8d5954d4911b
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<%-cases={'1': [true, 'btn-outline-success'], '0': [false, 'btn-outline-danger']}%>
|
2
|
+
<%-cases[''] = [nil, 'btn-outline-secondary'] if field.nullable? %>
|
3
|
+
<div class="btn-group" role="group">
|
4
|
+
<% cases.each do |text, (value, btn_class)| %>
|
5
|
+
<%= form.radio_button field.method_name, text, field.html_attributes.reverse_merge({ checked: field.form_value == value, required: field.required, class: 'btn-check' }) %>
|
6
|
+
<label for="<%= form.object_name %>_<%= field.method_name %>_<%= text %>" class="<%= field.css_classes[value] %> btn <%= btn_class %>">
|
7
|
+
<%= field.labels[value].html_safe %>
|
8
|
+
</label>
|
9
|
+
<% end %>
|
10
|
+
</div>
|
@@ -5,9 +5,16 @@ module ThecoreUiRailsAdminUserConcern
|
|
5
5
|
extend ActiveSupport::Concern
|
6
6
|
|
7
7
|
included do
|
8
|
+
|
9
|
+
# def admin_enum
|
10
|
+
# [["✔",true],['✘',false]]
|
11
|
+
# end
|
12
|
+
|
13
|
+
# def locked_enum
|
14
|
+
# [["✔",true],['✘',false]]
|
15
|
+
# end
|
8
16
|
|
9
17
|
rails_admin do
|
10
|
-
# rails_admin do
|
11
18
|
navigation_label I18n.t("admin.settings.label")
|
12
19
|
navigation_icon 'fa fa-user-circle'
|
13
20
|
parent Role
|
@@ -15,8 +22,6 @@ module ThecoreUiRailsAdminUserConcern
|
|
15
22
|
|
16
23
|
exclude_fields :id, :remember_created_at, :sign_in_count, :current_sign_in_at, :last_sign_in_at, :current_sign_in_ip, :last_sign_in_ip, :lock_version, :role_users
|
17
24
|
|
18
|
-
configure :admin, :boolean
|
19
|
-
|
20
25
|
edit do
|
21
26
|
configure :password do
|
22
27
|
required false
|
data/config/locales/en.main.yml
CHANGED
data/config/locales/it.main.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore_ui_rails_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore_ui_commons
|
@@ -78,6 +78,7 @@ files:
|
|
78
78
|
- app/assets/stylesheets/rails_admin/custom/theming.scss
|
79
79
|
- app/assets/stylesheets/rails_admin/custom/variables.scss
|
80
80
|
- app/views/rails_admin/main/_dashboard_block.html.erb
|
81
|
+
- app/views/rails_admin/main/_form_boolean.html.erb
|
81
82
|
- app/views/rails_admin/main/active_job_monitor.html.erb
|
82
83
|
- app/views/rails_admin/main/dashboard.html.erb
|
83
84
|
- config/initializers/abilities.rb
|