tpl fixes, dont use printHtml for none-string types

This commit is contained in:
Dennis Eichhorn 2020-12-06 11:13:19 +01:00
parent e7ed48941c
commit 3279c46093
3 changed files with 5 additions and 5 deletions

View File

@ -1,13 +1,13 @@
<div class="ipt-wrap">
<div class="ipt-first">
<span class="input">
<div class="advancedSelect" id="<?= $this->printHtml($this->getId()); ?>"
<div class="advancedSelect" id="<?= $this->getId(); ?>"
data-search="true"
data-multiple="false"
data-src="api/admin/find/accgrp?search={!#i<?= $this->printHtml($this->getId()); ?>}">
data-src="api/admin/find/accgrp?search={!#i<?= $this->getId(); ?>}">
<template><!-- Template for the selected element --></template>
</div>
<div id="<?= $this->printHtml($this->getId()); ?>-dropdown" class="dropdown" data-active="true" data-selected="<?= $task->getStatus(); ?>">
<div id="<?= $this->getId(); ?>-dropdown" class="dropdown" data-active="true" data-selected="<?= $task->getStatus(); ?>">
<template class="rowTemplate"><!-- Template for remote data or data manually to be added --></template>
<tr><td data-value="<?= TaskStatus::OPEN; ?>"><?= $this->getHtml('S1'); ?>
<tr><td data-value="<?= TaskStatus::WORKING; ?>"><?= $this->getHtml('S2'); ?>

View File

@ -51,7 +51,7 @@ echo $this->getData('nav')->render(); ?>
</div>
<div class="portlet-foot">
<input id="iCreateSubmit" type="submit" value="<?= $this->getHtml('Create', '0', '0'); ?>">
<input type="hidden" name="type" value="<?= $this->printHtml(TaskType::SINGLE); ?>">
<input type="hidden" name="type" value="<?= TaskType::SINGLE; ?>">
</div>
</form>
</div>

View File

@ -64,7 +64,7 @@ echo $this->getData('nav')->render(); ?>
<?= $this->printHtml($task->getCreatedBy()->name1); ?> - <?= $this->printHtml($task->createdAt->format('Y/m/d H:i')); ?>
</span>
<span class="col-xs end-xs plain-grid">
<span id="task-status-badge" class="nobreak tag task-status-<?= $this->printHtml($task->getStatus()); ?>">
<span id="task-status-badge" class="nobreak tag task-status-<?= $task->getStatus(); ?>">
<?= $this->getHtml('S' . $task->getStatus()); ?>
</span>
</span>