Fix admin event list style

This commit is contained in:
2018-08-10 00:18:28 +02:00
parent 90ece46dd7
commit 13518f7fff
2 changed files with 13 additions and 9 deletions

View File

@@ -74,7 +74,7 @@ $events = array_values(array_filter(
<ul class="event-list">
<?php
$counter = 0;
$pageLimit = 4;
$pageLimit = 10;
for($i = ($pageLimit * ($page - 1)); $i < count($events) ;$i++){
if($counter == $pageLimit){
@@ -96,9 +96,8 @@ $events = array_values(array_filter(
</div>
<div class="event-actions">
<!-- emojis are for big boys -->
<?= '<a href="edit.php?id=' . $eventID . '">🖊</a>'; ?>
<?= '<a href="delete.php?id=' . $eventID . '" onclick="return confirm(\'Knallsikker? (ID: ' . $eventID . ')\');">🗑</a>'; ?>
<a class="btn" href="edit.php?id=<?= $eventID ?>">Rediger</a><br>
<a class="btn" href="delete.php?id=<?= $eventID ?>" onclick="return confirm('Knallsikker? (ID: <?= $eventID ?>)');">Slett</a>
</div>
</div>
</li>
@@ -137,4 +136,4 @@ $events = array_values(array_filter(
</div>
</div>
</main>
</body>
</body>