feat: create accounts
This commit is contained in:
parent
0fc1fe371c
commit
0baacb4b28
5 changed files with 173 additions and 2 deletions
24
internal/ui/pages/space_create_account.templ
Normal file
24
internal/ui/pages/space_create_account.templ
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
package pages
|
||||
|
||||
import "git.juancwu.dev/juancwu/budgit/internal/ui/forms"
|
||||
import "git.juancwu.dev/juancwu/budgit/internal/ui/layouts"
|
||||
|
||||
type SpaceCreateAccountPageProps struct {
|
||||
SpaceID string
|
||||
SpaceName string
|
||||
Form forms.CreateAccountProps
|
||||
}
|
||||
|
||||
templ SpaceCreateAccountPage(props SpaceCreateAccountPageProps) {
|
||||
@layouts.App("Create Account", spaceOverviewSidebarContent(), spaceSpecificSidebarContent(props.SpaceID)) {
|
||||
<div class="container max-w-3xl px-6 py-8 mx-auto space-y-8">
|
||||
<div>
|
||||
<h1 class="text-3xl font-bold">Create Account</h1>
|
||||
<p class="text-muted-foreground mt-2">
|
||||
Add a new account to { props.SpaceName }.
|
||||
</p>
|
||||
</div>
|
||||
@forms.CreateAccount(props.Form)
|
||||
</div>
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue