Replace a number of <input type="submit"> with <button type="submit">
authorMagnus Hagander <magnus@hagander.net>
Wed, 6 Nov 2024 11:18:19 +0000 (12:18 +0100)
committerMagnus Hagander <magnus@hagander.net>
Wed, 6 Nov 2024 11:20:41 +0000 (12:20 +0100)
commitad798bc8a92e5a38db5bacd22393fbef4e1a7b0e
treed53e014b19e81f2b07cb8055bc9310080deee845
parent6129f4dff51adb5bc8b346825177d6c1b646a5b1
Replace a number of <input type="submit"> with <button type="submit">

This separates the value posted from the text on the button, which
*hopefully* will prevent the errors caused by people using browser
extensions that translate the site, thereby submitting buttons in german
and french for example.

This only touches buttons on the frontend side, at least for now.
Backend users are expected to not use such extensions. And we keep
setting the value to the same as before, so that if some skins have
completely overriden the forms and added their own HTML, it will
continue to work.

This will likely require some frontend skins to update their CSS rules
to match. Things will still work without such changes, but will not look
as good.

Hopefully fixes #150
12 files changed:
media/css/pgeuconf.css
template.jinja/confreg/invoicecancel.html
template.jinja/confreg/offer_waitlist.html
template.jinja/confreg/regform.html
template.jinja/confreg/regform_confirm.html
template.jinja/confreg/regmulti.html
template.jinja/confreg/regmulti_attach.html
template.jinja/confreg/regmulti_cancel.html
template.jinja/confreg/regmulti_form.html
template.jinja/confreg/regmulti_invoice.html
template.jinja/confreg/waitlist_status.html
template.jinja/confwiki/wikipage_edit.html