This commit is contained in:
Dennis Eichhorn 2024-04-07 17:31:42 +00:00
parent 4343e20b38
commit 651df90a36
5 changed files with 103 additions and 88 deletions

View File

@ -10,6 +10,7 @@ return [
[ [
'dest' => '\Modules\IncomeStatement\Controller\BackendController:viewPLDashboard', 'dest' => '\Modules\IncomeStatement\Controller\BackendController:viewPLDashboard',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
'active' => true,
'permission' => [ 'permission' => [
'module' => BackendController::MODULE_NAME, 'module' => BackendController::MODULE_NAME,
'type' => PermissionType::READ, 'type' => PermissionType::READ,

View File

@ -103,7 +103,7 @@ final class ApiController extends Controller
} }
/** /**
* Api method to create an account * Api method to create a IncomeStatementElement
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
@ -130,7 +130,7 @@ final class ApiController extends Controller
} }
/** /**
* Validate account create request * Validate IncomeStatementElement create request
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* *
@ -152,7 +152,7 @@ final class ApiController extends Controller
} }
/** /**
* Method to create account from request. * Method to create IncomeStatementElement from request.
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* *
@ -185,7 +185,7 @@ final class ApiController extends Controller
} }
/** /**
* Api method to create item attribute l11n * Api method to create IncomeStatementElement l11n
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
@ -212,7 +212,7 @@ final class ApiController extends Controller
} }
/** /**
* Method to create item attribute l11n from request. * Method to create IncomeStatementElement l11n from request.
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* *
@ -231,7 +231,7 @@ final class ApiController extends Controller
} }
/** /**
* Validate item attribute l11n create request * Validate IncomeStatementElement l11n create request
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* *

View File

@ -23,6 +23,7 @@ return ['IncomeStatement' => [
'Monthly' => 'Monatlich', 'Monthly' => 'Monatlich',
'Quarterly' => 'Quartalsweise', 'Quarterly' => 'Quartalsweise',
'Annually' => 'Jährlich', 'Annually' => 'Jährlich',
'Settings' => 'Settings',
'Category' => 'Kategorie', 'Category' => 'Kategorie',
'Subtotal' => 'Zwischensumme', 'Subtotal' => 'Zwischensumme',
'Total' => 'Summe', 'Total' => 'Summe',

View File

@ -21,6 +21,7 @@ return ['IncomeStatement' => [
'Interval' => 'Interval', 'Interval' => 'Interval',
'Environment' => 'Environment', 'Environment' => 'Environment',
'Monthly' => 'Monthly', 'Monthly' => 'Monthly',
'Settings' => 'Settings',
'Quarterly' => 'Quarterly', 'Quarterly' => 'Quarterly',
'Annually' => 'Annually', 'Annually' => 'Annually',
'Category' => 'Category', 'Category' => 'Category',

View File

@ -168,7 +168,7 @@ echo $this->data['nav']->render();
min-height: 34px; min-height: 34px;
} }
.data-row div { .data-row > div {
padding: .2rem 3px .2rem 3px; padding: .2rem 3px .2rem 3px;
display: flex; display: flex;
align-items: center; align-items: center;
@ -182,7 +182,7 @@ echo $this->data['nav']->render();
background: #efefef; background: #efefef;
} }
.data-row div:nth-child(n+3) { .data-row > div:nth-child(n+3) {
width: 95px; width: 95px;
justify-content: end; justify-content: end;
} }
@ -203,100 +203,112 @@ echo $this->data['nav']->render();
</style> </style>
<div class="row"> <div class="row">
<div class="col-xs-12 col-md-6"> <div class="box more-container">
<div class="box"> <label for="more-settings">
<div class="form-group"> <span><?= $this->getHtml('Settings'); ?></span>
<div class="input-control"> <i class="g-icon expand">chevron_right</i>
<select id="iStructure" name="structure" data-action='[{"listener": "change", "action": [{"key": 1, "type": "redirect", "uri": "{%}&structure={#iStructure}", "target": "self"}]}]'> </label>
<?php foreach ($this->data['structures'] as $structure) : ?> </div>
<option value="<?= $structure->id; ?>"<?= $this->request->getDataInt('structure') === $structure->id ? ' selected' : ''; ?>><?= $this->printHtml($structure->name); ?> </div>
<?php endforeach; ?>
</select>
</div>
<div class="input-control"> <div class="wf-100 more-container flex">
<select id="iLanguage" name="language" data-action='[{"listener": "change", "action": [{"key": 1, "type": "redirect", "uri": "{%}&language={#iLanguage}", "target": "self"}]}]'> <input id="more-settings" type="checkbox" name="more-container">
<?php foreach ($this->data['languages'] as $language) : ?> <div class="row">
<option value="<?= $language; ?>"<?= $this->request->getDataString('language') === $language ? ' selected' : ''; ?>><?= $this->printHtml(ISO639Enum::getBy2Code($language)); ?> <div class="col-xs-12 col-md-6">
<?php endforeach; ?> <div class="box">
</select> <div class="form-group">
<div class="input-control">
<select id="iStructure" name="structure" data-action='[{"listener": "change", "action": [{"key": 1, "type": "redirect", "uri": "{%}&structure={#iStructure}", "target": "self"}]}]'>
<?php foreach ($this->data['structures'] as $structure) : ?>
<option value="<?= $structure->id; ?>"<?= $this->request->getDataInt('structure') === $structure->id ? ' selected' : ''; ?>><?= $this->printHtml($structure->name); ?>
<?php endforeach; ?>
</select>
</div>
<div class="input-control">
<select id="iLanguage" name="language" data-action='[{"listener": "change", "action": [{"key": 1, "type": "redirect", "uri": "{%}&language={#iLanguage}", "target": "self"}]}]'>
<?php foreach ($this->data['languages'] as $language) : ?>
<option value="<?= $language; ?>"<?= $this->request->getDataString('language') === $language ? ' selected' : ''; ?>><?= $this->printHtml(ISO639Enum::getBy2Code($language)); ?>
<?php endforeach; ?>
</select>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="row"> <div class="row">
<div class="col-xs-12 col-md-6"> <div class="col-xs-12 col-md-6">
<section class="portlet"> <section class="portlet">
<div class="portlet-body"> <div class="portlet-body">
<div class="form-group"> <div class="form-group">
<div class="input-control"> <div class="input-control">
<label><?= $this->getHtml('Start'); ?></label> <label><?= $this->getHtml('Start'); ?></label>
<input type="date"> <input type="date">
</div>
<div class="input-control">
<label><?= $this->getHtml('Start'); ?></label>
<input type="date">
</div>
</div> </div>
<div class="input-control">
<label><?= $this->getHtml('Start'); ?></label> <div class="form-group">
<input type="date"> <div class="input-control">
<label><?= $this->getHtml('Interval'); ?></label>
<select>
<option><?= $this->getHtml('Monthly'); ?>
<option><?= $this->getHtml('Quarterly'); ?>
<option><?= $this->getHtml('Annually'); ?>
</select>
</div>
<div class="input-control">
<label><?= $this->getHtml('Environment'); ?></label>
<select></select>
</div>
</div> </div>
</div> </div>
<div class="portlet-foot">
<input type="submit" value="<?= $this->getHtml('Submit', '0', '0'); ?>">
<input class="close" type="submit" value="<?= $this->getHtml('Reset', '0', '0'); ?>">
</div>
</section>
</div>
<div class="form-group"> <div class="col-xs-12 col-md-6">
<div class="input-control"> <section class="portlet">
<label><?= $this->getHtml('Interval'); ?></label> <div class="portlet-body">
<select> <div class="form-group">
<option><?= $this->getHtml('Monthly'); ?> <div class="input-control">
<option><?= $this->getHtml('Quarterly'); ?> <label><?= $this->getHtml('Start'); ?></label>
<option><?= $this->getHtml('Annually'); ?> <input type="date">
</select> </div>
<div class="input-control">
<label><?= $this->getHtml('Start'); ?></label>
<input type="date">
</div>
</div> </div>
<div class="input-control">
<label><?= $this->getHtml('Environment'); ?></label> <div class="form-group">
<select></select> <div class="input-control">
<label><?= $this->getHtml('Interval'); ?></label>
<select>
<option><?= $this->getHtml('Monthly'); ?>
<option><?= $this->getHtml('Quarterly'); ?>
<option><?= $this->getHtml('Annually'); ?>
</select>
</div>
<div class="input-control">
<label><?= $this->getHtml('Environment'); ?></label>
<select></select>
</div>
</div> </div>
</div> </div>
</div> <div class="portlet-foot">
<div class="portlet-foot"> <input type="submit" value="<?= $this->getHtml('Submit', '0', '0'); ?>">
<input type="submit" value="<?= $this->getHtml('Submit', '0', '0'); ?>"> <input class="close" type="submit" value="<?= $this->getHtml('Reset', '0', '0'); ?>">
<input class="close" type="submit" value="<?= $this->getHtml('Reset', '0', '0'); ?>">
</div>
</section>
</div>
<div class="col-xs-12 col-md-6">
<section class="portlet">
<div class="portlet-body">
<div class="form-group">
<div class="input-control">
<label><?= $this->getHtml('Start'); ?></label>
<input type="date">
</div>
<div class="input-control">
<label><?= $this->getHtml('Start'); ?></label>
<input type="date">
</div>
</div> </div>
</section>
<div class="form-group"> </div>
<div class="input-control">
<label><?= $this->getHtml('Interval'); ?></label>
<select>
<option><?= $this->getHtml('Monthly'); ?>
<option><?= $this->getHtml('Quarterly'); ?>
<option><?= $this->getHtml('Annually'); ?>
</select>
</div>
<div class="input-control">
<label><?= $this->getHtml('Environment'); ?></label>
<select></select>
</div>
</div>
</div>
<div class="portlet-foot">
<input type="submit" value="<?= $this->getHtml('Submit', '0', '0'); ?>">
<input class="close" type="submit" value="<?= $this->getHtml('Reset', '0', '0'); ?>">
</div>
</section>
</div> </div>
</div> </div>