Commit graph

16 commits

Author SHA1 Message Date
Jo-Philipp Wich
fd24221d9e luci-compat: apply permission constraints from dispatcher
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-20 09:44:14 +02:00
Jo-Philipp Wich
ffd627f2a1 luci-compat: disable legacy cbi forms on insufficient ACLs
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-19 17:17:26 +02:00
Jo-Philipp Wich
06fea062b7 luci-compat: add wildcard ACL allowing access to all uci configurations
Ref: https://github.com/openwrt/luci/issues/3917
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-15 14:58:54 +02:00
Jo-Philipp Wich
04b62708f5 luci-compat: footer.htm: tweak CSS classes
- 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-03-23 21:41:22 +01:00
Jo-Philipp Wich
878d662282 luci-compat: upload.htm: expose root_directory and initial_directory
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-20 19:40:46 +01:00
Jo-Philipp Wich
09b2d8a8ac luci-base: move tools.webadmin to luci-compat
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-12-30 10:37:48 +01:00
Hannu Nyman
06e6552c8a
Merge pull request #3434 from tano-systems/luci-base-network-fix
luci-compat: network.lua: fix typo
2019-12-27 12:13:15 +02:00
Anton Kikin
07925b253a luci-compat: network.lua: fix typo
Fixes: 72247ee09

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-12-27 02:32:15 +03:00
Jo-Philipp Wich
8362ab8d28
Merge pull request #1951 from tano-systems/luci-base-network-fix
luci-base: network.lua: bridge information request functions fixes
2019-12-25 18:32:05 +01:00
Balázs Úr
d0bc86bcc3 luci-base: fix typos
Signed-off-by: Balázs Úr <balazs@urbalazs.hu>
2019-12-17 11:41:00 +01:00
Anton Kikin
72247ee09f luci-base: network.lua: fix bridge related functions
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-07 22:28:17 +03:00
Anton Kikin
45725dfca6 luci-base: network.lua: fix interface.ports() function return value
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-12-07 22:28:17 +03:00
Jo-Philipp Wich
13e9e3e9e8 treewide: fix "Unhandled token" errors with Lua CBI maps
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-16 18:25:52 +01:00
Jo-Philipp Wich
857cd8c7fa luci-compat: network.lua: recognize wifi interfaces with nonstandard names
Ref: https://github.com/openwrt/luci/issues/3306
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-14 11:13:43 +01:00
Jo-Philipp Wich
d5dff8f9a5 treewide: move server side CBI support to luci-compat
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03 20:49:31 +01:00
Jo-Philipp Wich
284918bfaf treewide: move templates and libraries not used by the core to luci-compat
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-11-03 17:56:58 +01:00