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>
Wed, 18 Jul 2018 10:05:05 +0000 (12:05 +0200)
commitbc562294b9a5a2867b8b6e1cb21d9a2d4a2b8b59
treeecc1c66bb7041434c72599af13826aec5e6e2b93
parent7b43e81c9b88df9623cfa22a79627558787378ea
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>
modules/luci-base/luasrc/view/cbi/simpleform.htm