mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-01-29 16:18:39 +00:00
62 lines
2.6 KiB
PHP
Executable File
62 lines
2.6 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.4
|
|
*
|
|
* @package Modules\Organization
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://orange-management.org
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
use phpOMS\Uri\UriFactory;
|
|
|
|
/**
|
|
* @var \phpOMS\Views\View $this
|
|
* @var \Mouldes\Organization\Models $department;
|
|
*/
|
|
$department = $this->getData('department');
|
|
|
|
echo $this->getData('nav')->render(); ?>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-6">
|
|
<div class="portlet">
|
|
<form id="iDepartment" action="<?= UriFactory::build('{/api}organization/department?{?}') ?>" method="POST">
|
|
<div class="portlet-head"><?= $this->getHtml('Department') ?></div>
|
|
<div class="portlet-body">
|
|
<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($department->getName()); ?>">
|
|
<tr><td><label for="iParent"><?= $this->getHtml('Parent') ?></label>
|
|
<tr><td><?= $this->getData('department-selector')->render('iParent', 'parent', false); ?>
|
|
<tr><td><label for="iUnit"><?= $this->getHtml('Unit') ?></label>
|
|
<tr><td><?= $this->getData('unit-selector')->render('iUnit', 'unit', false); ?>
|
|
<tr><td><label for="iStatus"><?= $this->getHtml('Status') ?></label>
|
|
<tr><td><select name="status" id="iStatus">
|
|
<option><?= $this->getHtml('Active') ?>
|
|
<option><?= $this->getHtml('Inactive') ?>
|
|
</select>
|
|
<tr><td><?= $this->getData('editor')->render('department-editor'); ?>
|
|
<tr><td><?= $this->getData('editor')->getData('text')->render(
|
|
'department-editor',
|
|
'description',
|
|
'iDepartment',
|
|
$department->getDescriptionRaw(),
|
|
$department->getDescription()
|
|
); ?>
|
|
</table>
|
|
</div>
|
|
<div class="portlet-foot">
|
|
<input id="iSubmit" name="submit" type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?= $this->getData('department-selector')->getData('department-selector-popup')->render(); ?>
|