minor tpl and bug fixes

This commit is contained in:
Dennis Eichhorn 2020-06-13 21:25:46 +02:00
parent 0a298d6cca
commit 7ce25fdea1
11 changed files with 114 additions and 24 deletions

View File

@ -162,7 +162,7 @@ final class BackendController extends Controller
$view->addData('interface', $interface);
$lang = include __DIR__ . '/../Interfaces/' . $interface->getInterfacePath() . '/' . $response->getHeader()->getL11n()->getLanguage() . '.lang.php';
$lang = include __DIR__ . '/../Interfaces/' . $interface->getInterfacePath() . '/Lang/' . $response->getHeader()->getL11n()->getLanguage() . '.lang.php';
$view->addData('lang', $lang);
return $view;

View File

@ -0,0 +1,27 @@
<?php
/**
* Orange Management
*
* PHP Version 7.4
*
* @package Modules\Exchange
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
return [
'Assets' => 'Anlagevermögen',
'Accounts' => 'Konten',
'Articles' => 'Artikel',
'CostCenters' => 'Kostenstellen',
'CostObjects' => 'Kostenträger',
'Customers' => 'Kunden',
'Invoices' => 'Rechnungen',
'Options' => 'Optionen',
'Postings' => 'Buchungen',
'Stocks' => 'Lager',
'Suppliers' => 'Lieferanten',
];

View File

@ -1,10 +1,9 @@
<div class="row">
<div class="col-xs-12 col-md-6">
<section class="box wf-100">
<header><h1><?= $this->getHtml('Import') ?> - GSD</h1></header>
<div class="inner">
<form id="fImport" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}admin/exchange/import/profile?{?}&exchange=GSD&csrf={$CSRF}'); ?>">
<section class="portlet">
<form id="fImport" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}admin/exchange/import/profile?{?}&exchange=GSD&csrf={$CSRF}'); ?>">
<div class="portlet-head"><?= $this->getHtml('Import') ?> - GSD</div>
<div class="portlet-body">
<table class="layout wf-100" style="table-layout: fixed">
<tbody>
<tr><td><label for="iHost"><?= $this->getHtml('Host') ?></label>
@ -74,11 +73,12 @@
<label for="iArticles"><?= $lang['Articles']; ?></label>
</span>
</table>
<tr><td>
<input type="submit" value="<?= $this->getHtml('Import'); ?>">
</table>
</form>
</div>
</div>
<div class="portlet-foot">
<input type="submit" value="<?= $this->getHtml('Import'); ?>">
</div>
</form>
</section>
</div>
</div>

View File

@ -0,0 +1,17 @@
<?php
declare(strict_types=1);
/**
* Orange Management
*
* PHP Version 7.4
*
* @package Modules\Exchange
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
return [
];

View File

View File

@ -0,0 +1,20 @@
<?php
/**
* Orange Management
*
* PHP Version 7.4
*
* @package Modules\Exchange
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
return ['Navigation' => [
'Dashboard' => 'Dashboard',
'Exchange' => 'Exchange',
'Export' => 'Export',
'Import' => 'Import',
]];

View File

@ -0,0 +1,32 @@
<?php
/**
* Orange Management
*
* PHP Version 7.4
*
* @package Modules\Exchange
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
return ['Exchange' => [
'Database' => 'Datenbank',
'End' => 'Ende',
'Exchange' => 'Exchange',
'Export' => 'Export',
'Exports' => 'Exporte',
'File' => 'Dateien',
'Host' => 'Host',
'Import' => 'Import',
'Imports' => 'Importe',
'Login' => 'Login',
'Options' => 'Optionen',
'Password' => 'Passwort',
'Port' => 'Port',
'Start' => 'Start',
'Title' => 'Titel',
'Website' => 'Webseite',
]];

View File

@ -12,19 +12,16 @@
*/
declare(strict_types=1);
/**
* @var \phpOMS\Views\View $this
*/
/** @var \phpOMS\Views\View $this */
$interfaces = $this->getData('interfaces');
echo $this->getData('nav')->render();
?>
<div class="row">
<div class="col-xs-12">
<div class="box wf-100">
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Exports') ?><i class="fa fa-download floatRight download btn"></i></div>
<table class="default">
<caption><?= $this->getHtml('Exports') ?><i class="fa fa-download floatRight download btn"></i></caption>
<thead>
<tr>
<td class="wf-100"><?= $this->getHtml('Title') ?>
@ -38,6 +35,6 @@ echo $this->getData('nav')->render();
<tr><td colspan="2" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
<?php endif; ?>
</table>
</div>
</section>
</div>
</div>

View File

@ -12,19 +12,16 @@
*/
declare(strict_types=1);
/**
* @var \phpOMS\Views\View $this
*/
/** @var \phpOMS\Views\View $this */
$interfaces = $this->getData('interfaces');
echo $this->getData('nav')->render();
?>
<div class="row">
<div class="col-xs-12">
<div class="box wf-100">
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Imports') ?><i class="fa fa-download floatRight download btn"></i></div>
<table class="default">
<caption><?= $this->getHtml('Imports') ?><i class="fa fa-download floatRight download btn"></i></caption>
<thead>
<tr>
<td class="wf-100"><?= $this->getHtml('Title') ?>
@ -38,6 +35,6 @@ echo $this->getData('nav')->render();
<tr><td colspan="2" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
<?php endif; ?>
</table>
</div>
</section>
</div>
</div>