fix templates

This commit is contained in:
Dennis Eichhorn 2024-04-17 17:45:07 +00:00
parent 6b1b5ec017
commit 08c155604d
14 changed files with 548 additions and 462 deletions

View File

@ -162,6 +162,18 @@ return [
],
],
],
'^/controlling/riskmanagement/category/create(\?.*$|$)' => [
[
'dest' => '\Modules\RiskManagement\Controller\BackendController:viewRiskCategoryCreate',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::CREATE,
'state' => PermissionCategory::CATEGORY,
],
],
],
'^/controlling/riskmanagement/project/list(\?.*$|$)' => [
[
'dest' => '\Modules\RiskManagement\Controller\BackendController:viewRiskProjectList',
@ -210,6 +222,18 @@ return [
],
],
],
'^/controlling/riskmanagement/process/create(\?.*$|$)' => [
[
'dest' => '\Modules\RiskManagement\Controller\BackendController:viewRiskProcessCreate',
'verb' => RouteVerb::GET,
'active' => true,
'permission' => [
'module' => BackendController::NAME,
'type' => PermissionType::CREATE,
'state' => PermissionCategory::PROCESS,
],
],
],
'^/controlling/riskmanagement/settings/dashboard(\?.*$|$)' => [
[
'dest' => '\Modules\RiskManagement\Controller\BackendController:viewRiskSettings',

View File

@ -315,7 +315,7 @@ final class ApiController extends Controller
$risk->responsible = $request->hasData('responsible') ? new NullAccount((int) $request->getData('responsible')) : null;
$risk->deputy = $request->hasData('deputy') ? new NullAccount((int) $request->getData('deputy')) : null;
$risk->unit = $request->getDataInt('unit') ?? 1;
$risk->unit = $request->getDataInt('unit') ?? $this->app->unitId;
$risk->category = $request->hasData('category') ? new NullCategory((int) $request->getData('category')) : null;
$risk->department = $request->hasData('department') ? new NullDepartment((int) $request->getData('department')) : null;
$risk->process = $request->hasData('process') ? new NullProcess((int) $request->getData('process')) : null;

View File

@ -15,7 +15,9 @@ declare(strict_types=1);
namespace Modules\RiskManagement\Controller;
use Modules\Organization\Models\DepartmentMapper;
use Modules\Organization\Models\UnitMapper;
use Modules\ProjectManagement\Models\ProjectMapper;
use Modules\RiskManagement\Models\CategoryL11nMapper;
use Modules\RiskManagement\Models\CategoryMapper;
use Modules\RiskManagement\Models\CauseMapper;
use Modules\RiskManagement\Models\ProcessMapper;
@ -141,8 +143,9 @@ final class BackendController extends Controller
$view->setTemplate('/Modules/RiskManagement/Theme/Backend/risk-list');
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003001001, $request, $response);
$risks = RiskMapper::getAll()->executeGetArray();
$view->data['risks'] = $risks;
$view->data['risks'] = RiskMapper::getAll()
->where('unit', $this->app->unitId)
->executeGetArray();
return $view;
}
@ -165,8 +168,22 @@ final class BackendController extends Controller
$view->setTemplate('/Modules/RiskManagement/Theme/Backend/risk-view');
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003001001, $request, $response);
$risk = RiskMapper::get()->where('id', (int) $request->getData('id'))->execute();
$view->data['risk'] = $risk;
$view->data['risk'] = RiskMapper::get()
->where('id', (int) $request->getData('id'))
->execute();
$view->data['units'] = UnitMapper::getAll()->executeGetArray();
$view->data['categories'] = CategoryMapper::getAll()
->with('title')
->where('title/language', $response->header->l11n->language)
->executeGetArray();
$view->data['departments'] = DepartmentMapper::getAll()
->where('unit', $this->app->unitId)
->executeGetArray();
$view->data['processes'] = ProcessMapper::getAll()
->executeGetArray();
return $view;
}
@ -186,9 +203,22 @@ final class BackendController extends Controller
public function viewRiskCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : RenderableInterface
{
$view = new View($this->app->l11nManager, $request, $response);
$view->setTemplate('/Modules/RiskManagement/Theme/Backend/risk-create');
$view->setTemplate('/Modules/RiskManagement/Theme/Backend/risk-view');
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003001001, $request, $response);
$view->data['units'] = UnitMapper::getAll()->executeGetArray();
$view->data['categories'] = CategoryMapper::getAll()
->with('title')
->where('title/language', $response->header->l11n->language)
->executeGetArray();
$view->data['departments'] = DepartmentMapper::getAll()
->where('unit', $this->app->unitId)
->executeGetArray();
$view->data['processes'] = ProcessMapper::getAll()
->executeGetArray();
return $view;
}
@ -210,8 +240,9 @@ final class BackendController extends Controller
$view->setTemplate('/Modules/RiskManagement/Theme/Backend/cause-list');
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003001001, $request, $response);
$causes = CauseMapper::getAll()->with('risk')->executeGetArray();
$view->data['causes'] = $causes;
$view->data['causes'] = CauseMapper::getAll()
->with('risk')
->executeGetArray();
return $view;
}
@ -234,8 +265,9 @@ final class BackendController extends Controller
$view->setTemplate('/Modules/RiskManagement/Theme/Backend/cause-view');
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003001001, $request, $response);
$cause = CauseMapper::get()->where('id', (int) $request->getData('id'))->execute();
$view->data['cause'] = $cause;
$view->data['cause'] = CauseMapper::get()
->where('id', (int) $request->getData('id'))
->execute();
return $view;
}
@ -258,8 +290,10 @@ final class BackendController extends Controller
$view->setTemplate('/Modules/RiskManagement/Theme/Backend/solution-list');
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003001001, $request, $response);
$solutions = SolutionMapper::getAll()->with('risk')->with('cause')->executeGetArray();
$view->data['solutions'] = $solutions;
$view->data['solutions'] = SolutionMapper::getAll()
->with('risk')
->with('cause')
->executeGetArray();
return $view;
}
@ -282,7 +316,9 @@ final class BackendController extends Controller
$view->setTemplate('/Modules/RiskManagement/Theme/Backend/solution-view');
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003001001, $request, $response);
$view->data['solution'] = SolutionMapper::get()->where('id', (int) $request->getData('id'))->execute();
$view->data['solution'] = SolutionMapper::get()
->where('id', (int) $request->getData('id'))
->execute();
return $view;
}
@ -372,6 +408,48 @@ final class BackendController extends Controller
return $view;
}
/**
* Routing end-point for application behavior.
*
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response
* @param array $data Generic data
*
* @return RenderableInterface
*
* @since 1.0.0
* @codeCoverageIgnore
*/
public function viewRiskProcessCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : RenderableInterface
{
$view = new View($this->app->l11nManager, $request, $response);
$view->setTemplate('/Modules/RiskManagement/Theme/Backend/process-view');
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003001001, $request, $response);
return $view;
}
/**
* Routing end-point for application behavior.
*
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response
* @param array $data Generic data
*
* @return RenderableInterface
*
* @since 1.0.0
* @codeCoverageIgnore
*/
public function viewRiskCategoryCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : RenderableInterface
{
$view = new View($this->app->l11nManager, $request, $response);
$view->setTemplate('/Modules/RiskManagement/Theme/Backend/category-view');
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003001001, $request, $response);
return $view;
}
/**
* Routing end-point for application behavior.
*
@ -390,8 +468,27 @@ final class BackendController extends Controller
$view->setTemplate('/Modules/RiskManagement/Theme/Backend/category-view');
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003001001, $request, $response);
$category = CategoryMapper::get()->where('id', (int) $request->getData('id'))->execute();
$view->data['category'] = $category;
$view->data['category'] = CategoryMapper::get()
->with('title')
->where('id', (int) $request->getData('id'))
->where('title/language', $response->header->l11n->language)
->execute();
$view->data['risks'] = RiskMapper::getAll()
->with('project')
->with('process')
->with('department')
->where('category', (int) $request->getData('id'))
->where('unit', $this->app->unitId)
->executeGetArray();
/** @var \phpOMS\Localization\BaseStringL11n[] $l11nValues */
$l11nValues = CategoryL11nMapper::getAll()
->where('ref', $view->data['category']->id)
->executeGetArray();
$view->data['l11nView'] = new \Web\Backend\Views\L11nView($this->app->l11nManager, $request, $response);
$view->data['l11nValues'] = $l11nValues;
return $view;
}
@ -414,8 +511,8 @@ final class BackendController extends Controller
$view->setTemplate('/Modules/RiskManagement/Theme/Backend/project-list');
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003001001, $request, $response);
$projects = ProjectMapper::getAll()->executeGetArray();
$view->data['projects'] = $projects;
$view->data['projects'] = ProjectMapper::getAll()
->executeGetArray();
return $view;
}
@ -438,8 +535,17 @@ final class BackendController extends Controller
$view->setTemplate('/Modules/RiskManagement/Theme/Backend/project-view');
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003001001, $request, $response);
$project = ProjectMapper::get()->where('id', (int) $request->getData('id'))->execute();
$view->data['project'] = $project;
$view->data['project'] = ProjectMapper::get()
->where('id', (int) $request->getData('id'))
->execute();
$view->data['risks'] = RiskMapper::getAll()
->with('project')
->with('process')
->with('department')
->where('category', (int) $request->getData('id'))
->where('unit', $this->app->unitId)
->executeGetArray();
return $view;
}
@ -462,8 +568,8 @@ final class BackendController extends Controller
$view->setTemplate('/Modules/RiskManagement/Theme/Backend/process-list');
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003001001, $request, $response);
$processes = ProcessMapper::getAll()->executeGetArray();
$view->data['processes'] = $processes;
$view->data['processes'] = ProcessMapper::getAll()
->executeGetArray();
return $view;
}
@ -486,8 +592,29 @@ final class BackendController extends Controller
$view->setTemplate('/Modules/RiskManagement/Theme/Backend/process-view');
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003001001, $request, $response);
$process = ProcessMapper::get()->where('id', (int) $request->getData('id'))->execute();
$view->data['process'] = $process;
$view->data['process'] = ProcessMapper::get()
->with('title')
->where('id', (int) $request->getData('id'))
->where('title/language', $response->header->l11n->language)
->execute();
$view->data['risks'] = RiskMapper::getAll()
->with('project')
->with('process')
->with('department')
->where('process', (int) $request->getData('id'))
->where('unit', $this->app->unitId)
->executeGetArray();
/** @var \phpOMS\Localization\BaseStringL11n[] $l11nValues */
/*
$l11nValues = ProcessL11nMapper::getAll()
->where('ref', $view->data['category']->id)
->executeGetArray();
$view->data['l11nView'] = new \Web\Backend\Views\L11nView($this->app->l11nManager, $request, $response);
$view->data['l11nValues'] = $l11nValues;
*/
return $view;
}

View File

@ -12,13 +12,19 @@
*/
declare(strict_types=1);
use phpOMS\Uri\UriFactory;
$categories = $this->data['categories'];
echo $this->data['nav']->render(); ?>
<div class="row">
<div class="col-xs-12">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Categories'); ?><i class="g-icon download btn end-xs">download</i></div>
<div class="portlet-head">
<?= $this->getHtml('Categories'); ?>
<i class="g-icon download btn end-xs">download</i>
<a class="button end-xs save" href="<?= UriFactory::build('{/base}/controlling/riskmanagement/category/create'); ?>"><?= $this->getHtml('New', '0', '0'); ?></a>
</div>
<div class="slider">
<table class="default sticky">
<thead>

View File

@ -12,5 +12,102 @@
*/
declare(strict_types=1);
$category = $this->data['category'];
use Modules\RiskManagement\Models\NullCategory;
use phpOMS\Uri\UriFactory;
$category = $this->data['category'] ?? new NullCategory();
$isNew = $category->id === 0;
echo $this->data['nav']->render();
?>
<div class="tabview tab-2">
<?php if (!$isNew) : ?>
<div class="box">
<ul class="tab-links">
<li><label for="c-tab-1"><?= $this->getHtml('Category'); ?></label>
<li><label for="c-tab-2"><?= $this->getHtml('Risks'); ?></label>
</ul>
</div>
<?php endif; ?>
<div class="tab-content">
<input type="radio" id="c-tab-1" name="tabular-2"<?= $isNew || $this->request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
<div class="tab">
<div class="row">
<div class="col-xs-12 col-md-6">
<div class="portlet">
<form id="materialForm" method="<?= $isNew ? 'PUT' : 'POST'; ?>" action="<?= UriFactory::build('{/api}controlling/riskmanagement/category?csrf={$CSRF}'); ?>">
<div class="portlet-head"><?= $this->getHtml('Category'); ?></div>
<div class="portlet-body">
<div class="form-group">
<label for="iId"><?= $this->getHtml('ID', '0', '0'); ?></label>
<input type="text" name="id" id="iId" value="<?= $category->id; ?>" disabled>
</div>
<div class="form-group">
<label for="iName"><?= $this->getHtml('Name'); ?></label>
<input type="text" name="name" id="iName" value="<?= $this->printHtml($category->getL11n()); ?>"<?= $isNew ? '' : ' disabled'; ?>>
</div>
</div>
<div class="portlet-foot">
<input type="hidden" name="id" value="<?= $category->id; ?>">
<?php if ($isNew) : ?>
<input id="iCreateSubmit" type="Submit" value="<?= $this->getHtml('Create', '0', '0'); ?>">
<?php else : ?>
<input id="iSaveSubmit" type="Submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
<?php endif; ?>
</div>
</form>
</div>
</div>
</div>
<?php if (!$isNew) : ?>
<div class="row">
<?= $this->data['l11nView']->render(
$this->data['l11nValues'],
[],
'{/api}controlling/riskmanagement/category/l11n?csrf={$CSRF}'
);
?>
</div>
<?php endif; ?>
</div>
<?php if (!$isNew) : ?>
<input type="radio" id="c-tab-2" name="tabular-2"<?= $this->request->uri->fragment === 'c-tab-2' ? ' checked' : ''; ?>>
<div class="tab">
<div class="row">
<div class="col-xs-12">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Risks'); ?><i class="g-icon download btn end-xs">download</i></div>
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('ID', '0', '0'); ?>
<td class="wf-100"><?= $this->getHtml('Title'); ?>
<td><?= $this->getHtml('Causes'); ?>
<td><?= $this->getHtml('Solutions'); ?>
<td><?= $this->getHtml('RiskObjects'); ?>
<tbody>
<?php $c = 0;
foreach ($this->data['risks'] as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/base}/controlling/riskmanagement/cause/view?{?}&id=' . $value->id); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $value->id; ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->name); ?></a>
<td><a href="<?= $url; ?>"><?= \count($value->causes); ?></a>
<td><a href="<?= $url; ?>"><?= \count($value->solutions); ?></a>
<td><a href="<?= $url; ?>"><?= \count($value->riskObjects); ?></a>
<?php endforeach; ?>
<?php if ($c === 0) : ?>
<tr><td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
<?php endif; ?>
</table>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>

View File

@ -12,7 +12,11 @@
*/
declare(strict_types=1);
$departments = $this->data['departments'];
use Modules\Organization\Models\NullDepartment;
$departments = $this->data['departments'] ?? new NullDepartment();
$isNew = $departments->id === 0;
echo $this->data['nav']->render(); ?>
<div class="row">

View File

@ -12,7 +12,9 @@
*/
declare(strict_types=1);
$department = $this->data['department'];
use Modules\Organization\Models\NullDepartment;
$department = $this->data['department'] ?? new NullDepartment();
$categories = [];
$projects = [];
@ -61,9 +63,8 @@ echo $this->data['nav']->render();
<form id="fRisk" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}controlling/riskmanagement?{?}&csrf={$CSRF}'); ?>">
<table class="layout wf-100">
<tbody>
<tr><td><?= $this->getHtml('Name'); ?></label><td><?= $this->printHtml($department->department->name); ?>
<tr><td><?= $this->getHtml('Description'); ?>:<td><?= $this->printHtml($department->department->description); ?>
<tr><td><?= $this->getHtml('Unit'); ?>:<td><?= $this->printHtml($department->department->unit->name); ?>
<tr><td><?= $this->getHtml('Name'); ?></label><td><?= $this->printHtml($department->name); ?>
<tr><td><?= $this->getHtml('Unit'); ?>:<td><?= $this->printHtml($department->unit->name); ?>
<tr><td><?= $this->getHtml('Risks'); ?>:<td>
<tr><td><?= $this->getHtml('Categories'); ?>:<td>
<tr><td><?= $this->getHtml('Projects'); ?>:<td>

View File

@ -12,13 +12,19 @@
*/
declare(strict_types=1);
use phpOMS\Uri\UriFactory;
$processes = $this->data['processes'];
echo $this->data['nav']->render(); ?>
<div class="row">
<div class="col-xs-12">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Processes'); ?><i class="g-icon download btn end-xs">download</i></div>
<div class="portlet-head">
<?= $this->getHtml('Processes'); ?>
<i class="g-icon download btn end-xs">download</i>
<a class="button end-xs save" href="<?= UriFactory::build('{/base}/controlling/riskmanagement/process/create'); ?>"><?= $this->getHtml('New', '0', '0'); ?></a>
</div>
<div class="slider">
<table class="default sticky">
<thead>

View File

@ -12,5 +12,102 @@
*/
declare(strict_types=1);
$process = $this->data['process'];
use Modules\RiskManagement\Models\NullProcess;
use phpOMS\Uri\UriFactory;
$process = $this->data['process'] ?? new NullProcess();
$isNew = $process->id === 0;
echo $this->data['nav']->render();
?>
<div class="tabview tab-2">
<?php if (!$isNew) : ?>
<div class="box">
<ul class="tab-links">
<li><label for="c-tab-1"><?= $this->getHtml('Process'); ?></label>
<li><label for="c-tab-2"><?= $this->getHtml('Risks'); ?></label>
</ul>
</div>
<?php endif; ?>
<div class="tab-content">
<input type="radio" id="c-tab-1" name="tabular-2"<?= $isNew || $this->request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
<div class="tab">
<div class="row">
<div class="col-xs-12 col-md-6">
<div class="portlet">
<form id="materialForm" method="<?= $isNew ? 'PUT' : 'POST'; ?>" action="<?= UriFactory::build('{/api}controlling/riskmanagement/process?csrf={$CSRF}'); ?>">
<div class="portlet-head"><?= $this->getHtml('Process'); ?></div>
<div class="portlet-body">
<div class="form-group">
<label for="iId"><?= $this->getHtml('ID', '0', '0'); ?></label>
<input type="text" name="id" id="iId" value="<?= $process->id; ?>" disabled>
</div>
<div class="form-group">
<label for="iName"><?= $this->getHtml('Name'); ?></label>
<input type="text" name="name" id="iName" value="<?= $this->printHtml($process->title); ?>"<?= $isNew ? '' : ' disabled'; ?>>
</div>
</div>
<div class="portlet-foot">
<input type="hidden" name="id" value="<?= $process->id; ?>">
<?php if ($isNew) : ?>
<input id="iCreateSubmit" type="Submit" value="<?= $this->getHtml('Create', '0', '0'); ?>">
<?php else : ?>
<input id="iSaveSubmit" type="Submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
<?php endif; ?>
</div>
</form>
</div>
</div>
</div>
<?php if (false && !$isNew) : ?>
<div class="row">
<?= $this->data['l11nView']->render(
$this->data['l11nValues'],
[],
'{/api}controlling/riskmanagement/process/l11n?csrf={$CSRF}'
);
?>
</div>
<?php endif; ?>
</div>
<?php if (!$isNew) : ?>
<input type="radio" id="c-tab-2" name="tabular-2"<?= $this->request->uri->fragment === 'c-tab-2' ? ' checked' : ''; ?>>
<div class="tab">
<div class="row">
<div class="col-xs-12">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Risks'); ?><i class="g-icon download btn end-xs">download</i></div>
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('ID', '0', '0'); ?>
<td class="wf-100"><?= $this->getHtml('Title'); ?>
<td><?= $this->getHtml('Causes'); ?>
<td><?= $this->getHtml('Solutions'); ?>
<td><?= $this->getHtml('RiskObjects'); ?>
<tbody>
<?php $c = 0;
foreach ($this->data['risks'] as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/base}/controlling/riskmanagement/cause/view?{?}&id=' . $value->id); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $value->id; ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->name); ?></a>
<td><a href="<?= $url; ?>"><?= \count($value->causes); ?></a>
<td><a href="<?= $url; ?>"><?= \count($value->solutions); ?></a>
<td><a href="<?= $url; ?>"><?= \count($value->riskObjects); ?></a>
<?php endforeach; ?>
<?php if ($c === 0) : ?>
<tr><td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
<?php endif; ?>
</table>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>

View File

@ -12,13 +12,18 @@
*/
declare(strict_types=1);
use phpOMS\Uri\UriFactory;
$projects = $this->data['projects'];
echo $this->data['nav']->render(); ?>
<div class="row">
<div class="col-xs-12">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Projects'); ?><i class="g-icon download btn end-xs">download</i></div>
<div class="portlet-head">
<?= $this->getHtml('Projects'); ?>
<i class="g-icon download btn end-xs">download</i>
</div>
<div class="slider">
<table class="default sticky">
<thead>
@ -31,7 +36,7 @@ echo $this->data['nav']->render(); ?>
$url = \phpOMS\Uri\UriFactory::build('{/base}/controlling/riskmanagement/project/view?{?}&id=' . $value->id); ?>
<tr tabindex="0" data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $value->id; ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->project->name); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->name); ?></a>
<?php endforeach; ?>
<?php if ($c === 0) : ?>
<tr><td colspan="3" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>

View File

@ -12,5 +12,63 @@
*/
declare(strict_types=1);
$project = $this->data['project'];
use Modules\ProjectManagement\Models\NullProject;
use phpOMS\Uri\UriFactory;
$project = $this->data['project'] ?? new NullProject();
$isNew = $project->id === 0;
echo $this->data['nav']->render();
?>
<div class="tabview tab-2">
<?php if (!$isNew) : ?>
<div class="box">
<ul class="tab-links">
<li><label for="c-tab-1"><?= $this->getHtml('Project'); ?></label>
<li><label for="c-tab-2"><?= $this->getHtml('Risks'); ?></label>
</ul>
</div>
<?php endif; ?>
<div class="tab-content">
<input type="radio" id="c-tab-1" name="tabular-2"<?= $isNew || $this->request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
<div class="tab">
</div>
<?php if (!$isNew) : ?>
<input type="radio" id="c-tab-2" name="tabular-2"<?= $this->request->uri->fragment === 'c-tab-2' ? ' checked' : ''; ?>>
<div class="tab">
<div class="row">
<div class="col-xs-12">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Risks'); ?><i class="g-icon download btn end-xs">download</i></div>
<table class="default sticky">
<thead>
<tr>
<td><?= $this->getHtml('ID', '0', '0'); ?>
<td class="wf-100"><?= $this->getHtml('Title'); ?>
<td><?= $this->getHtml('Causes'); ?>
<td><?= $this->getHtml('Solutions'); ?>
<td><?= $this->getHtml('RiskObjects'); ?>
<tbody>
<?php $c = 0;
foreach ($this->data['risks'] as $key => $value) : ++$c;
$url = \phpOMS\Uri\UriFactory::build('{/base}/controlling/riskmanagement/cause/view?{?}&id=' . $value->id); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $value->id; ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->name); ?></a>
<td><a href="<?= $url; ?>"><?= \count($value->causes); ?></a>
<td><a href="<?= $url; ?>"><?= \count($value->solutions); ?></a>
<td><a href="<?= $url; ?>"><?= \count($value->riskObjects); ?></a>
<?php endforeach; ?>
<?php if ($c === 0) : ?>
<tr><td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
<?php endif; ?>
</table>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>

View File

@ -1,306 +0,0 @@
<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\RiskManagement
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
echo $this->data['nav']->render(); ?>
<div class="tabview tab-2">
<div class="box">
<ul class="tab-links">
<li><label for="c-tab-1"><?= $this->getHtml('Risk'); ?></label>
<li><label for="c-tab-2"><?= $this->getHtml('RiskStatus'); ?></label>
<li><label for="c-tab-3"><?= $this->getHtml('RiskObjects'); ?></label>
<li><label for="c-tab-4"><?= $this->getHtml('RiskObjectStatus'); ?></label>
<li><label for="c-tab-5"><?= $this->getHtml('Solutions'); ?></label>
</ul>
</div>
<div class="tab-content">
<input type="radio" id="c-tab-1" name="tabular-2"<?= $this->request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
<div class="tab">
<div class="row">
<div class="col-xs-12 col-md-6">
<section class="box wf-100">
<header><h1><?= $this->getHtml('Risk'); ?></h1></header>
<div class="inner">
<form id="fRisk" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}controlling/riskmanagement?{?}&csrf={$CSRF}'); ?>">
<table class="layout wf-100">
<tbody>
<tr><td><label for="iName"><?= $this->getHtml('Name'); ?></label>
<tr><td><input type="text" id="iName" name="name" required>
<tr><td><label for="iDescription"><?= $this->getHtml('Description'); ?></label>
<tr><td><textarea id="iDescription" name="description"></textarea>
<tr><td><label for="iUnit"><?= $this->getHtml('Unit'); ?></label>
<tr><td><span class="input"><button type="button" formaction=""><i class="g-icon">book</i></button><input type="text" name="unit" id="iUnit"></span>
<tr><td><label for="iCategory"><?= $this->getHtml('Category'); ?></label>
<tr><td><span class="input"><button type="button" formaction=""><i class="g-icon">book</i></button><input type="text" name="category" id="iCategory"></span>
<tr><td><label for="iDepartment"><?= $this->getHtml('Department'); ?></label>
<tr><td><span class="input"><button type="button" formaction=""><i class="g-icon">book</i></button><input type="text" name="department" id="iDepartment"></span>
<tr><td><label for="iProcess"><?= $this->getHtml('Process'); ?></label>
<tr><td><span class="input"><button type="button" formaction=""><i class="g-icon">book</i></button><input type="text" name="process" id="iProcess"></span>
<tr><td><label for="iProject"><?= $this->getHtml('Project'); ?></label>
<tr><td><span class="input"><button type="button" formaction=""><i class="g-icon">book</i></button><input type="text" name="project" id="iProject"></span>
<tr><td><label for="iReview"><?= $this->getHtml('Review'); ?></label>
<tr><td><input type="datetime-local" id="iReview" name="Review" value="<?= $this->printHtml((new \DateTime('NOW'))->format('Y-m-d\TH:i:s')); ?>">
<tr><td><input type="submit" value="<?= $this->getHtml('Create', '0', '0'); ?>" name="">
</table>
</form>
</div>
</section>
</div>
<div class="col-xs-12 col-md-6">
<section class="box wf-100">
<header><h1><?= $this->getHtml('Media'); ?></h1></header>
<div class="inner">
<form>
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iMedia"><?= $this->getHtml('Media'); ?></label>
<tr><td><input type="text" id="iMedia"><td><button><?= $this->getHtml('Select'); ?></button>
<tr><td colspan="2"><label for="iUpload"><?= $this->getHtml('Upload'); ?></label>
<tr><td><input type="file" id="iUpload" form="fTask"><input form="fTask" type="hidden" name="type"><td>
</table>
</form>
</div>
</section>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-6">
<section class="box wf-100">
<header><h1><?= $this->getHtml('Responsibility'); ?></h1></header>
<div class="inner">
<form>
<table class="layout wf-100">
<tbody>
<tr><td><label for="iResponsibility"><?= $this->getHtml('Responsibility'); ?></label><td><label for="iUser"><?= $this->getHtml('UserGroup'); ?></label><td>
<tr><td><select id="iStatus" name="status">
<option value="">
</select>
<td><span class="input"><button type="button" formaction=""><i class="g-icon">book</i></button><input type="text" id="iUser" name="user"></span><td><button><?= $this->getHtml('Add', '0', '0'); ?></button>
</table>
</form>
</div>
</section>
</div>
</div>
</div>
<input type="radio" id="c-tab-2" name="tabular-2"<?= $this->request->uri->fragment === 'c-tab-2' ? ' checked' : ''; ?>>
<div class="tab">
<div class="row">
<div class="col-xs-12 col-md-6">
<section class="box wf-100">
<header><h1><?= $this->getHtml('RiskStatus'); ?></h1></header>
<div class="inner">
<form id="fRisk" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}controlling/riskmanagement?{?}&csrf={$CSRF}'); ?>">
<table class="layout wf-100">
<tbody>
<tr><td><label for="iRiskConsequence"><?= $this->getHtml('RiskConsequence'); ?></label>
<tr><td><select id="iRiskConsequence" name="riskconsequence">
</select>
<tr><td><label for="iRiskLikelihood"><?= $this->getHtml('RiskLikelihood'); ?></label>
<tr><td><select id="iRiskLikelihood" name="risklikelihood">
</select>
<tr><td><label for="iRiskConsequence"><?= $this->getHtml('RiskConsequence'); ?></label>
<tr><td><select id="iRiskConsequence" name="riskconsequence">
</select>
<tr><td><label for="iRiskLikelihood"><?= $this->getHtml('RiskLikelihood'); ?></label>
<tr><td><select id="iRiskLikelihood" name="risklikelihood">
</select>
<tr><td><label for="iRiskStatusDescription"><?= $this->getHtml('Description'); ?></label>
<tr><td><textarea id="iRiskStatusDescription" name="riskstatusdescription"></textarea>
<tr><td><input type="submit" value="<?= $this->getHtml('Create', '0', '0'); ?>" name="">
</table>
</form>
</div>
</section>
</div>
<div class="col-xs-12 col-md-6">
<section class="box wf-100">
<header><h1><?= $this->getHtml('Media'); ?></h1></header>
<div class="inner">
<form>
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iMedia"><?= $this->getHtml('Media'); ?></label>
<tr><td><input type="text" id="iMedia"><td><button><?= $this->getHtml('Select'); ?></button>
<tr><td colspan="2"><label for="iUpload"><?= $this->getHtml('Upload'); ?></label>
<tr><td><input type="file" id="iUpload" form="fTask"><input form="fTask" type="hidden" name="type"><td>
</table>
</form>
</div>
</section>
</div>
</div>
</div>
<input type="radio" id="c-tab-3" name="tabular-2"<?= $this->request->uri->fragment === 'c-tab-3' ? ' checked' : ''; ?>>
<div class="tab">
<div class="row">
<div class="col-xs-12 col-md-6">
<section class="box wf-100">
<header><h1><?= $this->getHtml('RiskObjects'); ?></h1></header>
<div class="inner">
<form id="fRisk" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}controlling/riskmanagement?{?}&csrf={$CSRF}'); ?>">
<table class="layout wf-100">
<tbody>
<tr><td><label for="iRiskObjectName"><?= $this->getHtml('Name'); ?></label>
<tr><td><input type="text" id="iRiskObjectName" name="riskobjectname">
<tr><td><label for="iRiskObjectDescription"><?= $this->getHtml('Description'); ?></label>
<tr><td><textarea id="iRiskObjectDescription" name="riskobjectdescription"></textarea>
<tr><td><input type="submit" value="<?= $this->getHtml('Create', '0', '0'); ?>" name="">
</table>
</form>
</div>
</section>
</div>
<div class="col-xs-12 col-md-6">
<section class="box wf-100">
<header><h1><?= $this->getHtml('Media'); ?></h1></header>
<div class="inner">
<form>
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iMedia"><?= $this->getHtml('Media'); ?></label>
<tr><td><input type="text" id="iMedia"><td><button><?= $this->getHtml('Select'); ?></button>
<tr><td colspan="2"><label for="iUpload"><?= $this->getHtml('Upload'); ?></label>
<tr><td><input type="file" id="iUpload" form="fTask"><input form="fTask" type="hidden" name="type"><td>
</table>
</form>
</div>
</section>
</div>
</div>
</div>
<input type="radio" id="c-tab-4" name="tabular-2"<?= $this->request->uri->fragment === 'c-tab-4' ? ' checked' : ''; ?>>
<div class="tab">
<div class="row">
<div class="col-xs-12 col-md-6">
<section class="box wf-100">
<header><h1><?= $this->getHtml('RiskObjectStatus'); ?></h1></header>
<div class="inner">
<form id="fRisk" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}controlling/riskmanagement?{?}&csrf={$CSRF}'); ?>">
<table class="layout wf-100">
<tbody>
<tr><td><label for="iRiskObjectNameValue"><?= $this->getHtml('RiskObject'); ?></label>
<tr><td><select id="iRiskObjectNameValue" name="riskobjectnamevalue">
</select>
<tr><td><label for="iRiskObjecValue"><?= $this->getHtml('Value'); ?></label>
<tr><td><input type="text" id="iRiskObjecValue" name="riskobjectvalue">
<tr><td><label for="iRiskObjecValueDescription"><?= $this->getHtml('Description'); ?></label>
<tr><td><textarea id="iRiskObjecValueDescription" name="riskobjectvaluedescription"></textarea>
<tr><td><input type="submit" value="<?= $this->getHtml('Create', '0', '0'); ?>" name="">
</table>
</form>
</div>
</section>
</div>
<div class="col-xs-12 col-md-6">
<section class="box wf-100">
<header><h1><?= $this->getHtml('Media'); ?></h1></header>
<div class="inner">
<form>
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iMedia"><?= $this->getHtml('Media'); ?></label>
<tr><td><input type="text" id="iMedia"><td><button><?= $this->getHtml('Select'); ?></button>
<tr><td colspan="2"><label for="iUpload"><?= $this->getHtml('Upload'); ?></label>
<tr><td><input type="file" id="iUpload" form="fTask"><input form="fTask" type="hidden" name="type"><td>
</table>
</form>
</div>
</section>
</div>
</div>
</div>
<input type="radio" id="c-tab-5" name="tabular-2"<?= $this->request->uri->fragment === 'c-tab-5' ? ' checked' : ''; ?>>
<div class="tab">
<div class="row">
<div class="col-xs-12 col-md-6">
<section class="box wf-100">
<header><h1><?= $this->getHtml('Solution'); ?></h1></header>
<div class="inner">
<form id="fRisk" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}controlling/riskmanagement?{?}&csrf={$CSRF}'); ?>">
<table class="layout wf-100">
<tbody>
<tr><td><label for="iSolutionName"><?= $this->getHtml('Name'); ?></label>
<tr><td><input type="text" id="iSolutionName" name="solutionname">
<tr><td><label for="iSolutioType"><?= $this->getHtml('Type'); ?></label>
<tr><td><select id="iSolutioType" name="solutiontype">
<option>Preventing
<option>Disclosing
</select>
<tr><td><label for="iSolutioFrequency"><?= $this->getHtml('Frequency'); ?></label>
<tr><td><select id="iSolutioFrequency" name="solutionfrequency">
<option>Permanently
<option>Daily
<option>Weekly
<option>Monthly
<option>Quarterly
<option>Semiannual
<option>Annual
</select>
<tr><td><label for="iSolutioAssessment"><?= $this->getHtml('Assessment'); ?></label>
<tr><td><select id="iSolutioAssessment" name="solutionassessment">
<option>Manual
<option>IT-dependent
<option>IT
</select>
<tr><td><label for="iSolutionDescription"><?= $this->getHtml('Description'); ?></label>
<tr><td><textarea id="iSolutionDescription" name="solutionDescription"></textarea>
<tr><td><input type="submit" value="<?= $this->getHtml('Create', '0', '0'); ?>" name="">
</table>
</form>
</div>
</section>
</div>
<div class="col-xs-12 col-md-6">
<section class="box wf-100">
<header><h1><?= $this->getHtml('Media'); ?></h1></header>
<div class="inner">
<form>
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iMedia"><?= $this->getHtml('Media'); ?></label>
<tr><td><input type="text" id="iMedia"><td><button><?= $this->getHtml('Select'); ?></button>
<tr><td colspan="2"><label for="iUpload"><?= $this->getHtml('Upload'); ?></label>
<tr><td><input type="file" id="iUpload" form="fTask"><input form="fTask" type="hidden" name="type"><td>
</table>
</form>
</div>
</section>
</div>
</div>
</div>
</div>
</div>

View File

@ -12,13 +12,19 @@
*/
declare(strict_types=1);
use phpOMS\Uri\UriFactory;
$risks = $this->data['risks'];
echo $this->data['nav']->render(); ?>
<div class="row">
<div class="col-xs-12">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Risks'); ?><i class="g-icon download btn end-xs">download</i></div>
<div class="portlet-head">
<?= $this->getHtml('Risks'); ?>
<i class="g-icon download btn end-xs">download</i>
<a class="button end-xs save" href="<?= UriFactory::build('{/base}/controlling/riskmanagement/risk/create'); ?>"><?= $this->getHtml('New', '0', '0'); ?></a>
</div>
<div class="slider">
<table class="default sticky">
<thead>

View File

@ -12,10 +12,14 @@
*/
declare(strict_types=1);
$risk = $this->data['risk'];
echo $this->data['nav']->render(); ?>
use Modules\RiskManagement\Models\NullRisk;
$risk = $this->data['risk'] ?? new NullRisk();
$isNew = $risk->id === 0;
echo $this->data['nav']->render(); ?>
<div class="tabview tab-2">
<?php if (!$isNew) : ?>
<div class="box">
<ul class="tab-links">
<li><label for="c-tab-1"><?= $this->getHtml('Risk'); ?></label>
@ -25,68 +29,89 @@ echo $this->data['nav']->render(); ?>
<li><label for="c-tab-5"><?= $this->getHtml('Solutions'); ?></label>
</ul>
</div>
<?php endif; ?>
<div class="tab-content">
<input type="radio" id="c-tab-1" name="tabular-2"<?= $this->request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
<input type="radio" id="c-tab-1" name="tabular-2"<?= $isNew || $this->request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
<div class="tab">
<div class="row">
<div class="col-xs-12 col-md-6">
<section class="portlet">
<form id="fRisk" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}controlling/riskmanagement?{?}&csrf={$CSRF}'); ?>">
<div class="portlet-head"><?= $this->getHtml('Risk'); ?></div>
<div class="portlet-body">
<form id="fRisk" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}controlling/riskmanagement?{?}&csrf={$CSRF}'); ?>">
<table class="layout wf-100">
<tbody>
<tr><td><?= $this->getHtml('Name'); ?><td><?= $this->printHtml($risk->name); ?>
<tr><td><?= $this->getHtml('Description'); ?><td><?= $this->printHtml($risk->description); ?>
<tr><td><?= $this->getHtml('Unit'); ?><td><?= $this->printHtml($risk->unit->name); ?>
<tr><td><?= $this->getHtml('Category'); ?><td><?= $this->printHtml($risk->category->title); ?>
<tr><td><?= $this->getHtml('Department'); ?><td><?= $this->printHtml($risk->department->department?->name); ?>
<tr><td><?= $this->getHtml('Process'); ?><td><?= $this->printHtml($risk->process->title); ?>
<tr><td><?= $this->getHtml('Project'); ?><td><?= $this->printHtml($risk->project->project?->name); ?>
</table>
</form>
</div>
</section>
</div>
<div class="portlet-body">
<div class="form-group">
<label for="iId"><?= $this->getHtml('ID', '0', '0'); ?></label>
<input type="text" name="id" id="iId" value="<?= $risk->id; ?>" disabled>
</div>
<div class="col-xs-12 col-md-6">
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Media'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iMedia"><?= $this->getHtml('Media'); ?></label>
<tr><td><input type="text" id="iMedia"><td><button><?= $this->getHtml('Select'); ?></button>
<tr><td colspan="2"><label for="iUpload"><?= $this->getHtml('Upload'); ?></label>
<tr><td><input type="file" id="iUpload" form="fTask"><input form="fTask" type="hidden" name="type"><td>
</table>
</form>
</div>
</section>
</div>
</div>
<div class="form-group">
<label for="iName"><?= $this->getHtml('Name'); ?></label>
<input type="text" name="name" id="iName" value="<?= $this->printHtml($risk->name); ?>" required>
</div>
<div class="row">
<div class="col-xs-12 col-md-6">
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Responsibility'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tbody>
<tr><td><label for="iResponsibility"><?= $this->getHtml('Responsibility'); ?></label><td><label for="iUser"><?= $this->getHtml('UserGroup'); ?></label><td>
<tr><td><select id="iStatus" name="status">
<option value="">
</select>
<td><span class="input"><button type="button" formaction=""><i class="g-icon">book</i></button><input type="text" id="iUser" name="user"></span><td><button><?= $this->getHtml('Add', '0', '0'); ?></button>
</table>
</form>
</div>
<div class="form-group">
<label for="iDescription"><?= $this->getHtml('Description'); ?></label>
<textarea name="description" id="iDescription"><?= $this->printTextarea($risk->description); ?></textarea>
</div>
<div class="form-group">
<label for="iUnit"><?= $this->getHtml('Unit'); ?></label>
<select id="iUnit" name="unit">
<option value="">
<?php
foreach ($this->data['units'] as $unit) : ?>
<option value="<?= $unit->id; ?>"<?= $unit->id === $risk->unit ? ' selected' : ''; ?>><?= $this->printHtml($unit->name); ?>
<?php endforeach; ?>
</select>
</div>
<div class="form-group">
<label for="iCategory"><?= $this->getHtml('Category'); ?></label>
<select id="iCategory" name="category">
<option value="">
<?php
foreach ($this->data['categories'] as $category) : ?>
<option value="<?= $category->id; ?>"<?= $category->id === $risk->category->id ? ' selected' : ''; ?>><?= $this->printHtml($category->getL11n()); ?>
<?php endforeach; ?>
</select>
</div>
<div class="form-group">
<label for="iDepartment"><?= $this->getHtml('Department'); ?></label>
<select id="iDepartment" name="department">
<option value="">
<?php
foreach ($this->data['departments'] as $department) : ?>
<option value="<?= $department->id; ?>"<?= $department->id === $risk->department->id ? ' selected' : ''; ?>><?= $this->printHtml($department->name); ?>
<?php endforeach; ?>
</select>
</div>
<div class="form-group">
<label for="iProcess"><?= $this->getHtml('Process'); ?></label>
<select id="iProcess" name="process">
<option value="">
<?php
foreach ($this->data['processes'] as $process) : ?>
<option value="<?= $process->id; ?>"<?= $process->id === $risk->process->id ? ' selected' : ''; ?>><?= $this->printHtml($process->title); ?>
<?php endforeach; ?>
</select>
</div>
</div>
<div class="portlet-foot">
<?php if ($isNew) : ?>
<input id="iCreateSubmit" type="Submit" value="<?= $this->getHtml('Create', '0', '0'); ?>">
<?php else : ?>
<input id="iSaveSubmit" type="Submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
<?php endif; ?>
</div>
</form>
</section>
</div>
</div>
</div>
<?php if (!$isNew) : ?>
<input type="radio" id="c-tab-2" name="tabular-2"<?= $this->request->uri->fragment === 'c-tab-2' ? ' checked' : ''; ?>>
<div class="tab">
<div class="row">
@ -121,25 +146,9 @@ echo $this->data['nav']->render(); ?>
</div>
</section>
</div>
<div class="col-xs-12 col-md-6">
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Media'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iMedia"><?= $this->getHtml('Media'); ?></label>
<tr><td><input type="text" id="iMedia"><td><button><?= $this->getHtml('Select'); ?></button>
<tr><td colspan="2"><label for="iUpload"><?= $this->getHtml('Upload'); ?></label>
<tr><td><input type="file" id="iUpload" form="fTask"><input form="fTask" type="hidden" name="type"><td>
</table>
</form>
</div>
</section>
</div>
</div>
</div>
<input type="radio" id="c-tab-3" name="tabular-2"<?= $this->request->uri->fragment === 'c-tab-3' ? ' checked' : ''; ?>>
<div class="tab">
<div class="row">
@ -160,25 +169,9 @@ echo $this->data['nav']->render(); ?>
</div>
</section>
</div>
<div class="col-xs-12 col-md-6">
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Media'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iMedia"><?= $this->getHtml('Media'); ?></label>
<tr><td><input type="text" id="iMedia"><td><button><?= $this->getHtml('Select'); ?></button>
<tr><td colspan="2"><label for="iUpload"><?= $this->getHtml('Upload'); ?></label>
<tr><td><input type="file" id="iUpload" form="fTask"><input form="fTask" type="hidden" name="type"><td>
</table>
</form>
</div>
</section>
</div>
</div>
</div>
<input type="radio" id="c-tab-4" name="tabular-2"<?= $this->request->uri->fragment === 'c-tab-4' ? ' checked' : ''; ?>>
<div class="tab">
<div class="row">
@ -203,25 +196,9 @@ echo $this->data['nav']->render(); ?>
</div>
</section>
</div>
<div class="col-xs-12 col-md-6">
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Media'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iMedia"><?= $this->getHtml('Media'); ?></label>
<tr><td><input type="text" id="iMedia"><td><button><?= $this->getHtml('Select'); ?></button>
<tr><td colspan="2"><label for="iUpload"><?= $this->getHtml('Upload'); ?></label>
<tr><td><input type="file" id="iUpload" form="fTask"><input form="fTask" type="hidden" name="type"><td>
</table>
</form>
</div>
</section>
</div>
</div>
</div>
<input type="radio" id="c-tab-5" name="tabular-2"<?= $this->request->uri->fragment === 'c-tab-5' ? ' checked' : ''; ?>>
<div class="tab">
<div class="row">
@ -263,24 +240,8 @@ echo $this->data['nav']->render(); ?>
</div>
</section>
</div>
<div class="col-xs-12 col-md-6">
<section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Media'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iMedia"><?= $this->getHtml('Media'); ?></label>
<tr><td><input type="text" id="iMedia"><td><button><?= $this->getHtml('Select'); ?></button>
<tr><td colspan="2"><label for="iUpload"><?= $this->getHtml('Upload'); ?></label>
<tr><td><input type="file" id="iUpload" form="fTask"><input form="fTask" type="hidden" name="type"><td>
</table>
</form>
</div>
</section>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>