luci-base: add cbi tsection error msg option 2642/head
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 15 Jan 2019 14:07:27 +0000 (15:07 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Fri, 29 Mar 2019 08:27:04 +0000 (09:27 +0100)
commitb347bd14620b810e981734c798702ab47774c9db
tree5535b728bce34ae098aca0ac98917499c2045a4e
parent8e3e502c45f5bdb8e1eb52c5a03c5fdbec9809df
luci-base: add cbi tsection error msg option

In some situation it is usefull to inform the use that this section
could not get delete, because this config is referenced or is in use.

Example pseudo code:

function s.remove(self, sid)
<check if secation could get deleted>
if output == nil then
self.error_msg = translatef("Unable to remove this section")
return nil
end
end

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
modules/luci-base/luasrc/view/cbi/tsection.htm