WIP: Adds a modal form view and integrates into current forms.
This commit is contained in:
@@ -4,17 +4,10 @@ import ManualDCore
|
||||
import Styleguide
|
||||
|
||||
struct ComponentLossForm: HTML, Sendable {
|
||||
let dismiss: Bool
|
||||
|
||||
var body: some HTML {
|
||||
div(
|
||||
.id("componentLossForm"),
|
||||
.class(
|
||||
"""
|
||||
fixed top-40 left-[25vw] w-1/2 z-50 text-gray-800
|
||||
bg-gray-200 border border-gray-400
|
||||
rounded-lg shadow-lg mx-10
|
||||
"""
|
||||
)
|
||||
) {
|
||||
ModalForm(id: "componentLossForm", dismiss: dismiss) {
|
||||
h1(.class("text-2xl font-bold")) { "Component Loss" }
|
||||
form(.class("space-y-4 p-4")) {
|
||||
div {
|
||||
|
||||
Reference in New Issue
Block a user