start implementing portlets

This commit is contained in:
Dennis Eichhorn 2020-02-29 19:50:20 +01:00
parent cb944a9099
commit 3e85dcf49d
2 changed files with 25 additions and 18 deletions

View File

@ -12,6 +12,8 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
use phpOMS\Uri\UriFactory;
/** /**
* @var \phpOMS\Views\View $this * @var \phpOMS\Views\View $this
*/ */
@ -21,10 +23,10 @@ echo $this->getData('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="box wf-100"> <div class="portlet">
<header><h1><?= $this->getHtml('Report'); ?></h1></header> <form id="helper-report-create" action="<?= UriFactory::build('{/api}helper/report/report'); ?>" method="post">
<div class="inner"> <div class="portlet-head"><?= $this->getHtml('Report'); ?></div>
<form id="helper-report-create" action="<?= \phpOMS\Uri\UriFactory::build('{/api}helper/report/report'); ?>" method="post"> <div class="portlet-body">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iTitle"><?= $this->getHtml('Title'); ?></label> <tr><td><label for="iTitle"><?= $this->getHtml('Title'); ?></label>
@ -35,14 +37,16 @@ echo $this->getData('nav')->render(); ?>
<option value="<?= $this->printHtml($key); ?>"><?= $this->printHtml($value->getName()); ?> <option value="<?= $this->printHtml($key); ?>"><?= $this->printHtml($value->getName()); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><input type="submit" id="iReportCreateButton" name="reportCreateButton" value="<?= $this->getHtml('Create', '0', '0'); ?>">
</table> </table>
</form> </div>
</div> <div class="portlet-foot">
</section> <input type="submit" id="iReportCreateButton" name="reportCreateButton" value="<?= $this->getHtml('Create', '0', '0'); ?>">
</div>
</form>
</div>
</div> </div>
<div class="col-xs-12 col-md-6"> <div class="col-xs-12 col-md-6">
<?= $this->getData('media-upload')->render('helper-report-create'); ?> <?= $this->getData('media-upload')->render('helper-report-create'); ?>
</div> </div>
</div> </div>

View File

@ -12,18 +12,19 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
use phpOMS\Uri\UriFactory;
/** /**
* @var \phpOMS\Views\View $this * @var \phpOMS\Views\View $this
*/ */
echo $this->getData('nav')->render(); ?> echo $this->getData('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="box wf-100"> <div class="portlet">
<header><h1><?= $this->getHtml('Template'); ?></h1></header> <form id="helper-template-create" action="<?= \phpOMS\Uri\UriFactory::build('{/api}helper/report/template'); ?>" method="post">
<div class="inner"> <div class="portlet-head"><?= $this->getHtml('Template'); ?></div>
<form id="helper-template-create" action="<?= \phpOMS\Uri\UriFactory::build('{/api}helper/report/template'); ?>" method="post"> <div class="portlet-body">
<table class="layout wf-100" style="table-layout: fixed"> <table class="layout wf-100" style="table-layout: fixed">
<tbody> <tbody>
<tr><td><label for="iTitle"><?= $this->getHtml('Title'); ?></label> <tr><td><label for="iTitle"><?= $this->getHtml('Title'); ?></label>
@ -42,11 +43,13 @@ echo $this->getData('nav')->render(); ?>
<div class="ipt-first"><input id="iExpected" type="text" placeholder="&#xf15b; file.csv"><input name="expected" type="hidden"></div> <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> </div>
<tr><td><input type="submit" id="iReportTemplateCreateButton" name="reportTemplateCreateButton" value="<?= $this->getHtml('Create', '0', '0'); ?>">
</table> </table>
</form> </div>
</div> <div class="portlet-foot">
</section> <input type="submit" id="iReportTemplateCreateButton" name="reportTemplateCreateButton" value="<?= $this->getHtml('Create', '0', '0'); ?>">
</div>
</form>
</div>
</div> </div>
<div class="col-xs-12 col-md-6"> <div class="col-xs-12 col-md-6">