Most of the interface done
This commit is contained in:
parent
4eea7769ff
commit
be8ff3466a
32 changed files with 983 additions and 7 deletions
35
ui/src/routes/alarms/[kind]/[aid]/+page.svelte
Normal file
35
ui/src/routes/alarms/[kind]/[aid]/+page.svelte
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<script>
|
||||
import {
|
||||
Button,
|
||||
Col,
|
||||
Container,
|
||||
Row,
|
||||
Icon,
|
||||
} from 'sveltestrap';
|
||||
|
||||
import { page } from '$app/stores';
|
||||
|
||||
function slugToTitle(slug) {
|
||||
switch(slug) {
|
||||
case "manuals":
|
||||
return "Réveil manuel";
|
||||
case "usuals":
|
||||
return "Réveil habituel";
|
||||
case "excepts":
|
||||
return "Exception";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<Container fluid class="flex-fill">
|
||||
<h2 class="mb-0">
|
||||
{slugToTitle($page.params["kind"])} du ...
|
||||
</h2>
|
||||
{#if $page.params["kind"] == "manuals"}
|
||||
manuals
|
||||
{:else if $page.params["kind"] == "usuals"}
|
||||
ususlas
|
||||
{:else if $page.params["kind"] == "excepts"}
|
||||
excepts
|
||||
{/if}
|
||||
</Container>
|
||||
Loading…
Add table
Add a link
Reference in a new issue