started with template fixes

This commit is contained in:
Dennis Eichhorn 2024-03-29 15:26:00 +00:00
parent e599c3694c
commit 236e866b27
2 changed files with 5 additions and 1 deletions

View File

@ -22,6 +22,7 @@ return [
[
'dest' => '\Modules\Purchase\Controller\ApiController:apiOrderSuggestionCreate',
'verb' => RouteVerb::PUT,
'csrf' => true,
'permission' => [
'module' => ApiController::NAME,
'type' => PermissionType::CREATE,
@ -31,6 +32,7 @@ return [
[
'dest' => '\Modules\Purchase\Controller\ApiController:apiOrderSuggestionUpdate',
'verb' => RouteVerb::SET,
'csrf' => true,
'permission' => [
'module' => ApiController::NAME,
'type' => PermissionType::MODIFY,
@ -40,6 +42,7 @@ return [
[
'dest' => '\Modules\Purchase\Controller\ApiController:apiOrderSuggestionDelete',
'verb' => RouteVerb::DELETE,
'csrf' => true,
'permission' => [
'module' => ApiController::NAME,
'type' => PermissionType::MODIFY,
@ -51,6 +54,7 @@ return [
[
'dest' => '\Modules\Purchase\Controller\ApiController:apiOrderSuggestionBillCreate',
'verb' => RouteVerb::PUT,
'csrf' => true,
'permission' => [
'module' => ApiController::NAME,
'type' => PermissionType::CREATE,

View File

@ -29,7 +29,7 @@ echo $this->data['nav']->render();
<div class="portlet-body">
<input type="hidden" name="id" form="suggestionList" value="<?= $this->data['suggestion']->id; ?>">
<input name="save" type="submit" form="suggestionList" value="<?= $this->getHtml('Save', '0', '0'); ?>">
<!--<input name="order" type="submit" form="suggestionList" formaction="<?= UriFactory::build('{/api}purchase/order/suggestion/bill'); ?>" formmethod="put" value="<?= $this->getHtml('Order'); ?>">-->
<!--<input name="order" type="submit" form="suggestionList" formaction="<?= UriFactory::build('{/api}purchase/order/suggestion/bill?csrf={$CSRF}'); ?>" formmethod="put" value="<?= $this->getHtml('Order'); ?>">-->
<input name="delete" class="cancel" type="submit" form="suggestionList" formmethod="delete" value="<?= $this->getHtml('Delete', '0', '0'); ?>">
</div>
</div>