mirror of
https://github.com/Karaka-Management/oms-EquipmentManagement.git
synced 2026-02-03 20:08:41 +00:00
Went through todos
This commit is contained in:
parent
19c3a61524
commit
a0fc4b1f3b
|
|
@ -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,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user