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">
|
<ul class="event-list">
|
||||||
<?php
|
<?php
|
||||||
$counter = 0;
|
$counter = 0;
|
||||||
$pageLimit = 4;
|
$pageLimit = 10;
|
||||||
|
|
||||||
for($i = ($pageLimit * ($page - 1)); $i < count($events) ;$i++){
|
for($i = ($pageLimit * ($page - 1)); $i < count($events) ;$i++){
|
||||||
if($counter == $pageLimit){
|
if($counter == $pageLimit){
|
||||||
|
@ -96,9 +96,8 @@ $events = array_values(array_filter(
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="event-actions">
|
<div class="event-actions">
|
||||||
<!-- emojis are for big boys -->
|
<a class="btn" href="edit.php?id=<?= $eventID ?>">Rediger</a><br>
|
||||||
<?= '<a href="edit.php?id=' . $eventID . '">🖊</a>'; ?>
|
<a class="btn" href="delete.php?id=<?= $eventID ?>" onclick="return confirm('Knallsikker? (ID: <?= $eventID ?>)');">Slett</a>
|
||||||
<?= '<a href="delete.php?id=' . $eventID . '" onclick="return confirm(\'Knallsikker? (ID: ' . $eventID . ')\');">🗑</a>'; ?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
@ -137,4 +136,4 @@ $events = array_values(array_filter(
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -16,7 +16,8 @@
|
||||||
|
|
||||||
.event {
|
.event {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 90% 10%;
|
grid-template-columns: auto 5em;
|
||||||
|
|
||||||
margin-bottom: 2em;
|
margin-bottom: 2em;
|
||||||
padding-bottom: .5em;
|
padding-bottom: .5em;
|
||||||
border-bottom: 1px dotted rgba(0,0,0,0.5);
|
border-bottom: 1px dotted rgba(0,0,0,0.5);
|
||||||
|
@ -46,12 +47,16 @@
|
||||||
|
|
||||||
.event-actions {
|
.event-actions {
|
||||||
grid-column: 2;
|
grid-column: 2;
|
||||||
text-align: center;
|
text-align: right;
|
||||||
|
}
|
||||||
|
.event-actions .btn {
|
||||||
|
margin: 0.3em 0;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.event-actions a {
|
.fullwidth_inputs input,
|
||||||
text-decoration: none;
|
.fullwidth_inputs textarea {
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.allgrids {
|
.allgrids {
|
||||||
|
|
Loading…
Reference in New Issue