cm-admin 1.3.7 → 1.3.9

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: ac0b46b59a37aa14513ffd40ca2ba413b13887638078d237f7984e57775f44a2
4
- data.tar.gz: 2447f380415e9ee56eea95c349c44ad0184afa22b346a75f9ea27b68b6057e98
3
+ metadata.gz: 562260419c63a8ecbe47434934436fcbcfcc0bba45d5fdb1ec79b409dab1eae8
4
+ data.tar.gz: 44254130972962094d599673a89bbc4b1961ef4ef8eedc1087c5313f18c7b683
5
5
  SHA512:
6
- metadata.gz: a10b1b77856006ef36af25065fdf8e192609707794ec5c4d335871608404f61a617403ae5c2bf89e8e1ae5b9267837ac134fc000282db55dce098f08b881a1a7
7
- data.tar.gz: 317b10e4376033e39a3d72cf5f62c60434128996847a625d9d6aadcd77c37f3c3772fe7499e2ed1cd13dabb8a41515cac08c4c117becfd604ecc94feb2fb28be
6
+ metadata.gz: 763022ed87852040e0dfe161df4d9044ce802f8b3555bac98eafd765dde5d6f396eb5f3c4c46ede87cffae6e5b6ba09ac6f9f60001690091f803d9f1b292568c
7
+ data.tar.gz: b1495b2af0cffaf34e0aedba3a7ead53c13e8ab7ad9dc883d403ec6594e4301cca7c208193daa80ea48fd95f8657045fb31af88de4d87234c2f9bd22fa1b69de
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cm-admin (1.3.7)
4
+ cm-admin (1.3.9)
5
5
  caxlsx_rails
6
6
  cocoon (~> 1.2.15)
7
7
  csv-importer (~> 0.8.2)
@@ -115,7 +115,7 @@
115
115
  padding: 4px;
116
116
  background: $gradient-one;
117
117
  visibility: hidden;
118
- z-index: 3;
118
+ z-index: 3 !important;
119
119
  .row-action-tool {
120
120
  .popup-card {
121
121
  .popup-option {
@@ -2,7 +2,7 @@
2
2
  - destroy_action = available_actions(cm_model, ar_object, 'destroy')
3
3
  - custom_actions = available_actions(cm_model, ar_object, 'custom_actions')
4
4
  - current_model = @associated_model || @model
5
- - if custom_actions.any? || edit_action.present? || destroy_action.present?
5
+ - if custom_actions.map { |custom_action| custom_action.display_if.call(ar_object) }.any? || edit_action.present? || destroy_action.present?
6
6
  td.row-action-cell
7
7
  .row-action-tool
8
8
  button.btn-ghost.dropdown-toggle
@@ -1,6 +1,6 @@
1
1
  .entity-header
2
2
  .entity-header__info
3
- - if cm_admin.method_defined?(:"#{@model.name.underscore}_index_path") && (@model.current_action.name == 'show' || @model.current_action.layout_type.present?)
3
+ - if cm_admin.method_defined?(:"#{@model.name.underscore}_index_path") && (@model.current_action.name == 'show'|| @model.current_action.name == 'history' || @model.current_action.layout_type.present?)
4
4
  .breadcrumb
5
5
  = link_to "#{@model.name.titleize.pluralize} /", cm_admin.send(:"#{@model.name.underscore}_index_path"), class: 'text-reset'
6
6
  h4 = action_title
@@ -1,3 +1,3 @@
1
1
  module CmAdmin
2
- VERSION = '1.3.7'
2
+ VERSION = '1.3.9'
3
3
  end
@@ -91,6 +91,7 @@ module CmAdmin
91
91
  form_obj.text_field cm_field.field_name,
92
92
  class: "field-control #{required_class}",
93
93
  disabled: cm_field.disabled.call(form_obj.object),
94
+ value: value&.strftime('%d-%m-%Y'),
94
95
  placeholder: cm_field.placeholder,
95
96
  data: { behaviour: 'date-only' }
96
97
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cm-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.7
4
+ version: 1.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - sajinmp
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2023-11-15 00:00:00.000000000 Z
13
+ date: 2023-12-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails