luci-base: rework CBI footer template
authorJo-Philipp Wich <jo@mein.io>
Wed, 18 Jul 2018 09:46:46 +0000 (11:46 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 20 Jul 2018 05:56:38 +0000 (07:56 +0200)
commitd7c868a05e95b7b3050b07dd4968c62bfce4c7f6
treece2ac0c0b589aa4f2134909ca4685cde0b870c24
parentbea5187f3d7a90a48b42aaf46008d7625dcb01a3
luci-base: rework CBI footer template

- Make sure that hitting enter in the form hits the CBI save action and not
  apply or cancel
- Hide action panel if no actions are available
- CLeanup code

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit c09e1545608c9db5d9a81f7275528a6fc0a79505)
modules/luci-base/luasrc/view/cbi/footer.htm