mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-02-14 13:48:40 +00:00
Use global namespace
This commit is contained in:
parent
72623910be
commit
fcdaeb776b
|
|
@ -52,7 +52,7 @@ final class ApiController extends Controller
|
||||||
$val = [];
|
$val = [];
|
||||||
if (($val['title'] = empty($request->getData('title')))
|
if (($val['title'] = empty($request->getData('title')))
|
||||||
|| ($val['plain'] = empty($request->getData('plain')))
|
|| ($val['plain'] = empty($request->getData('plain')))
|
||||||
|| ($val['due'] = !((bool) strtotime((string) $request->getData('due'))))
|
|| ($val['due'] = !((bool) \strtotime((string) $request->getData('due'))))
|
||||||
) {
|
) {
|
||||||
return $val;
|
return $val;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<option value="<?= $this->printHtml(TaskPriority::VHIGH); ?>"<?= $task->getPriority() === TaskPriority::VHIGH ? 'selected' : ''?>><?= $this->getHtml('P5') ?>
|
<option value="<?= $this->printHtml(TaskPriority::VHIGH); ?>"<?= $task->getPriority() === TaskPriority::VHIGH ? 'selected' : ''?>><?= $this->getHtml('P5') ?>
|
||||||
</select>
|
</select>
|
||||||
<tr><td><label for="iDue"><?= $this->getHtml('Due') ?></label>
|
<tr><td><label for="iDue"><?= $this->getHtml('Due') ?></label>
|
||||||
<tr><td><input type="datetime-local" id="iDue" name="due" value="<?= $this->printHtml(!empty($elements) ? end($elements)->getDue()->format('Y-m-d\TH:i:s') : $task->getDue()->format('Y-m-d\TH:i:s')); ?>">
|
<tr><td><input type="datetime-local" id="iDue" name="due" value="<?= $this->printHtml(!empty($elements) ? \end($elements)->getDue()->format('Y-m-d\TH:i:s') : $task->getDue()->format('Y-m-d\TH:i:s')); ?>">
|
||||||
<tr><td><label for="iStatus"><?= $this->getHtml('Status') ?></label>
|
<tr><td><label for="iStatus"><?= $this->getHtml('Status') ?></label>
|
||||||
<tr><td><select id="iStatus" name="status">
|
<tr><td><select id="iStatus" name="status">
|
||||||
<option value="<?= $this->printHtml(TaskStatus::OPEN); ?>"<?= $task->getStatus() === TaskStatus::OPEN ? 'selected' : ''?>>Open
|
<option value="<?= $this->printHtml(TaskStatus::OPEN); ?>"<?= $task->getStatus() === TaskStatus::OPEN ? 'selected' : ''?>>Open
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user