2024-11-06 13:32:51 -05:00
|
|
|
package modals
|
2024-10-11 16:47:52 -04:00
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/labstack/echo/v4"
|
2024-11-06 13:32:51 -05:00
|
|
|
"github.com/onsonr/sonr/pkg/nebula/auth"
|
2024-10-11 16:47:52 -04:00
|
|
|
"github.com/onsonr/sonr/pkg/nebula/global/styles"
|
|
|
|
|
)
|
|
|
|
|
|
2024-10-23 09:52:07 -04:00
|
|
|
// RegisterModal returns the Register Modal.
|
2024-10-11 16:47:52 -04:00
|
|
|
templ RegisterModal(c echo.Context) {
|
|
|
|
|
@styles.OpenModal("Account Registration", "Enter your account information below to create your account.") {
|
2024-11-06 13:32:51 -05:00
|
|
|
@auth.RegisterStart()
|
2024-10-11 16:47:52 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-23 09:52:07 -04:00
|
|
|
// LoginModal returns the Login Modal.
|
2024-10-11 16:47:52 -04:00
|
|
|
templ LoginModal(c echo.Context) {
|
|
|
|
|
@styles.OpenModal("Account Registration", "Enter your account information below to create your account.") {
|
2024-11-06 13:32:51 -05:00
|
|
|
@auth.LoginStart()
|
2024-10-11 16:47:52 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-23 09:52:07 -04:00
|
|
|
// AuthorizeModal returns the Authorize Modal.
|
2024-10-11 16:47:52 -04:00
|
|
|
templ AuthorizeModal(c echo.Context) {
|
|
|
|
|
@styles.OpenModal("Account Registration", "Enter your account information below to create your account.") {
|
2024-11-06 13:32:51 -05:00
|
|
|
@auth.AuthorizeStart()
|
2024-10-11 16:47:52 -04:00
|
|
|
}
|
|
|
|
|
}
|