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: 4d329590346564d4049ca6dcff96aecb5ff05a8a9c9ba548a7a3c2e2a579e5bd
4
- data.tar.gz: a4820f4f4278a0474877c4ff9da212a46f87937beb74316da6cc7380182da859
3
+ metadata.gz: e75c34df88567c95a7d7f3e237ea7fbc0bad27bcd39886582ff517cfb1ea7c3b
4
+ data.tar.gz: 13b0dc0e88a87d59570d6d8a7b5496413425594999e36661d5469bf454efb336
5
5
  SHA512:
6
- metadata.gz: ae052206e0aa7a204b6bfc690df2b616bbbe68bec21a2c9b68612f568f5a149ce395c5094d3b413333bafa3dc9f53f6977638dd43e34f121d001650aa23c074f
7
- data.tar.gz: 3049b5394b50caf047a4d2fa95828bc64309bfa0578af4301f5c7989b9cd709cbb06e1256bbbdbb09f9e67ad99655f0f441a5cb1566d5c0376201a37dc2e429a
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
@@ -1,6 +1,6 @@
1
- it:
2
- yes: Yes
3
- no: Cancel
1
+ en:
2
+ yes: "Yes"
3
+ no: "No"
4
4
  error: Error
5
5
  question: Question
6
6
  root_actions: Root Actions
@@ -4,8 +4,8 @@ it:
4
4
  export_found: Esporta i Filtrati
5
5
  export_selected: Esporta i Selezionati
6
6
  delete_selected: Elimina i Selezionati
7
- yes: Si
8
- no: Annulla
7
+ yes: "Si"
8
+ no: "No"
9
9
  error: Errore
10
10
  question: Domanda
11
11
  root_actions: "Operazioni"
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.0
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-27 00:00:00.000000000 Z
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