luci-base: rework simpleform template
authorJo-Philipp Wich <jo@mein.io>
Wed, 18 Jul 2018 09:36:53 +0000 (11:36 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 20 Jul 2018 05:56:31 +0000 (07:56 +0200)
commit24b924bfe493fb8b375fcd3ffc8ce6edf867f427
tree1682cd0e1332494bdb9e1919c41e794854508e08
parent392fd02383faeeae0c1cb9c40717c9a34ca4db6c
luci-base: rework simpleform template

- Ensure that pressing enter in the form triggers the submit action and
  not a cbi skip or cancel
- Hide page actions when empty
- Cleanup code

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