dbmsv4 init...3
This commit is contained in:
parent
5f03d7c045
commit
2739f5adb4
@ -81,6 +81,7 @@ abstract class AbstractWebController extends Controller
|
||||
$this->addViewDatas('action', $action);
|
||||
$this->addViewDatas('authContext', $this->getAuthContext());
|
||||
$this->addViewDatas('classPath', $this->service->getClassPaths(false));
|
||||
$this->addViewDatas('uri', $this->request->getUri());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -6,7 +6,7 @@ class MylogDTO extends CommonDTO
|
||||
{
|
||||
public ?int $uid = null;
|
||||
public ?int $user_uid = null;
|
||||
public string $title = null;
|
||||
public string $title = '';
|
||||
public string $content = '';
|
||||
public string $status = '';
|
||||
|
||||
|
||||
@ -252,7 +252,7 @@ abstract class CommonHelper
|
||||
$label,
|
||||
$action,
|
||||
[
|
||||
"data-src" => current_url() . '/' . $action . '?' . $viewDatas['uri']->getQuery(),
|
||||
"data-src" => sprintf("%s/%s?%s", current_url(), $action, service('request')->getUri()->getQuery()),
|
||||
"data-bs-toggle" => "modal",
|
||||
"data-bs-target" => "#modal_action_form",
|
||||
"class" => "btn btn-sm btn-primary form-label-sm",
|
||||
@ -274,7 +274,7 @@ abstract class CommonHelper
|
||||
$label,
|
||||
$action,
|
||||
[
|
||||
"data-src" => current_url() . '/' . $action . '/' . $viewDatas['entity']->getPK() . '?' . $viewDatas['uri']->getQuery(),
|
||||
"data-src" => sprintf("%s/%s/%s?%s", current_url(), $action, $viewDatas['entity']->getPK(), service('request')->getUri()->getQuery()),
|
||||
"data-bs-toggle" => "modal",
|
||||
"data-bs-target" => "#modal_action_form",
|
||||
'class' => 'form-label-sm',
|
||||
@ -287,7 +287,7 @@ abstract class CommonHelper
|
||||
$label,
|
||||
$action,
|
||||
[
|
||||
"data-src" => current_url() . '/' . $action . '/' . $viewDatas['entity']->getPK() . '?' . $viewDatas['uri']->getQuery(),
|
||||
"data-src" => sprintf("%s/%s/%s?%s", current_url(), $action, $viewDatas['entity']->getPK(), service('request')->getUri()->getQuery()),
|
||||
"data-bs-toggle" => "modal",
|
||||
"data-bs-target" => "#modal_action_form",
|
||||
"class" => "btn btn-sm btn-primary form-label-sm",
|
||||
|
||||
@ -8,9 +8,7 @@
|
||||
<?php foreach ($partCellDatas['entities'] as $entity): ?>
|
||||
<?php $partCellDatas['entity'] = $entity; ?>
|
||||
<tr>
|
||||
<td class="text-end text-nowrap"><?= $partCellDatas['helper']->getListButton('modify', $entity->getTitle(), $partCellDatas) ?>
|
||||
|
||||
</td>
|
||||
<td class="text-end text-nowrap"><?= $partCellDatas['helper']->getListButton('modify', $entity->getTitle(), $partCellDatas) ?></td>
|
||||
<td class="text-center text-nowrap"><?= $entity->getUsed() ?></td>
|
||||
<td class="text-center text-nowrap"><?= $entity->getAvailable() ?></td>
|
||||
<td class="text-center text-nowrap"><?= $entity->getStock() ?></td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user