fix: change "Dashboard" to "Overview" in space overview page
This commit is contained in:
parent
18af2b73da
commit
4f1a5747db
1 changed files with 11 additions and 9 deletions
|
|
@ -10,11 +10,11 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
templ SpaceDashboardPage(space *model.Space, lists []*model.ShoppingList, tags []*model.Tag) {
|
templ SpaceDashboardPage(space *model.Space, lists []*model.ShoppingList, tags []*model.Tag) {
|
||||||
@layouts.Space("Dashboard", space) {
|
@layouts.Space("Overview", space) {
|
||||||
<div class="space-y-4">
|
<div class="space-y-4">
|
||||||
<div class="flex justify-between items-center">
|
<div class="flex justify-between items-center">
|
||||||
<h1 class="text-2xl font-bold">Welcome to { space.Name }!</h1>
|
<h1 class="text-2xl font-bold">Welcome to { space.Name }!</h1>
|
||||||
@dialog.Dialog(dialog.Props{ ID: "invite-member-dialog" }) {
|
@dialog.Dialog(dialog.Props{ID: "invite-member-dialog"}) {
|
||||||
@dialog.Trigger() {
|
@dialog.Trigger() {
|
||||||
@button.Button() {
|
@button.Button() {
|
||||||
Invite Member
|
Invite Member
|
||||||
|
|
@ -22,7 +22,9 @@ templ SpaceDashboardPage(space *model.Space, lists []*model.ShoppingList, tags [
|
||||||
}
|
}
|
||||||
@dialog.Content() {
|
@dialog.Content() {
|
||||||
@dialog.Header() {
|
@dialog.Header() {
|
||||||
@dialog.Title() { Invite Member }
|
@dialog.Title() {
|
||||||
|
Invite Member
|
||||||
|
}
|
||||||
@dialog.Description() {
|
@dialog.Description() {
|
||||||
Send an invitation email to add a new member to this space.
|
Send an invitation email to add a new member to this space.
|
||||||
}
|
}
|
||||||
|
|
@ -36,14 +38,14 @@ templ SpaceDashboardPage(space *model.Space, lists []*model.ShoppingList, tags [
|
||||||
<div>
|
<div>
|
||||||
<label for="email" class="label">Email Address</label>
|
<label for="email" class="label">Email Address</label>
|
||||||
@input.Input(input.Props{
|
@input.Input(input.Props{
|
||||||
Name: "email",
|
Name: "email",
|
||||||
ID: "email",
|
ID: "email",
|
||||||
Type: "email",
|
Type: "email",
|
||||||
Attributes: templ.Attributes{"required": "true"},
|
Attributes: templ.Attributes{"required": "true"},
|
||||||
})
|
})
|
||||||
</div>
|
</div>
|
||||||
<div class="flex justify-end">
|
<div class="flex justify-end">
|
||||||
@button.Button(button.Props{ Type: button.TypeSubmit }) {
|
@button.Button(button.Props{Type: button.TypeSubmit}) {
|
||||||
Send Invitation
|
Send Invitation
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -51,7 +53,6 @@ templ SpaceDashboardPage(space *model.Space, lists []*model.ShoppingList, tags [
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||||
// Shopping Lists section
|
// Shopping Lists section
|
||||||
<div class="border rounded-lg p-4">
|
<div class="border rounded-lg p-4">
|
||||||
|
|
@ -82,4 +83,5 @@ templ SpaceDashboardPage(space *model.Space, lists []*model.ShoppingList, tags [
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue