File path fixes

This commit is contained in:
Dennis Eichhorn 2017-01-26 16:42:54 +01:00
parent 164c44922e
commit 847bff8f1b
4 changed files with 20 additions and 10 deletions

View File

@ -2,7 +2,7 @@
/** /**
* Orange Management * Orange Management
* *
* PHP Version 7.0 * PHP Version 7.1
* *
* @category TBD * @category TBD
* @package TBD * @package TBD

View File

@ -2,7 +2,7 @@
/** /**
* Orange Management * Orange Management
* *
* PHP Version 7.0 * PHP Version 7.1
* *
* @category TBD * @category TBD
* @package TBD * @package TBD
@ -21,8 +21,9 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-100"> <section class="box w-100">
<div class="inner"> <div class="inner">
<form> <form id="fEditor" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/editor?csrf={$CSRF}'); ?>">
<input type="text" class="wf-100"> <input name="title" type="text" class="wf-100">
<input type="submit" value="<?= $this->getText('Save'); ?>">
</form> </form>
</div> </div>
</section> </section>
@ -95,7 +96,7 @@ echo $this->getData('nav')->render(); ?>
<div class="tab-content"> <div class="tab-content">
<input type="radio" id="c-tab2-1" name="tabular-2" checked> <input type="radio" id="c-tab2-1" name="tabular-2" checked>
<div class="tab"> <div class="tab">
<textarea class="wf-100"></textarea> <textarea name="plain" class="wf-100" form="fEditor"></textarea>
</div> </div>
<input type="radio" id="c-tab2-2" name="tabular-2"> <input type="radio" id="c-tab2-2" name="tabular-2">
<div class="tab"> <div class="tab">
@ -113,7 +114,7 @@ echo $this->getData('nav')->render(); ?>
<option> <option>
</select> </select>
<tr><td colspan="2"><label><?= $this->getText('GroupUser') ?></label> <tr><td colspan="2"><label><?= $this->getText('GroupUser') ?></label>
<tr><td><input id="iPermission" name="group" type="text" placeholder="&#xf084;"><td><button><?= $this->getText('Add', 0, 0) ?></button> <tr><td><input id="iPermission" name="group" type="text" placeholder="&#xf084;"><td><button><?= $this->getText('Add') ?></button>
</table> </table>
</form> </form>
</div> </div>

View File

@ -2,7 +2,7 @@
/** /**
* Orange Management * Orange Management
* *
* PHP Version 7.0 * PHP Version 7.1
* *
* @category TBD * @category TBD
* @package TBD * @package TBD
@ -22,20 +22,27 @@ $footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
$footerView->setPages(20); $footerView->setPages(20);
$footerView->setPage(1); $footerView->setPage(1);
$docs = $this->getData('docs');
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<div class="box"> <div class="box">
<table class="table"> <table class="table">
<caption><?= $this->getText('Documents'); ?></caption> <caption><?= $this->getText('Documents'); ?></caption>
<thead> <thead>
<tr> <tr>
<td class="wf-100"><?= $this->getText('Name'); ?> <td class="wf-100"><?= $this->getText('Title'); ?>
<td><?= $this->getText('Creator'); ?> <td><?= $this->getText('Creator'); ?>
<td><?= $this->getText('Created'); ?> <td><?= $this->getText('Created'); ?>
<tfoot> <tfoot>
<tr> <tr>
<td colspan="3"><?= $footerView->render(); ?> <td colspan="3"><?= $footerView->render(); ?>
<tbody> <tbody>
<?php $count = 0; foreach([] as $key => $value) : $count++; ?> <?php $count = 0; foreach($docs as $key => $value) : $count++;
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/editor/single?id=' . $value->getId()); ?>
<tr>
<td><a href="<?= $url; ?>"><?= $value->getTitle(); ?></a>
<td><a href="<?= $url; ?>"><?= $value->getCreatedBy(); ?></a>
<td><a href="<?= $url; ?>"><?= $value->getCreatedAt()->format('Y-m-d H:i:s'); ?></a>
<?php endforeach; ?> <?php endforeach; ?>
<?php if($count === 0) : ?> <?php if($count === 0) : ?>
<tr><td colspan="5" class="empty"><?= $this->getText('Empty', 0, 0); ?> <tr><td colspan="5" class="empty"><?= $this->getText('Empty', 0, 0); ?>

View File

@ -2,7 +2,7 @@
/** /**
* Orange Management * Orange Management
* *
* PHP Version 7.0 * PHP Version 7.1
* *
* @category TBD * @category TBD
* @package TBD * @package TBD
@ -24,6 +24,8 @@ return ['Editor' => [
'Name' => 'Name', 'Name' => 'Name',
'Permission' => 'Permission', 'Permission' => 'Permission',
'Preview' => 'Preview', 'Preview' => 'Preview',
'Save' => 'Save',
'Start' => 'Start', 'Start' => 'Start',
'Text' => 'Text', 'Text' => 'Text',
'Title' => 'Title',
]]; ]];