mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-01-17 10:48:40 +00:00
54 lines
2.6 KiB
PHP
54 lines
2.6 KiB
PHP
<?php declare(strict_types=1);
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.2
|
|
*
|
|
* @package TBD
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://website.orange-management.de
|
|
*/
|
|
/**
|
|
* @var \phpOMS\Views\View $this
|
|
* @var \Modules\Organization\Models\Unit $unit;
|
|
*/
|
|
$unit = $this->getData('unit');
|
|
|
|
echo $this->getData('nav')->render(); ?>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-6">
|
|
<section class="box wf-100">
|
|
<header><h1><?= $this->getHtml('Unit') ?></h1></header>
|
|
<div class="inner">
|
|
<form id="iUnit" action="<?= \phpOMS\Uri\UriFactory::build('{/api}organization/unit') ?>" method="post">
|
|
<table class="layout wf-100" style="table-layout: fixed">
|
|
<tr><td><label for="iName"><?= $this->getHtml('Name') ?></label>
|
|
<tr><td><input type="text" name="name" id="iName" value="<?= $this->printHtml($unit->getName()); ?>">
|
|
<tr><td><label for="iParent"><?= $this->getHtml('Parent') ?></label>
|
|
<tr><td><?= $this->getData('unit-selector')->render('iParent', false); ?>
|
|
<tr><td><label for="iStatus"><?= $this->getHtml('Status') ?></label>
|
|
<tr><td><select name="status" id="iStatus">
|
|
<option value="<?= $this->printHtml(\Modules\Organization\Models\Status::ACTIVE); ?>"<?= \Modules\Organization\Models\Status::ACTIVE === $unit->getStatus() ? ' selected' : ''; ?>><?= $this->getHtml('Active') ?>
|
|
<option value="<?= $this->printHtml(\Modules\Organization\Models\Status::INACTIVE); ?>"<?= \Modules\Organization\Models\Status::INACTIVE === $unit->getStatus() ? ' selected' : ''; ?>><?= $this->getHtml('Inactive') ?>
|
|
</select>
|
|
<tr><td><?= $this->getData('editor')->render('unit-editor'); ?>
|
|
<tr><td><?= $this->getData('editor')->getData('text')->render(
|
|
'unit-editor',
|
|
'description',
|
|
'iUnit',
|
|
$unit->getDescriptionRaw(),
|
|
$unit->getDescription()
|
|
); ?>
|
|
<tr><td><input id="iSubmit" name="submit" type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
|
|
<?= $this->getData('unit-selector')->getData('unit-selector-popup')->render(); ?>
|