post order

This commit is contained in:
bronku 2026-06-16 16:54:35 +02:00
parent 4666618151
commit c540ccc28e
5 changed files with 38 additions and 37 deletions

View file

@ -2,17 +2,11 @@ package templates
import "strconv"
templ Confirmation(title string, id int) {
@Layout(title, ConfirmationBody(id))
}
templ ConfirmationBody(id int) {
<section class="confirmation">
<span class="material-symbols-outlined success-icon">check_circle</span>
<h2>{ strconv.Itoa(id) } — zapisano</h2>
<a href="/orders" class="btn btn-primary">
<span class="material-symbols-outlined">arrow_back</span>
Powrót do zamówień
</a>
</section>
templ Confirmation(id int) {
<span class="material-symbols-outlined success-icon">check_circle</span>
<h2>{ strconv.Itoa(id) } — zapisano</h2>
<a href="/orders" class="btn btn-primary">
<span class="material-symbols-outlined">arrow_back</span>
Powrót do zamówień
</a>
}