mrsimpson / energy

A calculator for cost of energy (gas)
https://gaspreis.no-panic.org
Apache License 2.0
3 stars 0 forks source link

Use form for consumption parameters #86

Closed mrsimpson closed 1 year ago

mrsimpson commented 1 year ago

@jschirrmacher FYI: I'm revamping the forms to provide better usability. You started that earlier, but I was not happy with the labels. No I introduced media queries and hopefully can make it work on mobile too.

mrsimpson commented 1 year ago

@jschirrmacher merging this now as I'd like to see whether matomo automagicall tracks form inputs. Actually, it should, but I fear it does so only on submit.

I now put the inputs always into a form and bound the model (like it should be as per the docs]. However, all the validation that should work out-of-the-box did not work. I reverted this to local input validation (in a23c02e)