feat: create space
This commit is contained in:
parent
8e952455cd
commit
775177cba1
11 changed files with 200 additions and 3 deletions
20
internal/ui/forms/create_space_success.templ
Normal file
20
internal/ui/forms/create_space_success.templ
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
package forms
|
||||
|
||||
import "git.juancwu.dev/juancwu/budgit/internal/ui/components/card"
|
||||
import "git.juancwu.dev/juancwu/budgit/internal/ui/components/button"
|
||||
import "git.juancwu.dev/juancwu/budgit/internal/routeurl"
|
||||
|
||||
templ CreateSpaceSuccess(spaceID string) {
|
||||
<div>
|
||||
@card.Card(card.Props{Class: "rounded-sm"}) {
|
||||
@card.Content(card.ContentProps{Class: "p-4"}) {
|
||||
<p class="text-xl text-success">Space successfully created!</p>
|
||||
}
|
||||
@card.Footer() {
|
||||
@button.Button(button.Props{Class: "w-full", Href: routeurl.URL("page.app.spaces.space.overview", "spaceID", spaceID)}) {
|
||||
Start tracking expenses
|
||||
}
|
||||
}
|
||||
}
|
||||
</div>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue