Fix getHtml para type

This commit is contained in:
Dennis Eichhorn 2019-04-27 18:29:24 +02:00
parent c8541e7d94
commit 7b8d0c9052
4 changed files with 7 additions and 7 deletions

View File

@ -33,7 +33,7 @@ echo $this->getData('nav')->render(); ?>
<option value="<?= $this->printHtml($key); ?>"><?= $this->printHtml($value->getName()); ?>
<?php endforeach; ?>
</select>
<tr><td><input type="submit" id="iReportCreateButton" name="reportCreateButton" value="<?= $this->getHtml('Create', 0, 0); ?>">
<tr><td><input type="submit" id="iReportCreateButton" name="reportCreateButton" value="<?= $this->getHtml('Create', '0', '0'); ?>">
</table>
</form>
</div>

View File

@ -99,7 +99,7 @@ echo $this->getData('nav')->render(); ?>
$formPermissionAdd = new \Web\Views\Form\FormView($this->app, $this->request, $this->response);
$formPermissionAdd->setTemplate('/Web/Templates/Forms/FormFull');
$formPermissionAdd->setSubmit('submit1', $this->getHtml('Add', 0, 0));
$formPermissionAdd->setSubmit('submit1', $this->getHtml('Add', '0', '0'));
$formPermissionAdd->setAction($this->request->getUri()->getScheme() . '://' . $this->request->getUri()->getHost());
$formPermissionAdd->setMethod(\phpOMS\Message\Http\RequestMethod::POST);

View File

@ -32,7 +32,7 @@ echo $this->getData('nav')->render(); ?>
<caption><?= $this->getHtml('Reports') ?><i class="fa fa-download floatRight download btn"></i></caption>
<thead>
<tr>
<td><?= $this->getHtml('ID', 0, 0); ?>
<td><?= $this->getHtml('ID', '0', '0'); ?>
<td class="wf-100"><?= $this->getHtml('Name') ?>
<td><?= $this->getHtml('Creator') ?>
<td><?= $this->getHtml('Updated') ?>
@ -42,12 +42,12 @@ echo $this->getData('nav')->render(); ?>
<tbody>
<?php if (\count($templates) == 0) : ?>
<tr class="empty">
<td colspan="4"><?= $this->getHtml('Empty', 0, 0); ?>
<td colspan="4"><?= $this->getHtml('Empty', '0', '0'); ?>
<?php endif; ?>
<?php foreach ($templates as $key => $template) :
$url = \phpOMS\Uri\UriFactory::build('{/prefix}helper/report/view?{?}&id=' . $template->getId()); ?>
<tr data-href="<?= $url; ?>">
<td data-label="<?= $this->getHtml('ID', 0, 0) ?>"><a href="<?= $url; ?>"><?= $this->printHtml($template->getId()); ?></a>
<td data-label="<?= $this->getHtml('ID', '0', '0') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($template->getId()); ?></a>
<td data-label="<?= $this->getHtml('Name') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($template->getName()); ?></a>
<td data-label="<?= $this->getHtml('Creator') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($template->getCreatedBy()->getName1()); ?></a>
<td data-label="<?= $this->getHtml('Updated') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($template->getCreatedAt()->format('Y-m-d')); ?></a>

View File

@ -38,9 +38,9 @@ echo $this->getData('nav')->render(); ?>
<tr><td>
<div class="ipt-wrap">
<div class="ipt-first"><input id="iExpected" type="text" placeholder="&#xf15b; file.csv"><input name="expected" type="hidden"></div>
<div class="ipt-second"><button><?= $this->getHtml('Add', 0, 0); ?></button></div>
<div class="ipt-second"><button><?= $this->getHtml('Add', '0', '0'); ?></button></div>
</div>
<tr><td><input type="submit" id="iReportTemplateCreateButton" name="reportTemplateCreateButton" value="<?= $this->getHtml('Create', 0, 0); ?>">
<tr><td><input type="submit" id="iReportTemplateCreateButton" name="reportTemplateCreateButton" value="<?= $this->getHtml('Create', '0', '0'); ?>">
</table>
</form>
</div>