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
11 lines
272 B
PHP
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' );
|
|
}
|