thecore_ui_rails_admin 3.1.1 → 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: c7951663f1f903cad6c911ce8e22c4e8dedfa818ecc0caf3bbd5c84efb848f0f
4
- data.tar.gz: 7513283285501954b0b83c538d3a00066b9b0079b98d64af7f2ee61abfd8f802
3
+ metadata.gz: e75c34df88567c95a7d7f3e237ea7fbc0bad27bcd39886582ff517cfb1ea7c3b
4
+ data.tar.gz: 13b0dc0e88a87d59570d6d8a7b5496413425594999e36661d5469bf454efb336
5
5
  SHA512:
6
- metadata.gz: 808ab00cbd3c999d14a154c6976d62734782837a84f174fb3c08fed242fdd1bcbec2a51d7901107b7e7ec7d8dc7123031fd9b200aa4d0550e31f33cb19ce1a79
7
- data.tar.gz: f6d7dd9ad71727ce6c9eb97dab5cb585c62447ac4058c88a3a58cddd3edddc6d27024487785631bd9e009368965f1319160c53a3667f4480f04c1ead1ae8dc0e
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>
@@ -6,16 +6,15 @@ module ThecoreUiRailsAdminUserConcern
6
6
 
7
7
  included do
8
8
 
9
- def admin_enum
10
- [["✔",true],['✘',false]]
11
- end
9
+ # def admin_enum
10
+ # [["✔",true],['✘',false]]
11
+ # end
12
12
 
13
- def locked_enum
14
- [["✔",true],['✘',false]]
15
- end
13
+ # def locked_enum
14
+ # [["✔",true],['✘',false]]
15
+ # end
16
16
 
17
17
  rails_admin do
18
- # rails_admin do
19
18
  navigation_label I18n.t("admin.settings.label")
20
19
  navigation_icon 'fa fa-user-circle'
21
20
  parent Role
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.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
@@ -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