Fix tables

This commit is contained in:
Dennis Eichhorn 2017-11-08 21:01:09 +01:00
parent 621454b04d
commit bf44c6e70b
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ $newsList = $this->getData('news');
<tr>
<td>
<td><?= $this->getHtml('Type', 'News') ?>
<td class="wf-100"><?= $this->getHtml('Title', 'News') ?>
<td><?= $this->getHtml('Title', 'News') ?>
<tbody>
<?php $count = 0; foreach ($newsList as $key => $news) : $count++;
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/news/article?{?}&id=' . $news->getId());

View File

@ -40,7 +40,7 @@ echo $this->getData('nav')->render(); ?>
elseif ($news->getType() === \Modules\News\Models\NewsType::LINK) { $color = 'yellow'; }
?>
<tr data-href="<?= $url; ?>">
<td data-label=""><a href="<?= $url; ?>"><?= $news->isFeatured() ? '<i class="fa fa-star favorite"></i>' : ''; ?></a>
<td><a href="<?= $url; ?>"><?= $news->isFeatured() ? '<i class="fa fa-star favorite"></i>' : ''; ?></a>
<td data-label="<?= $this->getHtml('Type') ?>"><a href="<?= $url; ?>"><span class="tag <?= $this->printHtml($color); ?>"><?= $this->getHtml('TYPE' . $news->getType()) ?></span></a>
<td data-label="<?= $this->getHtml('Title') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($news->getTitle()); ?></a>
<td data-label="<?= $this->getHtml('Author') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($news->getCreatedBy()->getName1()); ?></a>