fix footer of task elements

This commit is contained in:
Dennis Eichhorn 2020-06-10 21:53:56 +02:00
parent 10dc5af2bb
commit c3ae9923a4

View File

@ -198,9 +198,13 @@ echo $this->getData('nav')->render(); ?>
<?php endif; ?> <?php endif; ?>
<?php $elementMedia = $element->getMedia();
if (!empty($elementMedia)
|| ($task->isEditable()
&& $this->request->getHeader()->getAccount() === $element->getCreatedBy()->getId())
) : ?>
<div class="portlet-foot row middle-xs"> <div class="portlet-foot row middle-xs">
<?php $elementMedia = $element->getMedia(); <?php if (!empty($elementMedia)) : ?>
if (!empty($elementMedia)) : ?>
<div> <div>
<?php foreach ($elementMedia as $media) : ?> <?php foreach ($elementMedia as $media) : ?>
<span><?= $media->getName(); ?></span> <span><?= $media->getName(); ?></span>
@ -237,6 +241,8 @@ echo $this->getData('nav')->render(); ?>
<button class="update"><?= $this->getHtml('Edit', '0', '0') ?></button> <button class="update"><?= $this->getHtml('Edit', '0', '0') ?></button>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div>
<?php endif; ?>
</section> </section>
<?php endif; ?> <?php endif; ?>