summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-compat/luasrc/view
AgeCommit message (Collapse)Author
2020-04-20luci-compat: apply permission constraints from dispatcherJo-Philipp Wich
Since template scopes aren't shared we cannot pass the writable state from the map templates to the page footer. Fixes: #3937 Fixes: ffd627f2a ("luci-compat: disable legacy cbi forms on insufficient ACLs") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-19luci-compat: disable legacy cbi forms on insufficient ACLsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-03-23luci-compat: footer.htm: tweak CSS classesJo-Philipp Wich
- Use .btn CSS class for page action buttons - Use .control-group class for page action div Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-20luci-compat: upload.htm: expose root_directory and initial_directoryJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-16treewide: fix "Unhandled token" errors with Lua CBI mapsJo-Philipp Wich
The `data-type` attribute is used to bind datatype validators to a widget while some templates used the same attribute to denote the name of the underlying widget. Change the `data-type` attributes referring to the widget name to `data-widget` in order to stop the JS token error spam. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03treewide: move server side CBI support to luci-compatJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03treewide: move templates and libraries not used by the core to luci-compatJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>