mirror of
https://github.com/Karaka-Management/oms-EquipmentManagement.git
synced 2026-02-16 02:08:40 +00:00
Went through todos
This commit is contained in:
parent
19c3a61524
commit
a0fc4b1f3b
|
|
@ -40,7 +40,7 @@ return [
|
||||||
'active' => true,
|
'active' => true,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => Controller::NAME,
|
'module' => Controller::NAME,
|
||||||
'type' => PermissionType::READ,
|
'type' => PermissionType::CREATE,
|
||||||
'state' => PermissionCategory::EQUIPMENT,
|
'state' => PermissionCategory::EQUIPMENT,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
@ -51,7 +51,7 @@ return [
|
||||||
'active' => true,
|
'active' => true,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => Controller::NAME,
|
'module' => Controller::NAME,
|
||||||
'type' => PermissionType::READ,
|
'type' => PermissionType::MODIFY,
|
||||||
'state' => PermissionCategory::EQUIPMENT,
|
'state' => PermissionCategory::EQUIPMENT,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
@ -65,8 +65,8 @@ return [
|
||||||
'active' => true,
|
'active' => true,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => Controller::NAME,
|
'module' => Controller::NAME,
|
||||||
'type' => PermissionType::READ,
|
'type' => PermissionType::CREATE,
|
||||||
'state' => PermissionCategory::EQUIPMENT,
|
'state' => PermissionCategory::EQUIPMENT_NOTE,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
|
@ -76,8 +76,8 @@ return [
|
||||||
'active' => true,
|
'active' => true,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => Controller::NAME,
|
'module' => Controller::NAME,
|
||||||
'type' => PermissionType::READ,
|
'type' => PermissionType::MODIFY,
|
||||||
'state' => PermissionCategory::EQUIPMENT,
|
'state' => PermissionCategory::EQUIPMENT_NOTE,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,10 @@ echo $this->data['nav']->render();
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-md-6">
|
<div class="col-xs-12 col-md-6">
|
||||||
<section class="portlet">
|
<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-head"><?= $this->getHtml('Equipment'); ?></div>
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
@ -121,6 +125,7 @@ echo $this->data['nav']->render();
|
||||||
<input id="iSaveSubmit" type="Submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
|
<input id="iSaveSubmit" type="Submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
</form>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user