From: Vincent Vanwaelscappel Date: Wed, 24 May 2023 09:33:29 +0000 (+0200) Subject: wip #5944 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=950b61507f74c6063f45b00bb011fb456707b189;p=cubist_cms-back.git wip #5944 @0.5 --- diff --git a/src/app/Magic/Fields/Field.php b/src/app/Magic/Fields/Field.php index b46ef69..e9d5019 100644 --- a/src/app/Magic/Fields/Field.php +++ b/src/app/Magic/Fields/Field.php @@ -418,8 +418,9 @@ class Field implements \ArrayAccess $this->setAttribute('auth', false); $this->setAttribute('type', 'noteditable'); $this->setAttribute('view_namespace', CubistBackpackServiceProvider::NAMESPACE . '::fields'); - $this->setAttribute('tab',null); - $this->setAttribute('label',''); + $this->setAttribute('tab', null); + $this->setAttribute('label', ''); + $this->setAttribute('read_only', false); } } else if (null !== $this->getAttribute('can_hidden', null)) { if (!self::can($this->getAttribute('can_hidden'))) { @@ -429,8 +430,9 @@ class Field implements \ArrayAccess $this->setAttribute('auth', false); $this->setAttribute('type', 'authhidden'); $this->setAttribute('view_namespace', CubistBackpackServiceProvider::NAMESPACE . '::fields'); - $this->setAttribute('tab',null); - $this->setAttribute('label',''); + $this->setAttribute('tab', null); + $this->setAttribute('label', ''); + $this->setAttribute('read_only', false); } } diff --git a/src/resources/views/fields/noteditable.blade.php b/src/resources/views/fields/noteditable.blade.php index e69de29..059e528 100644 --- a/src/resources/views/fields/noteditable.blade.php +++ b/src/resources/views/fields/noteditable.blade.php @@ -0,0 +1,21 @@ +@push('crud_fields_scripts') + @loadOnce('bpFieldInitNotEditable') + + @endLoadOnce +@endpush