module("luci.controller.filetransfer", package.seeall)
function index()
- entry({"admin", "system", "filetransfer"}, form("updownload"), _("FileTransfer"),89).acl_depends = { "luci-app-filetransfer" }
+
+ local page = entry({"admin", "system", "filetransfer"}, form("filetransfer"), _("FileTransfer"), 89)
+ page.dependent = true
+ page.acl_depends = { "luci-app-filetransfer" }
end
ful.submit = false
sul = ful:section(SimpleSection, "", translate("Upload file to '/tmp/upload/'"))
+
fu = sul:option(FileUpload, "")
-fu.template = "cbi/other_upload"
+fu.template = "filetransfer/other_upload"
+
um = sul:option(DummyValue, "", nil)
-um.template = "cbi/other_dvalue"
+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 = "cbi/other_download"
+fd.template = "filetransfer/other_download"
+
dm = sdl:option(DummyValue, "", nil)
-dm.template = "cbi/other_dvalue"
+dm.template = "filetransfer/other_dvalue"
function Download()
local sPath, sFile, fd, block
end
btnis = tb:option(Button, "install", translate("Install"))
-btnis.template = "cbi/other_button"
+btnis.template = "filetransfer/other_button"
btnis.render = function(self, section, scope)
if not inits[section] then return false end
if IsIpkFile(inits[section].name) then