post order
This commit is contained in:
parent
4666618151
commit
c540ccc28e
5 changed files with 38 additions and 37 deletions
|
|
@ -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>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue