diff --git a/Theme/Backend/driver-profile.tpl.php b/Theme/Backend/driver-profile.tpl.php deleted file mode 100644 index 3edaf98..0000000 --- a/Theme/Backend/driver-profile.tpl.php +++ /dev/null @@ -1,326 +0,0 @@ -data['driver'] ?? new NullDriver(); -$driverImage = $this->data['driverImage'] ?? new NullMedia(); - -/** - * @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( - $driver->attributes, - $this->data['attributeTypes'] ?? [], - [], - '{/api}fleet/driver/attribute?csrf={$CSRF}', - $driver->id - ); - ?> -
-
- - request->uri->fragment === 'c-tab-3' ? ' checked' : ''; ?>> -
- data['media-upload']->render('driver-file', 'files', '', $driver->files); ?> -
- - request->uri->fragment === 'c-tab-4' ? ' checked' : ''; ?>> -
- data['driver-notes']->render('driver-notes', '', $driver->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-7' ? ' checked' : ''; ?>> -
-
-
-
-
-
getHtml('Milage'); ?>
-
-
- - -
- -
- -
-
- - - - -
- 0) : ?> - - -
-
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- -

-                                
-
-
- - - -
-
-
-
- -
-
-
getHtml('Milage'); ?>download
-
- - - - - - $value) : ++$c; ?> - - -
- getHtml('ID', '0', '0'); ?> - getHtml('Driver'); ?>expand_lessexpand_more - getHtml('Milage'); ?>expand_lessexpand_more - getHtml('Start'); ?>expand_lessexpand_more - getHtml('End'); ?>expand_lessexpand_more -
- settings - type->isRequired) : ?> - - - - - - - - id; ?> - printHtml($value->type->getL11n()); ?> - value->getValue() instanceof \DateTime ? $value->value->getValue()->format('Y-m-d') : $this->printHtml((string) $value->value->getValue()); ?> - printHtml($value->value->unit); ?> - printHtml($value->value->unit); ?> - - -
getHtml('Empty', '0', '0'); ?> - -
-
-
-
-
-
- - request->uri->fragment === 'c-tab-8' ? ' checked' : ''; ?>> -
-
-
-
-
-
-
-
\ No newline at end of file