thecore_ui_rails_admin 2.2.6 → 2.2.11

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: 6e1514b337b6822dd4f2ff855f6c8b9a770e2bc315e1c59aa136ea87c7bac78e
4
- data.tar.gz: db138a3bd70e254e7ee73c920fcde5a7da875922754d930c38133b13bf1be441
3
+ metadata.gz: 3c049fd18249c95ae65ebacca02863af1a4ff3ddcf074d4a7ebf701069a1fe53
4
+ data.tar.gz: 7f2f10ba790e5cf44dba969871c914fad5083c2b3ad19af114cc30e4e388a8cf
5
5
  SHA512:
6
- metadata.gz: 79c633f8fed2736db5270569bc329e28373ad2f5a924371521a9688ddb237e904b4ebebed333c095b7409e935958f39f328ff66b146fb426f6c65dc12941b09c
7
- data.tar.gz: fea703d7cb39281cd1693a4dcc4465759438fe801978310f361171a4411b525a84de5c0ef844e35b4247f3b05eb2134fa515cff7bb164f57c9845b4d6c546a29
6
+ metadata.gz: f3684f63f42653f3bb43a325241dec76422576fcb114e51c2e453234d9f33d781d9c2616229e1c5fda90ea0f0ebbf2e667a7a45f18bb45bd11ff5f6e8dd2af0a
7
+ data.tar.gz: c0400520ce4a94a39852b2b206d814ba1fb906b0a17ac3fbb32a7ddb2738e82d3d39edee7814f7ae32097cc97321dc93fdf344054d3134d75995ecf57c848800
@@ -19,15 +19,15 @@ $(document).on 'rails_admin.dom_ready', (e, content) ->
19
19
  $(that).val(hex)
20
20
  $(that).css('backgroundColor', '#' + hex)
21
21
 
22
- # datetime picker
22
+ # datetime picker datepicker timepicker datetimepicker
23
23
  $.fn.datetimepicker.defaults.icons =
24
- time: 'fa fa-clock'
24
+ time: 'fa fa-clock-o'
25
25
  date: 'fa fa-calendar'
26
26
  up: 'fa fa-chevron-up'
27
27
  down: 'fa fa-chevron-down'
28
- previous: 'fa fa-angle-double-left'
29
- next: 'fa fa-angle-double-right'
30
- today: 'fa fa-dot-circle'
28
+ previous: 'fa fa-chevron-left'
29
+ next: 'fa fa-chevron-right'
30
+ today: 'fa fa-calendar-check-o'
31
31
  clear: 'fa fa-trash'
32
32
  close: 'fa fa-times'
33
33
 
@@ -304,3 +304,20 @@ body.rails_admin .form-horizontal input, body.rails_admin .form-horizontal texta
304
304
  width: fill-available;
305
305
  // max-width: max-content;
306
306
  }
307
+
308
+ // Fix for Datepicker DateTimepicker btn color
309
+ a.btn[data-action="incrementHours"],
310
+ a.btn[data-action="decrementHours"],
311
+ a.btn[data-action="incrementMinutes"],
312
+ a.btn[data-action="decrementMinutes"] {
313
+ background-color: transparent !important;
314
+ border-style: none !important;
315
+ }
316
+
317
+ trix-editor {
318
+ background-color: white;
319
+ }
320
+
321
+ .trix-button {
322
+ background-color: lightgray;
323
+ }
@@ -1,6 +1,6 @@
1
1
  module DeviseBootstrapErrorsHelper
2
2
  def devise_bootstrap_error_messages!
3
- return '' if resource.errors.empty?
3
+ return '' if resource.errors.blank?
4
4
 
5
5
  messages = resource.errors.full_messages.map { |msg| content_tag(:li, msg) }.join
6
6
  sentence = I18n.t('errors.messages.not_saved',
@@ -12,6 +12,9 @@
12
12
  div.sub-menu-container li.sub-menu a.pjax { padding-left: 0px }
13
13
  div#wrapper div#sidebar-wrapper { overflow: hidden }
14
14
 
15
+
16
+ = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => 'reload'
17
+ = javascript_pack_tag 'application', 'data-turbolinks-track' => 'reload'
15
18
  / Getting all the assets needed by thecore_ui_rails_admin from all the gems and the application level
16
19
  = get_asset_tags_for("thecore_rails_admin")
17
20
 
@@ -45,7 +45,7 @@
45
45
  #list
46
46
  = form_tag(index_path(params.except(*%w[page f query])), method: :get, class: "pjax-form form-inline") do
47
47
  %span#filters_box{data: {options: ordered_filter_options.to_json}}
48
- %hr.filters_box{style: "display:#{ordered_filters.empty? ? 'none' : 'block'}"}
48
+ %hr.filters_box{style: "display:#{ordered_filters.blank? ? 'none' : 'block'}"}
49
49
  .input-group
50
50
  %input.form-control.input-small{name: "query", type: "search", value: query, placeholder: t("admin.misc.filter")}
51
51
  %span.input-group-btn
@@ -57,7 +57,7 @@
57
57
  - if export_action
58
58
  %span{style: 'float:right'}= link_to wording_for(:link, export_action), export_path(params.except('set').except('page')), class: 'btn btn-info'
59
59
 
60
- - unless @model_config.list.scopes.empty?
60
+ - unless @model_config.list.scopes.blank?
61
61
  %ul.nav.nav-tabs.nav-justified#scope_selector
62
62
  - @model_config.list.scopes.each do |scope|
63
63
  - scope = '_all' if scope.nil?
@@ -1,4 +1,5 @@
1
1
  require 'rails_admin'
2
+ require 'nested_form/builder_mixin'
2
3
 
3
4
  RailsAdmin.config do |config|
4
5
  # Link for background Job
@@ -38,6 +39,10 @@ RailsAdmin.config do |config|
38
39
  end
39
40
 
40
41
  config.model "ActiveStorage::Attachment" do
42
+ visible false
43
+ end
44
+
45
+ config.model "ActiveStorage::VariantRecord" do
41
46
  visible false
42
47
  end
43
48
 
@@ -11,7 +11,7 @@ module ThecoreUiRailsAdminRole
11
11
  desc I18n.t("activerecord.descriptions.role")
12
12
 
13
13
  field :name
14
- field :permissions, :selectize
14
+ field :permissions#, :selectize
15
15
  list do
16
16
  field :created_at
17
17
  exclude_fields :lock_version
@@ -28,7 +28,7 @@ module ThecoreUiRailsAdminUser
28
28
  bindings[:view].current_user.admin? && bindings[:view].current_user.id != bindings[:object].id
29
29
  end
30
30
  end
31
- field :roles, :selectize
31
+ field :roles#, :selectize
32
32
  # include UserRailsAdminConcern
33
33
 
34
34
  # Fields only in lists and forms
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiRailsAdmin
2
- VERSION = "#{`git describe --tags $(git rev-list --tags --max-count=1)`}"
2
+ VERSION = "#{`git describe --tags $(git rev-list --tags --max-count=1)`.chomp}"
3
3
  end
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: 2.2.6
4
+ version: 2.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-20 00:00:00.000000000 Z
11
+ date: 2021-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_ui_commons