mirror of
https://github.com/Karaka-Management/oms-FleetManagement.git
synced 2026-01-11 04:48:41 +00:00
autofixes
This commit is contained in:
parent
007b51b418
commit
92b66064dc
|
|
@ -23,7 +23,7 @@ return [
|
|||
'dest' => '\Modules\FleetManagement\Controller\ApiVehicleController:apiVehicleFind',
|
||||
'verb' => RouteVerb::GET,
|
||||
'csrf' => true,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => Controller::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -37,7 +37,7 @@ return [
|
|||
'dest' => '\Modules\FleetManagement\Controller\ApiVehicleAttributeController:apiVehicleAttributeCreate',
|
||||
'verb' => RouteVerb::PUT,
|
||||
'csrf' => true,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => Controller::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -48,7 +48,7 @@ return [
|
|||
'dest' => '\Modules\FleetManagement\Controller\ApiVehicleAttributeController:apiVehicleAttributeUpdate',
|
||||
'verb' => RouteVerb::SET,
|
||||
'csrf' => true,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => Controller::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -62,7 +62,7 @@ return [
|
|||
'dest' => '\Modules\FleetManagement\Controller\ApiDriverAttributeController:apiDriverAttributeCreate',
|
||||
'verb' => RouteVerb::PUT,
|
||||
'csrf' => true,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => Controller::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -73,7 +73,7 @@ return [
|
|||
'dest' => '\Modules\FleetManagement\Controller\ApiDriverAttributeController:apiDriverAttributeUpdate',
|
||||
'verb' => RouteVerb::SET,
|
||||
'csrf' => true,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => Controller::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -87,7 +87,7 @@ return [
|
|||
'dest' => '\Modules\FleetManagement\Controller\ApiVehicleController:apiNoteCreate',
|
||||
'verb' => RouteVerb::PUT,
|
||||
'csrf' => true,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => Controller::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -98,7 +98,7 @@ return [
|
|||
'dest' => '\Modules\FleetManagement\Controller\ApiVehicleController:apiNoteUpdate',
|
||||
'verb' => RouteVerb::SET,
|
||||
'csrf' => true,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => Controller::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -112,7 +112,7 @@ return [
|
|||
'dest' => '\Modules\FleetManagement\Controller\ApiDriverController:apiNoteCreate',
|
||||
'verb' => RouteVerb::PUT,
|
||||
'csrf' => true,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => Controller::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -123,7 +123,7 @@ return [
|
|||
'dest' => '\Modules\FleetManagement\Controller\ApiDriverController:apiNoteUpdate',
|
||||
'verb' => RouteVerb::SET,
|
||||
'csrf' => true,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => Controller::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementAttributeTypeList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -34,7 +34,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementAttributeType',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -46,7 +46,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementAttributeTypeCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::CREATE,
|
||||
|
|
@ -58,7 +58,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementAttributeValue',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -70,7 +70,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementAttributeValueCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::CREATE,
|
||||
|
|
@ -83,7 +83,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementVehicleList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -95,7 +95,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementVehicleCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::CREATE,
|
||||
|
|
@ -107,7 +107,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementVehicleView',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -120,7 +120,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementDriverAttributeTypeList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -132,7 +132,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementDriverAttributeType',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -144,7 +144,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementDriverAttributeTypeCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::CREATE,
|
||||
|
|
@ -156,7 +156,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementDriverAttributeValue',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -168,7 +168,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementDriverAttributeValueCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::CREATE,
|
||||
|
|
@ -181,7 +181,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementDriverList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -193,7 +193,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementDriverCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::CREATE,
|
||||
|
|
@ -205,7 +205,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementDriverView',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -218,7 +218,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementInspectionList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -230,7 +230,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementInspectionTypeList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -242,7 +242,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementInspectionCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::CREATE,
|
||||
|
|
@ -254,7 +254,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementInspectionView',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -266,7 +266,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementDriverInspectionTypeList',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
@ -278,7 +278,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementDriverInspectionCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::CREATE,
|
||||
|
|
@ -290,7 +290,7 @@ return [
|
|||
[
|
||||
'dest' => '\Modules\FleetManagement\Controller\BackendController:viewFleetManagementDriverInspectionView',
|
||||
'verb' => RouteVerb::GET,
|
||||
'active' => true,
|
||||
'active' => true,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::READ,
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ final class BackendController extends Controller
|
|||
});
|
||||
|
||||
$view->data['inspections'] = $inspections;
|
||||
$view->data['vehicles'] = VehicleMapper::getAll()
|
||||
$view->data['vehicles'] = VehicleMapper::getAll()
|
||||
->where('id', \array_map(function (Inspection $inspection) { return $inspection->reference; }, $vehicles))
|
||||
->executeGetArray();
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ return ['FleetManagement' => [
|
|||
'Date' => 'Datum',
|
||||
'Driver' => 'Fahrer',
|
||||
'Drivers' => 'Fahrer',
|
||||
'Reference' => 'Referenz',
|
||||
'Reference' => 'Referenz',
|
||||
'End' => 'Ende',
|
||||
'From' => 'Von',
|
||||
'Description' => 'Beschreibung',
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ return ['FleetManagement' => [
|
|||
'To' => 'To',
|
||||
'Description' => 'Description',
|
||||
'Files' => 'Files',
|
||||
'Reference' => 'Reference',
|
||||
'Reference' => 'Reference',
|
||||
'History' => 'History',
|
||||
'Inspections' => 'Inspections',
|
||||
'LeasingFee' => 'Leasing Fee',
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ echo $this->data['nav']->render();
|
|||
|
||||
$url = UriFactory::build('{/base}/fleet/inspection/' . $i['type'] . '/view?id=' . $inspection->id);
|
||||
?>
|
||||
<tr data-href="<?= $url ?>">
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $inspection->next?->format('Y-m-d H:i'); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($inspection->type->getL11n()); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $i['type'] === 'vehicle'
|
||||
|
|
@ -76,7 +76,7 @@ echo $this->data['nav']->render();
|
|||
|
||||
$url = UriFactory::build('{/base}/fleet/inspection/' . $i['type'] . '/view?id=' . $inspection->id);
|
||||
?>
|
||||
<tr data-href="<?= $url ?>">
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $inspection->date?->format('Y-m-d H:i'); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($inspection->type->getL11n()); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $i['type'] === 'vehicle'
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user