luci-app-filetransfer: code alignment

This commit is contained in:
Beginner-Go 2022-06-06 16:20:08 +00:00
parent db827a3078
commit 74ecb1934e
2 changed files with 7 additions and 1 deletions

View File

@ -9,5 +9,5 @@ module("luci.controller.filetransfer", package.seeall)
function index()
entry({"admin", "system", "filetransfer"}, form("filetransfer"), _("FileTransfer"), 89)
entry({"admin", "system", "filetransfer"}, form("filetransfer"), _("FileTransfer"), 89).dependent = true
end

View File

@ -6,17 +6,22 @@ ful.reset = false
ful.submit = false
sul = ful:section(SimpleSection, "", translate("Upload file to '/tmp/upload/'"))
fu = sul:option(FileUpload, "")
fu.template = "filetransfer/other_upload"
um = sul:option(DummyValue, "", nil)
um.template = "filetransfer/other_dvalue"
fdl = SimpleForm("download", translate("Download"), nil)
fdl.reset = false
fdl.submit = false
sdl = fdl:section(SimpleSection, "", translate("Download file"))
fd = sdl:option(FileUpload, "")
fd.template = "filetransfer/other_download"
dm = sdl:option(DummyValue, "", nil)
dm.template = "filetransfer/other_dvalue"
@ -119,6 +124,7 @@ nm = tb:option(DummyValue, "name", translate("File name"))
mt = tb:option(DummyValue, "mtime", translate("Modify time"))
ms = tb:option(DummyValue, "modestr", translate("Attributes"))
sz = tb:option(DummyValue, "size", translate("Size"))
btnrm = tb:option(Button, "remove", translate("Remove"))
btnrm.render = function(self, section, scope)
self.inputstyle = "remove"