optimized attachment and list template

pull/44/head
A1Gard 6 months ago
parent 84ad1c1584
commit 3d0f49be0c

@ -17,8 +17,8 @@ class AttachmentController extends XController
// protected $_MODEL_ = Attachment::class;
// protected $SAVE_REQUEST = AttachmentSaveRequest::class;
protected $cols = ['title'];
protected $extra_cols = ['slug'];
protected $cols = ['title','ext','is_fillable'];
protected $extra_cols = ['slug','id'];
protected $searchable = ['title', 'subtitle', 'body'];

@ -201,7 +201,7 @@
@case($col == 'icon')
<i class="{{$item->$col}}"></i>
@break
@case($col == 'is_default')
@case(substr($col,0,3) == 'is_')
@if($item->$col == 1)
<i class="ri-check-line"></i>
@endif

Loading…
Cancel
Save