feat: Mostly working user view with elementary html.
This commit is contained in:
@@ -7,3 +7,14 @@ struct ToggleFormButton: HTML {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum Button {
|
||||
|
||||
static func danger<C: HTML>(@HTMLBuilder body: () -> C) -> some HTML<HTMLTag.button> {
|
||||
button(.class("danger")) { body() }
|
||||
}
|
||||
|
||||
static func close(id: String) -> some HTML<HTMLTag.button> {
|
||||
button(.class("btn-add"), .on(.click, "toggleContent('\(id)')")) { "x" }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user