type="button"

main
Zynh0722 2023-11-05 07:03:15 -08:00
parent a366d23aee
commit 746250f876
5 changed files with 28 additions and 10 deletions

View File

@ -10,13 +10,13 @@
@if open_shift.is_some() {
<div hx-boost="true">
<a href="/shifts/@open_shift.unwrap().id/drinks">
<button>Drinks</button>
<button type="button">Drinks</button>
</a>
</div>
}
<div hx-boost="true">
<a href="/management">
<button>Management</button>
<button type="button">Management</button>
</a>
</div>
</main>

View File

@ -0,0 +1,7 @@
@()
<div hx-boost="true">
<a href="/">
<button type="button">Return to Main Page</button>
</a>
</div>

14
templates/dancers.rs.html Normal file
View File

@ -0,0 +1,14 @@
@use super::base_html;
@use super::components::return_to_main_html;
@()
@:base_html({
@:return_to_main_html()
<div>
I have no dancers to show you :(
</div>
})

View File

@ -9,12 +9,12 @@
<div style="display: flex; gap: 2rem;">
<div hx-boost="true">
<a href="/">
<button>Return to Main Page</button>
<button type="button">Return to Main Page</button>
</a>
</div>
<div hx-boost="true">
<a href="/shift_reports">
<button>Return to Shift Reports</button>
<button type="button">Return to Shift Reports</button>
</a>
</div>
</div>

View File

@ -1,15 +1,12 @@
@use super::base_html;
@use super::components::return_to_main_html;
@use cm_lib::models::Shift;
@(shifts: Vec<Shift>)
@:base_html({
<div hx-boost="true">
<a href="/">
<button>Return to Main Page</button>
</a>
</div>
@:return_to_main_html()
<table>
<thead>
@ -34,7 +31,7 @@
</td>
<td hx-boost="true">
<a href="/shifts/@shift.id/report">
<button>View Shift</button>
<button type="button">View Shift</button>
</a>
</td>
</tr>