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() { @if open_shift.is_some() {
<div hx-boost="true"> <div hx-boost="true">
<a href="/shifts/@open_shift.unwrap().id/drinks"> <a href="/shifts/@open_shift.unwrap().id/drinks">
<button>Drinks</button> <button type="button">Drinks</button>
</a> </a>
</div> </div>
} }
<div hx-boost="true"> <div hx-boost="true">
<a href="/management"> <a href="/management">
<button>Management</button> <button type="button">Management</button>
</a> </a>
</div> </div>
</main> </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 style="display: flex; gap: 2rem;">
<div hx-boost="true"> <div hx-boost="true">
<a href="/"> <a href="/">
<button>Return to Main Page</button> <button type="button">Return to Main Page</button>
</a> </a>
</div> </div>
<div hx-boost="true"> <div hx-boost="true">
<a href="/shift_reports"> <a href="/shift_reports">
<button>Return to Shift Reports</button> <button type="button">Return to Shift Reports</button>
</a> </a>
</div> </div>
</div> </div>

View File

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