mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-10 20:56:50 +00:00
38 lines
715 B
Text
38 lines
715 B
Text
package view
|
|
|
|
import (
|
|
"github.com/rjNemo/rentease/config"
|
|
"github.com/rjNemo/rentease/internal/view/layout"
|
|
)
|
|
|
|
func makeItems() []string {
|
|
host := config.NewHost()
|
|
items := make([]string, 0, 2)
|
|
for _, i := range host.Items {
|
|
if i.Name == "T2" || i.Name == "T3" {
|
|
items = append(items, i.Name)
|
|
}
|
|
}
|
|
return items
|
|
}
|
|
|
|
var items = makeItems()
|
|
|
|
templ Index() {
|
|
@layout.PublicLayout() {
|
|
<section>
|
|
<h1>Reserver votre sejour des maintenant</h1>
|
|
<article>
|
|
@RequestBookingForm(&RequestBookingViewModel{
|
|
Item: "T2",
|
|
From: "",
|
|
To: "",
|
|
Name: "",
|
|
PhoneNumber: "",
|
|
Email: "",
|
|
Errors: nil,
|
|
})
|
|
</article>
|
|
</section>
|
|
}
|
|
}
|