draft tags and portlets

This commit is contained in:
Dennis Eichhorn 2020-03-01 15:00:33 +01:00
parent db7c1482ec
commit c0b3f994b6

View File

@ -35,10 +35,9 @@ echo $this->getData('nav')->render(); ?>
<iframe src="<?= UriFactory::build('{/api}helper/report/export/?{?}&id=' . $template->getId()); ?>&u=<?= $this->getData('unit'); ?>" allowfullscreen></iframe> <iframe src="<?= UriFactory::build('{/api}helper/report/export/?{?}&id=' . $template->getId()); ?>&u=<?= $this->getData('unit'); ?>" allowfullscreen></iframe>
</div> </div>
<div class="col-xs-12 col-md-3"> <div class="col-xs-12 col-md-3">
<section class="box wf-100"> <div class="portlet">
<header><h1><?= $this->getHtml('Reports') ?></h1></header> <div class="portlet-head"><?= $this->getHtml('Reports') ?></div>
<div class="portlet-body">
<div class="inner">
<form action="<?= UriFactory::build('{/api}helper/template'); ?>" method="post"> <form action="<?= UriFactory::build('{/api}helper/template'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
@ -59,13 +58,12 @@ echo $this->getData('nav')->render(); ?>
</table> </table>
</form> </form>
</div> </div>
</section> </div>
<?php if (isset($tcoll['excel']) || isset($tcoll['pdf']) || isset($tcoll['word']) || isset($tcoll['powerpoint']) || isset($tcoll['csv']) || isset($tcoll['json'])) : ?> <?php if (isset($tcoll['excel']) || isset($tcoll['pdf']) || isset($tcoll['word']) || isset($tcoll['powerpoint']) || isset($tcoll['csv']) || isset($tcoll['json'])) : ?>
<section class="box wf-100"> <div class="portlet">
<header><h1><?= $this->getHtml('Export') ?></h1></header> <div class="portlet-head"><?= $this->getHtml('Export') ?></div>
<div class="portlet-body">
<div class="inner">
<form> <form>
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
@ -88,33 +86,30 @@ echo $this->getData('nav')->render(); ?>
</table> </table>
</form> </form>
</div> </div>
</section> </div>
<?php endif; ?> <?php endif; ?>
<?php if (!empty($settings)) : ?> <?php if (!empty($settings)) : ?>
<section class="box wf-100"> <div class="portlet">
<header><h1><?= $this->getHtml('Settings') ?></h1></header> <form id="iUiSettings">
<div class="portlet-head"><?= $this->getHtml('Settings') ?></div>
<div class="inner"> <div class="portlet-body">
<form id="iUiSettings">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<?php foreach ($settings as $element) : ?> <?php foreach ($settings as $element) : ?>
<tr> <tr>
<td><?= FormElementGenerator::generate($element, $this->request->getData($element['attributes']['name'] ?? '')); ?> <td><?= FormElementGenerator::generate($element, $this->request->getData($element['attributes']['name'] ?? '')); ?>
<?php endforeach; ?> <?php endforeach; ?>
<tr>
<td><a class="button" href="<?= UriFactory::build('{%}');?>&type={#iExport}&lang={#iLang}{#iUiSettings}"><?= $this->getHtml('Load'); ?></a>
</table> </table>
</form> </div>
</div> <div class="portlet-foot"><a class="button" href="<?= UriFactory::build('{%}');?>&type={#iExport}&lang={#iLang}{#iUiSettings}"><?= $this->getHtml('Load'); ?></a></div>
</section> </form>
</div>
<?php endif; ?> <?php endif; ?>
<section class="box wf-100"> <div class="portlet">
<header><h1><?= $this->getHtml('Info') ?></h1></header> <div class="portlet-head"><?= $this->getHtml('Info') ?></div>
<div class="portlet-body">
<div class="inner">
<table class="list wf-100"> <table class="list wf-100">
<tbody> <tbody>
<?php if (!$template->isStandalone() && !($report instanceof \Modules\Helper\Models\NullReport)) : ?> <?php if (!$template->isStandalone() && !($report instanceof \Modules\Helper\Models\NullReport)) : ?>
@ -143,6 +138,6 @@ echo $this->getData('nav')->render(); ?>
<td><?= $template->getCreatedAt()->format('Y-m-d'); ?> <td><?= $template->getCreatedAt()->format('Y-m-d'); ?>
</table> </table>
</div> </div>
</section> </div>
</div> </div>
</div> </div>