'id' => 'filename',
'size' => 50,
'value' => $this->filename,
- 'cssclass' => 'mw-ui-input-inline'
],
];
$hiddenFields = [
'title' => $this->getPageTitle()->getPrefixedDBkey(),
];
- $htmlForm = HTMLForm::factory( 'inline', $formFields, $this->getContext() );
+ $htmlForm = HTMLForm::factory( 'ooui', $formFields, $this->getContext() );
$htmlForm->addHiddenFields( $hiddenFields );
$htmlForm->setAction( wfScript() );
$htmlForm->setMethod( 'get' );
$htmlForm->setSubmitProgressive();
$htmlForm->setSubmitTextMsg( $this->msg( 'fileduplicatesearch-submit' ) );
- $htmlForm->setWrapperLegendMsg( 'fileduplicatesearch-legend' );
// The form should be visible always, even if it was submitted (e.g. to perform another action).
// To bypass the callback validation of HTMLForm, use prepareForm() and displayForm().
"redirect-not-exists": "Value not found",
"fileduplicatesearch": "Search for duplicate files",
"fileduplicatesearch-summary": "Search for duplicate files based on hash values.",
- "fileduplicatesearch-legend": "Search for a duplicate",
"fileduplicatesearch-filename": "Filename:",
"fileduplicatesearch-submit": "Search",
"fileduplicatesearch-info": "$1 × $2 pixel<br />File size: $3<br />MIME type: $4",
"redirect-not-exists": "Used as error message in [[Special:Redirect]]",
"fileduplicatesearch": "Name of special page [[Special:FileDuplicateSearch]].",
"fileduplicatesearch-summary": "Summary of [[Special:FileDuplicateSearch]]",
- "fileduplicatesearch-legend": "Legend of the fieldset around the input form of [[Special:FileDuplicateSearch]]",
"fileduplicatesearch-filename": "Input form of [[Special:FileDuplicateSearch]]:\n\n{{Identical|Filename}}",
"fileduplicatesearch-submit": "Button label on [[Special:FileDuplicateSearch]].\n\n{{Identical|Search}}",
"fileduplicatesearch-info": "Information beneath the thumbnail on the right side shown after a successful search via [[Special:FileDuplicateSearch]].\n\nParameters:\n* $1 - width of the file\n* $2 - height of the file\n* $3 - File size\n* $4 - MIME type",