wiki.techinc.nl/includes/htmlform/HTMLSubmitField.php
Florian 1025f0a79c Fix Button label in OOUI HTML Form and enable flags
An OOUI Button now adds the value as a label of the button, too. Enable
the HTMLForm descriptor to pass flags to the OOUI Button widget, which
defaults to nothing in HTMLButtonField and to 'primary' and 'constructive'
in HTMLSubmitField.

Change-Id: Ibf561453604a830862d4f64819c8418a9458cb12
2015-06-25 14:56:05 +02:00

11 lines
272 B
PHP

<?php
/**
* Add a submit button inline in the form (as opposed to
* HTMLForm::addButton(), which will add it at the end).
*/
class HTMLSubmitField extends HTMLButtonField {
protected $buttonType = 'submit';
protected $mFlags = array( 'primary', 'constructive' );
}