feat: Adds update and delete routes to room.
This commit is contained in:
@@ -14,3 +14,18 @@ extension HTMLAttribute where Tag == HTMLTag.form {
|
||||
action(SiteRoute.View.router.path(for: route))
|
||||
}
|
||||
}
|
||||
|
||||
extension HTMLAttribute where Tag == HTMLTag.input {
|
||||
|
||||
public static func value(_ string: String?) -> Self {
|
||||
value(string ?? "")
|
||||
}
|
||||
|
||||
public static func value(_ int: Int?) -> Self {
|
||||
value(int == nil ? "" : "\(int!)")
|
||||
}
|
||||
|
||||
public static func value(_ double: Double?) -> Self {
|
||||
value(double == nil ? "" : "\(double!)")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user