data['asset'] ?? new NullAsset(); $assetImage = $this->data['assetImage'] ?? new NullMedia(); $assetTypes = $this->data['types'] ?? []; /** * @var \phpOMS\Views\View $this */ echo $this->data['nav']->render(); ?>
request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
getHtml('Profile'); ?>
id === 0) : ?>
request->uri->fragment === 'c-tab-2' ? ' checked' : ''; ?>>
data['attributeView']->render( $asset->attributes, $this->data['attributeTypes'] ?? [], $this->data['units'] ?? [], '{/api}fleet/asset/attribute', $asset->id ); ?>
request->uri->fragment === 'c-tab-3' ? ' checked' : ''; ?>>
data['media-upload']->render('asset-file', 'files', '', $asset->files); ?>
request->uri->fragment === 'c-tab-4' ? ' checked' : ''; ?>>
data['asset-notes']->render('asset-notes', '', $asset->notes); ?>
request->uri->fragment === 'c-tab-5' ? ' checked' : ''; ?>>
getHtml('Upcoming'); ?>
data['inspections'] as $inspection) : // @todo handle old inspections in the past? maybe use a status?! if ($inspection->next === null) { continue; } ?>
getHtml('Date'); ?> getHtml('Type'); ?> getHtml('Responsible'); ?>
next->format('Y-m-d H:i'); ?> printHtml($inspection->type->getL11n()); ?>
getHtml('History'); ?>
data['inspections'] as $inspection) : ?>
getHtml('Date'); ?> getHtml('Type'); ?> getHtml('Responsible'); ?>
date->format('Y-m-d H:i'); ?> printHtml($inspection->type->getL11n()); ?>
request->uri->fragment === 'c-tab-8' ? ' checked' : ''; ?>>