render(path / name, child)
li {
- form(action = href(Root.Admin.Vfs.Upload(path.elements)), method = FormMethod.post, encType = FormEncType.multipartFormData) {
- installCsrfToken()
- label {
- fileInput(name = "uploaded")
- +"Upload File"
+ style = "list-style:none"
+
+ p {
+ form(action = href(Root.Admin.Vfs.Upload(path.elements)), method = FormMethod.post, encType = FormEncType.multipartFormData) {
+ installCsrfToken()
+ label {
+ fileInput(name = "uploaded")
+ +"Upload File"
+ }
+ submitInput()
}
- submitInput()
}
- }
-
- li {
- form(action = href(Root.Admin.Vfs.MkDir(path.elements)), method = FormMethod.post) {
- installCsrfToken()
- textInput {
- placeholder = "new-dir"
- }
- +Entities.nbsp
- submitInput {
- value = "Make Directory"
+
+ p {
+ form(action = href(Root.Admin.Vfs.MkDir(path.elements)), method = FormMethod.post) {
+ installCsrfToken()
+ textInput {
+ placeholder = "new-dir"
+ }
+ +Entities.nbsp
+ submitInput {
+ value = "Make Directory"
+ }
}
}
- }
-
- if (!path.isRoot)
- li {
- form(action = href(Root.Admin.Vfs.RmDirConfirmPage(path.elements)), method = FormMethod.get) {
- submitInput(classes = "evil") {
- value = "Delete (Recursive)"
+
+ if (!path.isRoot)
+ p {
+ form(action = href(Root.Admin.Vfs.RmDirConfirmPage(path.elements)), method = FormMethod.get) {
+ submitInput(classes = "evil") {
+ value = "Delete (Recursive)"
+ }
}
}
- }
+ }
}
context(ApplicationCall)