Compare commits
No commits in common. "cb1a1e6f9d877b8556de8a8bcf5ab2bd9e61df7a" and "25a3d87c0c6ddc873af01560ee1d5cbc12b03056" have entirely different histories.
cb1a1e6f9d
...
25a3d87c0c
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
@(open_shift: &Shift)
|
@(open_shift: &Shift)
|
||||||
|
|
||||||
<button hx-post="/api/shifts/@open_shift.id/close" hx-swap="outerHTML" hx-target="body" type="button" class="focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2">
|
<button hx-post="/api/shifts/@open_shift.id/close" hx-swap="outerHTML" hx-target="body" type="button">
|
||||||
Close Shift
|
Close Shift
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -9,13 +9,13 @@
|
||||||
</div>
|
</div>
|
||||||
@if open_shift.is_some() {
|
@if open_shift.is_some() {
|
||||||
<div hx-boost="true" class="flex justify-center items-center">
|
<div hx-boost="true" class="flex justify-center items-center">
|
||||||
<a href="/shifts/@open_shift.unwrap().id/drinks" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 " >
|
<a href="/shifts/@open_shift.unwrap().id/drinks">
|
||||||
<button type="button">Drinks</button>
|
<button type="button">Drinks</button>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
<div hx-boost="true" class="flex justify-center items-center">
|
<div hx-boost="true" class="flex justify-center items-center">
|
||||||
<a href="/management" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 ">
|
<a href="/management">
|
||||||
<button type="button">Management</button>
|
<button type="button">Management</button>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
@()
|
@()
|
||||||
|
|
||||||
<button hx-post="/api/shifts/open" hx-swap="outerHTML" hx-target="body" type="button" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 ">
|
<button hx-post="/api/shifts/open" hx-swap="outerHTML" hx-target="body" type="button">
|
||||||
Open Shift
|
Open Shift
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
Dancers
|
Dancers
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<form hx-post="/api/dancers" hx-target="find #dancer_list" hx-swap="beforeend" hx-on::after-request="if(event.detail.successful) this.reset()">
|
<form hx-post="/api/dancers" hx-target="find #dancer_list" hx-swap="afterend" hx-on::after-request="if(event.detail.successful) this.reset()">
|
||||||
<table class="m-auto table-auto w-4/5">
|
<table class="m-auto table-auto w-4/5">
|
||||||
<thead class="text-xs text-gray-700 bg-gray-50">
|
<thead class="text-xs text-gray-700 bg-gray-50">
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in New Issue