mirror of
https://github.com/Karaka-Management/oms-RiskManagement.git
synced 2026-01-10 19:08:40 +00:00
general fixes
This commit is contained in:
parent
08c155604d
commit
bd9e08010c
|
|
@ -15,7 +15,6 @@ declare(strict_types=1);
|
|||
use Modules\Organization\Models\NullDepartment;
|
||||
|
||||
$departments = $this->data['departments'] ?? new NullDepartment();
|
||||
$isNew = $departments->id === 0;
|
||||
|
||||
echo $this->data['nav']->render(); ?>
|
||||
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ echo $this->data['nav']->render();
|
|||
<tr 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'); ?>
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ echo $this->data['nav']->render(); ?>
|
|||
<option value="">
|
||||
<?php
|
||||
foreach ($this->data['categories'] as $category) : ?>
|
||||
<option value="<?= $category->id; ?>"<?= $category->id === $risk->category->id ? ' selected' : ''; ?>><?= $this->printHtml($category->getL11n()); ?>
|
||||
<option value="<?= $category->id; ?>"<?= $category->id === $risk->category?->id ? ' selected' : ''; ?>><?= $this->printHtml($category->getL11n()); ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
|
@ -82,7 +82,7 @@ echo $this->data['nav']->render(); ?>
|
|||
<option value="">
|
||||
<?php
|
||||
foreach ($this->data['departments'] as $department) : ?>
|
||||
<option value="<?= $department->id; ?>"<?= $department->id === $risk->department->id ? ' selected' : ''; ?>><?= $this->printHtml($department->name); ?>
|
||||
<option value="<?= $department->id; ?>"<?= $department->id === $risk->department?->id ? ' selected' : ''; ?>><?= $this->printHtml($department->name); ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
|
@ -93,7 +93,7 @@ echo $this->data['nav']->render(); ?>
|
|||
<option value="">
|
||||
<?php
|
||||
foreach ($this->data['processes'] as $process) : ?>
|
||||
<option value="<?= $process->id; ?>"<?= $process->id === $risk->process->id ? ' selected' : ''; ?>><?= $this->printHtml($process->title); ?>
|
||||
<option value="<?= $process->id; ?>"<?= $process->id === $risk->process?->id ? ' selected' : ''; ?>><?= $this->printHtml($process->title); ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user