The buttons at the bottom of the form are generated by HTMLForm::getButtons(). We need to override this method to produce Codex buttons instead of plain buttons.
When the $wgUseCodexSpecialBlock = true; configuration is set to true in LocalSettings.php, the Codex version of the form (CodexHTMLForm) is produced.
Acceptance Criteria
- Stop hard-coding button flags in HTMLButtonField T359018
- Create a function getButtons() in CodexHTMLForm that produces Codex buttons at the bottom of the form.
- As discussed, we will not include a Codex reset button because the reset button will be removed from HTMLForm.
Follow-up tasks
- Remove the reset button from HTMLForm since it's unused. T361032
- Refactor CodexHTMLForm::getButtons() to use a static method (similar to HTMLTextField).