mirror of
https://github.com/coolsnowwolf/luci.git
synced 2025-05-01 13:51:44 +08:00
luci-app-filetransfer: code alignment
This commit is contained in:
parent
db827a3078
commit
74ecb1934e
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user