wiki.techinc.nl/includes/htmlform
Gergő Tisza 0c9712c31a Improve HTMLForm (and Special:ChangeCredentials) cancel button
Add two new HTMLForm methods:
* showCancel( [bool] ) to display a cancel button
* setCancelTarget( Title|string ) to set where it should take
  the user.

The cancel button is a simple link formatted as a button.
This is faster than a real button (skips an unnecessary
submit and redirect) and avoids some UX problems:
* when clicking on a real button, HTML5 or JS  validators
  might prevent submission, which does not make sense for cancel
* form field values might get saved by the brower, which again
  does not make sense for cancelling

Use the cancel button for Special:ChangeCredentials.

Bug: T136809
Change-Id: Ieb80e2ff36751abc6f00e2a02926fe9800666a8b
2016-06-02 19:42:44 +00:00
..
HTMLApiField.php
HTMLAutoCompleteSelectField.php Unify handling of *-message(s) settings in HTMLForm 2016-04-01 17:07:14 +03:00
HTMLButtonField.php Change \\ to \ in phpdoc 2016-04-08 17:46:30 +00:00
HTMLCheckField.php Make HTMLCheckField::loadDataFromRequest always return a boolean 2016-04-23 16:27:02 +00:00
HTMLCheckMatrix.php HTMLForm: Use OOUI\Element::configFromHtmlAttributes instead of rolling our own 2016-03-09 00:08:05 +00:00
HTMLComboboxField.php HTMLForm: Use OOUI\Element::configFromHtmlAttributes instead of rolling our own 2016-03-09 00:08:05 +00:00
HTMLEditTools.php Unify handling of *-message(s) settings in HTMLForm 2016-04-01 17:07:14 +03:00
HTMLFloatField.php
HTMLForm.php Improve HTMLForm (and Special:ChangeCredentials) cancel button 2016-06-02 19:42:44 +00:00
HTMLFormField.php Fix HTMLFormField calling Message::setContext with null 2016-05-04 15:29:24 +02:00
HTMLFormFieldCloner.php Fix HTMLForm noData logic in trySubmit 2016-05-02 22:23:13 +00:00
HTMLFormFieldRequiredOptionsException.php
HTMLFormFieldWithButton.php Merge "HTMLForm: Use OOUI\Element::configFromHtmlAttributes instead of rolling our own" 2016-03-10 21:33:28 +00:00
HTMLHiddenField.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
HTMLInfoField.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
HTMLIntField.php
HTMLMultiSelectField.php HTMLMultiSelectField: Use CheckboxMultiselectInputWidget 2016-05-31 15:45:25 -07:00
HTMLNestedFilterable.php
HTMLRadioField.php HTMLRadioField: Only add 'mw-ui' classes when needed 2016-05-30 17:00:59 +02:00
HTMLSelectAndOtherField.php Unify handling of *-message(s) settings in HTMLForm 2016-04-01 17:07:14 +03:00
HTMLSelectField.php HTMLForm: Use OOUI\Element::configFromHtmlAttributes instead of rolling our own 2016-03-09 00:08:05 +00:00
HTMLSelectLimitField.php
HTMLSelectNamespace.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
HTMLSelectNamespaceWithButton.php
HTMLSelectOrOtherField.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
HTMLSubmitField.php Improve HTMLSubmitField return value 2016-04-18 14:21:33 +00:00
HTMLTagFilter.php
HTMLTextAreaField.php Allow HTMLFormField placeholder to be a message 2016-04-01 14:34:05 +00:00
HTMLTextField.php Merge "Allow HTMLFormField placeholder to be a message" 2016-04-01 14:48:23 +00:00
HTMLTextFieldWithButton.php
HTMLTitleTextField.php Fix numerous class/function casing 2016-03-18 23:14:49 +00:00
HTMLUserTextField.php Fix numerous class/function casing 2016-03-18 23:14:49 +00:00
OOUIHTMLForm.php Improve HTMLForm (and Special:ChangeCredentials) cancel button 2016-06-02 19:42:44 +00:00
VFormHTMLForm.php Improve HTMLForm (and Special:ChangeCredentials) cancel button 2016-06-02 19:42:44 +00:00