Skip to content
Snippets Groups Projects
Commit 37ffd27f authored by Murtaza Sultani's avatar Murtaza Sultani
Browse files

Add new category link by card layout

parent 2342c8c7
No related branches found
No related tags found
No related merge requests found
...@@ -93,6 +93,7 @@ ...@@ -93,6 +93,7 @@
padding: 15px; padding: 15px;
justify-content: space-between; justify-content: space-between;
border: thin solid #D8D8D8; border: thin solid #D8D8D8;
max-width: calc(48em - 30px);
.icon { .icon {
border-radius: 5px; border-radius: 5px;
...@@ -138,6 +139,12 @@ ...@@ -138,6 +139,12 @@
transition: all .2s ease-in-out; transition: all .2s ease-in-out;
overflow: hidden; overflow: hidden;
&.--new {
justify-content: center;
align-items: center;
border-style: dashed;
}
&:hover, &:hover,
&:focus, &:focus,
&:active { &:active {
......
...@@ -18,7 +18,11 @@ ...@@ -18,7 +18,11 @@
<tbody> <tbody>
<tr> <tr>
<td><strong><?= _('Name') ?></strong></td> <td><strong><?= _('Name') ?></strong></td>
<td><?= htmlReady($booking->user->getFullName()) ?></td> <td>
<a href="<?= URLHelper::getLink('dispatch.php/profile', ['username' => $booking->user->username], true) ?>" title="<?= _('Zum Profil') ?>">
<?= htmlReady($booking->user->getFullName()) ?>
</a>
</td>
</tr> </tr>
<tr class="use-utility-classes"> <tr class="use-utility-classes">
<td class="border-b-0"><strong><?= _('Bemerkung') ?></strong></td> <td class="border-b-0"><strong><?= _('Bemerkung') ?></strong></td>
......
...@@ -68,7 +68,9 @@ ...@@ -68,7 +68,9 @@
</td> </td>
<? if ($is_admin) : ?> <? if ($is_admin) : ?>
<td> <td>
<?= htmlReady($booking['vorname'].' '.$booking['nachname']) ?> <a href="<?= URLHelper::getLink('dispatch.php/profile', ['username' => $booking->user->username], true) ?>" title="<?= _('Zum Profil') ?>">
<?= htmlReady($booking->user->getFullName()) ?>
</a>
</td> </td>
<? endif ?> <? endif ?>
<td data-sort-value="<?= $booking['begin'] ?>"> <td data-sort-value="<?= $booking['begin'] ?>">
......
...@@ -18,7 +18,11 @@ ...@@ -18,7 +18,11 @@
<tbody> <tbody>
<tr> <tr>
<td><strong><?= _('Name') ?></strong></td> <td><strong><?= _('Name') ?></strong></td>
<td><?= htmlReady($booking->user->getFullName()) ?></td> <td>
<a href="<?= URLHelper::getLink('dispatch.php/profile', ['username' => $booking->user->username], true) ?>" title="<?= _('Zum Profil') ?>">
<?= htmlReady($booking->user->getFullName()) ?>
</a>
</td>
</tr> </tr>
<tr class="use-utility-classes"> <tr class="use-utility-classes">
<td class="border-b-0"><strong><?= _('Bemerkung') ?></strong></td> <td class="border-b-0"><strong><?= _('Bemerkung') ?></strong></td>
......
...@@ -80,6 +80,15 @@ ...@@ -80,6 +80,15 @@
</div> </div>
</li> </li>
<? endforeach ?> <? endforeach ?>
<li>
<a
class="category-card --new"
href="<?= $controller->url_for('categories/edit') ?>"
title="<?= _('Neue Kategorie anlegen') ?>"
data-dialog="width=700">
<?= Icon::create('add', 'clickable') ?>
</a>
</li>
</ul> </ul>
<? else : ?> <? else : ?>
<table class="default sortable-table"> <table class="default sortable-table">
...@@ -87,8 +96,8 @@ ...@@ -87,8 +96,8 @@
<?= _('Kategorien') ?> <?= _('Kategorien') ?>
<? if ($is_admin): ?> <? if ($is_admin): ?>
<span class="actions"> <span class="actions">
<a href="<?= $controller->url_for('categories/edit') ?>" data-dialog="width=700"> <a href="<?= $controller->url_for('categories/edit') ?>" data-dialog="width=700" title="<?= _('Neue Kategorie anlegen') ?>">
<?= Icon::create('add', 'clickable', ['title' => _('Neue Kategorie anlegen')]) ?> <?= Icon::create('add', 'clickable') ?>
</a> </a>
</span> </span>
<? endif ?> <? endif ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment