summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-compat/luasrc
AgeCommit message (Collapse)Author
2022-08-03luci-compat: fix common cbi-page-actions positionFlorian Eckert
With legacy applications, the common page actions "Save and Apply" are not displayed correctly, so that they are not aligned on the right as with javascript applications. To fix the alignment, the control-group css class is removed. This was determined with the application 'luci-app-nft-qos' with the theme 'luci-theme-bootstrap'. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2022-03-10luci-compat: fix evaluating `or()` and `and()` datatype expressionsJo-Philipp Wich
Fixes: #5705 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-08-11luci-base: prevent empty field for adding new entryHelge Mader
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-04-09luci-compat: update markup for CBI TableSectionsJo-Philipp Wich
Update legacy CBI markup to use actual table, tr, th and td elements instead of using div element corresponding table classes. Fixes compatibility with OpenWrt 2020 theme. Ref: https://github.com/openwrt/luci/issues/4972 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-01-20treewide: removed trailing whitespaces and extra newlines in 'modules'Giovanni Giacobbi
Signed-off-by: Giovanni Giacobbi <giovanni@giacobbi.net>
2020-10-24luci-compat: Replace legend element with h3.Oldřich Jedlička
The legend HTML element is allowed only as first element in fieldset, so use h3 instead, which is rendered the same within themes. Fixed #3149. Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
2020-07-20luci-compat: add btn class to all button inputsFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
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-12-30luci-base: move tools.webadmin to luci-compatJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-27Merge pull request #3434 from tano-systems/luci-base-network-fixHannu Nyman
luci-compat: network.lua: fix typo
2019-12-27luci-compat: network.lua: fix typoAnton Kikin
Fixes: 72247ee09 Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-12-25Merge pull request #1951 from tano-systems/luci-base-network-fixJo-Philipp Wich
luci-base: network.lua: bridge information request functions fixes
2019-12-17luci-base: fix typosBalázs Úr
Signed-off-by: Balázs Úr <balazs@urbalazs.hu>
2019-12-07luci-base: network.lua: fix bridge related functionsAnton Kikin
This commit fixes these bugs: 1. Functions interface.bridge_id() and interface.bridge_stp() uses self.br field that is not exists at all 2. Function interface.is_bridgeport() return true only for bridge interface, not for bridge port interfaces. Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-12-07luci-base: network.lua: fix interface.ports() function return valueAnton Kikin
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
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-14luci-compat: network.lua: recognize wifi interfaces with nonstandard namesJo-Philipp Wich
Ref: https://github.com/openwrt/luci/issues/3306 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>