Cleaned up presenters

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-08-19 11:58:31 +01:00
parent b4b6f7a35f
commit f82266fade
4 changed files with 22 additions and 16 deletions

View file

@ -579,6 +579,6 @@ class AssetPresenter extends Presenter
public function glyph() public function glyph()
{ {
return '<i class="fas fa-barcode" aria-hidden="true"></i>'; return '<x-icon type="assets" />';
} }
} }

View file

@ -65,40 +65,46 @@ class CompanyPresenter extends Presenter
'field' => 'users_count', 'field' => 'users_count',
'searchable' => false, 'searchable' => false,
'sortable' => true, 'sortable' => true,
'title' => '<span class="hidden-xs"><i class="fas fa-users"></i></span><span class="hidden-md hidden-lg">'.trans('general.users').'</span></th>', 'title' => trans('general.users'),
'visible' => true, 'visible' => true,
'class' => 'css-users',
], [ ], [
'field' => 'assets_count', 'field' => 'assets_count',
'searchable' => false, 'searchable' => false,
'sortable' => true, 'sortable' => true,
'title' => '<span class="hidden-xs"><i class="fas fa-barcode" aria-hidden="true"></i></span><span class="hidden-md hidden-lg">'.trans('general.assets').'</span>', 'title' => trans('general.assets'),
'visible' => true, 'visible' => true,
'class' => 'css-barcode',
], [ ], [
'field' => 'licenses_count', 'field' => 'licenses_count',
'searchable' => false, 'searchable' => false,
'sortable' => true, 'sortable' => true,
'title' => trans('general.licenses'),
'visible' => true, 'visible' => true,
'title' => ' <span class="hidden-xs"><i class="far fa-save"></i></span><span class="hidden-md hidden-lg">'.trans('general.licenses').'</span>', 'class' => 'css-license',
], [ ], [
'field' => 'accessories_count', 'field' => 'accessories_count',
'searchable' => false, 'searchable' => false,
'sortable' => true, 'sortable' => true,
'title' => trans('general.accessories'),
'visible' => true, 'visible' => true,
'title' => ' <span class="hidden-xs"><i class="far fa-keyboard"></i></span><span class="hidden-md hidden-lg">'.trans('general.accessories').'</span>', 'class' => 'css-accessory',
], [ ], [
'field' => 'consumables_count', 'field' => 'consumables_count',
'searchable' => false, 'searchable' => false,
'sortable' => true, 'sortable' => true,
'title' => trans('general.consumables'),
'visible' => true, 'visible' => true,
'title' => ' <span class="hidden-xs"><i class="fas fa-tint"></i></span><span class="hidden-md hidden-lg">'.trans('general.consumables').'</span>', 'class' => 'css-consumable',
], [ ], [
'field' => 'components_count', 'field' => 'components_count',
'searchable' => false, 'searchable' => false,
'sortable' => true, 'sortable' => true,
'title' => trans('general.components'),
'visible' => true, 'visible' => true,
'title' => ' <span class="hidden-xs"><i class="far fa-hdd"></i></span><span class="hidden-md hidden-lg">'.trans('general.components').'</span>', 'class' => 'css-component',
], [ ], [
'field' => 'updated_at', 'field' => 'updated_at',
'searchable' => false, 'searchable' => false,

View file

@ -235,7 +235,7 @@ class LocationPresenter extends Presenter
public function glyph() public function glyph()
{ {
return '<i class="fas fa-map-marker-alt" aria-hidden="true"></i>'; return '<x-icon type="locations" />';
} }
public function fullName() public function fullName()

View file

@ -94,36 +94,36 @@ class ManufacturerPresenter extends Presenter
'searchable' => false, 'searchable' => false,
'sortable' => true, 'sortable' => true,
'switchable' => true, 'switchable' => true,
'title' => ' <span class="hidden-md hidden-lg">Assets</span>' 'title' => trans('general.assets'),
.'<span class="hidden-xs"><i class="fas fa-barcode fa-lg"></i></span>',
'visible' => true, 'visible' => true,
'class' => 'css-barcode',
], ],
[ [
'field' => 'licenses_count', 'field' => 'licenses_count',
'searchable' => false, 'searchable' => false,
'sortable' => true, 'sortable' => true,
'switchable' => true, 'switchable' => true,
'title' => ' <span class="hidden-md hidden-lg">Licenses</span>' 'title' => trans('general.licenses'),
.'<span class="hidden-xs"><i class="far fa-save fa-lg"></i></span>',
'visible' => true, 'visible' => true,
'class' => 'css-license',
], ],
[ [
'field' => 'consumables_count', 'field' => 'consumables_count',
'searchable' => false, 'searchable' => false,
'sortable' => true, 'sortable' => true,
'switchable' => true, 'switchable' => true,
'title' => ' <span class="hidden-md hidden-lg">Consumables</span>' 'title' => trans('general.consumables'),
.'<span class="hidden-xs"><i class="fas fa-tint fa-lg"></i></span>',
'visible' => true, 'visible' => true,
'class' => 'css-consumable',
], ],
[ [
'field' => 'accessories_count', 'field' => 'accessories_count',
'searchable' => false, 'searchable' => false,
'sortable' => true, 'sortable' => true,
'switchable' => true, 'switchable' => true,
'title' => ' <span class="hidden-md hidden-lg">Accessories</span>' 'title' => trans('general.accessories'),
.'<span class="hidden-xs"><i class="far fa-keyboard fa-lg"></i></span>',
'visible' => true, 'visible' => true,
'class' => 'css-accessory',
], ],
[ [
'field' => 'created_at', 'field' => 'created_at',