Fix admin event list style
This commit is contained in:
parent
90ece46dd7
commit
13518f7fff
|
@ -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>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
|
||||
.event {
|
||||
display: grid;
|
||||
grid-template-columns: 90% 10%;
|
||||
grid-template-columns: auto 5em;
|
||||
|
||||
margin-bottom: 2em;
|
||||
padding-bottom: .5em;
|
||||
border-bottom: 1px dotted rgba(0,0,0,0.5);
|
||||
|
@ -46,12 +47,16 @@
|
|||
|
||||
.event-actions {
|
||||
grid-column: 2;
|
||||
text-align: center;
|
||||
text-align: right;
|
||||
}
|
||||
.event-actions .btn {
|
||||
margin: 0.3em 0;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.event-actions a {
|
||||
text-decoration: none;
|
||||
.fullwidth_inputs input,
|
||||
.fullwidth_inputs textarea {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.allgrids {
|
||||
|
|
Loading…
Reference in New Issue