Went through todos

This commit is contained in:
Dennis Eichhorn 2024-05-02 22:54:37 +00:00
parent 19c3a61524
commit a0fc4b1f3b
2 changed files with 11 additions and 6 deletions

View File

@ -40,7 +40,7 @@ return [
'active' => true,
'permission' => [
'module' => Controller::NAME,
'type' => PermissionType::READ,
'type' => PermissionType::CREATE,
'state' => PermissionCategory::EQUIPMENT,
],
],
@ -51,7 +51,7 @@ return [
'active' => true,
'permission' => [
'module' => Controller::NAME,
'type' => PermissionType::READ,
'type' => PermissionType::MODIFY,
'state' => PermissionCategory::EQUIPMENT,
],
],
@ -65,8 +65,8 @@ return [
'active' => true,
'permission' => [
'module' => Controller::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::EQUIPMENT,
'type' => PermissionType::CREATE,
'state' => PermissionCategory::EQUIPMENT_NOTE,
],
],
[
@ -76,8 +76,8 @@ return [
'active' => true,
'permission' => [
'module' => Controller::NAME,
'type' => PermissionType::READ,
'state' => PermissionCategory::EQUIPMENT,
'type' => PermissionType::MODIFY,
'state' => PermissionCategory::EQUIPMENT_NOTE,
],
],
],

View File

@ -54,6 +54,10 @@ echo $this->data['nav']->render();
<div class="row">
<div class="col-xs-12 col-md-6">
<section class="portlet">
<form id="iEquipmentForm"
method="<?= $isNew ? 'PUT' : 'POST'; ?>"
action="<?= UriFactory::build('{/api}equipment?csrf={$CSRF}'); ?>"
<?= $isNew ? 'data-redirect="' . UriFactory::build('{/base}/equipment/view') . '?id={/0/response/id}"' : ''; ?>>
<div class="portlet-head"><?= $this->getHtml('Equipment'); ?></div>
<div class="portlet-body">
<div class="form-group">
@ -121,6 +125,7 @@ echo $this->data['nav']->render();
<input id="iSaveSubmit" type="Submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
<?php endif; ?>
</div>
</form>
</section>
</div>