mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-01-11 16:18:40 +00:00
75 lines
2.7 KiB
PHP
75 lines
2.7 KiB
PHP
<?php
|
|
/**
|
|
* Jingga
|
|
*
|
|
* PHP Version 8.2
|
|
*
|
|
* @package Modules\Organization
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
use phpOMS\Uri\UriFactory;
|
|
|
|
/**
|
|
* @var \phpOMS\Views\View $this
|
|
* @var \Modules\Organization\Models\Position;
|
|
*/
|
|
$position = $this->data['position'];
|
|
|
|
echo $this->data['nav']->render(); ?>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-6">
|
|
<div class="portlet">
|
|
<form id="iPosition" action="<?= UriFactory::build('{/api}organization/position?{?}'); ?>" method="POST">
|
|
<div class="portlet-head"><?= $this->getHtml('Position'); ?></div>
|
|
<div class="portlet-body">
|
|
<div class="form-group">
|
|
<label for="iName"><?= $this->getHtml('Name'); ?></label>
|
|
<input type="text" name="name" id="iName" value="<?= $this->printHtml($position->name); ?>">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="iParent"><?= $this->getHtml('Parent'); ?></label>
|
|
<?= $this->getData('position-selector')->render('iParent', 'parent', false); ?>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="iDepartment"><?= $this->getHtml('Department'); ?></label>
|
|
<?= $this->getData('department-selector')->render('iDepartment', 'department', false); ?>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="iStatus"><?= $this->getHtml('Status'); ?></label>
|
|
<select name="status" id="iStatus">
|
|
<option><?= $this->getHtml('Active'); ?>
|
|
<option><?= $this->getHtml('Inactive'); ?>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<?= $this->getData('editor')->render('position-editor'); ?>
|
|
</div>
|
|
|
|
<?= $this->getData('editor')->getData('text')->render(
|
|
'position-editor',
|
|
'description',
|
|
'iPosition',
|
|
$position->descriptionRaw,
|
|
$position->description
|
|
); ?>
|
|
</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('position-selector')->getData('position-selector-popup')->render(); ?>
|