-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3aff55
commit ab99675
Showing
12 changed files
with
175 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
restrict_access(); | ||
$user_id = User::getCurrent()->id; | ||
$event = EventService::getEventWithAllData(get_route_param('event_id'), $user_id); | ||
|
||
$vehicles = em()->createQuery('SELECT v FROM Vehicle v WHERE v.event = ?1')->setParameter( | ||
1, | ||
$event->id | ||
)->getResult(); | ||
|
||
?> | ||
|
||
<?php foreach ($vehicles as $vehicle): ?> | ||
<div hx-get="/evenements/<?= $event->id ?>/vehicule/<?= $vehicle->id ?>/inscription/<?= $user_id ?>" hx-trigger="load" | ||
hx-target="this"> | ||
</div> | ||
<?php endforeach ?> | ||
|
||
<a role=button class="secondary" href="/evenements/<?= $event->id ?>/vehicule/nouveau"> | ||
<i class="fas fa-plus"></i> Ajouter un véhicule</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,16 @@ | |
// These scripts load shoelace from CDN. The files should be cached forever so it is very convenient. | ||
|
||
?> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/cdn/themes/light.css" /> | ||
<link rel="stylesheet" media="(prefers-color-scheme:light)" | ||
href="https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/cdn/themes/light.css" /> | ||
<link rel="stylesheet" media="(prefers-color-scheme:dark)" | ||
href="https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/cdn/themes/dark.css" | ||
onload="document.documentElement.classList.add('sl-theme-dark');" /> | ||
<script type="module"> | ||
// Import all shoelace components here | ||
import 'https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/cdn/components/copy-button/copy-button.js'; | ||
import 'https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/cdn/components/tooltip/tooltip.js'; | ||
import 'https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/cdn/components/tab-group/tab-group.js'; | ||
import 'https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/cdn/components/tab/tab.js'; | ||
import 'https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected]/cdn/components/tab-panel/tab-panel.js'; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
.tab-list { | ||
border-bottom: solid var(--contrast) 2px; | ||
white-space: nowrap; | ||
overflow-x: auto; | ||
} | ||
.tab-list > button { | ||
margin: 0; | ||
border-radius: 1rem 1rem 0 0; | ||
border-bottom: none; | ||
margin: 0.1rem; | ||
border-radius: 1.5rem; | ||
} | ||
.filter-panel { | ||
padding: 1rem; | ||
} | ||
|
||
.entries-header { | ||
display: grid; | ||
justify-items: end; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.