mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-01-17 18:58:40 +00:00
Update hard drive failure
This commit is contained in:
parent
ae336cfe4a
commit
8140f0708b
|
|
@ -216,7 +216,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1004703001, $request, $response));
|
||||
|
||||
$departmentMapper = new DepartmentMapper($this->app->dbPool->get());
|
||||
$view->addData('unit', $departmentMapper->get((int) $request->getData('id')));
|
||||
$view->addData('department', $departmentMapper->get((int) $request->getData('id')));
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
/**
|
||||
* @var \phpOMS\Views\View $this
|
||||
*/
|
||||
|
||||
$department = $this->getData('department');
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-33">
|
||||
<h1><?= $this->l11n->lang['Organization']['Position']; ?></h1>
|
||||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout wf-100">
|
||||
<tr><td><label for="iName"><?= $this->l11n->lang['Organization']['Name']; ?></label>
|
||||
<tr><td><input type="text" name="name" id="iName" value="<?= $department->getName(); ?>">
|
||||
<tr><td><label for="iParent"><?= $this->l11n->lang['Organization']['Parent']; ?></label>
|
||||
<tr><td><input type="text" name="parent" id="iParent" value="<?= $department->getParent(); ?>">
|
||||
<tr><td><label for="iStatus"><?= $this->l11n->lang['Organization']['Status']; ?></label>
|
||||
<tr><td><select name="status" id="iStatus">
|
||||
<option><?= $this->l11n->lang['Organization']['Active']; ?>
|
||||
<option><?= $this->l11n->lang['Organization']['Inactive']; ?>
|
||||
</select>
|
||||
<tr><td><label for="iDescription"><?= $this->l11n->lang['Organization']['Description']; ?></label>
|
||||
<tr><td><textarea name="description" id="iDescription"><?= $department->getDescription(); ?></textarea>
|
||||
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Save'] ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
Loading…
Reference in New Issue
Block a user