HTMLForm: Allow to set the primary flag for submit buttons
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Thu, 23 Jul 2015 16:38:18 +0000 (18:38 +0200)
committerFlorian <florian.schmidt.stargatewissen@gmail.com>
Thu, 23 Jul 2015 19:48:35 +0000 (21:48 +0200)
commit3f7443df86832fec93303b12bf351e708841e460
tree70a6dd01a0b73e748fb0f3381f5112911045542e
parent7c87cc0a0132241eea7634d368d55df963c684d9
HTMLForm: Allow to set the primary flag for submit buttons

Currently, every submit button generated by HTMLForm itself (not via
the descriptor) doesn't have the primary flag and there is no (easy) way
to add it, although this generated submit button is most likely the primary
one.

Add a new function HTMLForm::setSubmitPrimary() to allow a form to set
add the primary flag to this submit button.

Change-Id: I3ce363f995389a87764edb586b4b64ab2b77b0db
includes/htmlform/HTMLForm.php
includes/htmlform/OOUIHTMLForm.php
includes/htmlform/VFormHTMLForm.php