31 $output = $this->getOutput();
33 $this->checkPermissions();
34 $this->addHelpLink(
'Help:Extension:Translate/Page translation administration' );
35 $this->outputHeader(
'pagemigration-summary' );
36 $output->addModules(
'ext.translate.special.pagemigration' );
37 $output->addModuleStyles( [
38 'ext.translate.specialpages.styles',
40 'mediawiki.codex.messagebox.styles',
46 $out .= Html::openElement(
'div', [
'class' =>
'mw-tpm-sp-container grid' ] );
47 $out .= Html::openElement(
'div', [
'class' =>
'mw-tpm-sp-error row',
48 'id' =>
'mw-tpm-sp-error-div' ] );
49 $out .= Html::element(
'div',
50 [
'class' =>
'mw-tpm-sp-error__message five columns hide' ] );
51 $out .= Html::closeElement(
'div' );
52 $out .= Html::openElement(
'form', [
'class' =>
'mw-tpm-sp-form row',
53 'id' =>
'mw-tpm-sp-primary-form',
'action' =>
'' ] );
54 $out .= Html::element(
'input', [
'id' =>
'pm-summary',
'type' =>
'hidden',
55 'value' => $this->msg(
'pm-summary-import' )->inContentLanguage()->text() ] );
57 $out .= Html::element(
'input', [
'id' =>
'title',
'class' =>
'mw-searchInput mw-ui-input',
58 'data-mw-searchsuggest' => FormatJson::encode( [
60 ] ),
'placeholder' => $this->msg(
'pm-pagetitle-placeholder' )->text() ] );
62 $out .= Html::element(
'input', [
'id' =>
'action-import',
63 'class' =>
'mw-ui-button mw-ui-progressive',
'type' =>
'button',
64 'value' => $this->msg(
'pm-import-button-label' )->text() ] );
66 $out .= Html::element(
'input', [
'id' =>
'action-save',
67 'class' =>
'mw-ui-button mw-ui-progressive hide',
'type' =>
'button',
68 'value' => $this->msg(
'pm-savepages-button-label' )->text() ] );
70 $out .= Html::element(
'input', [
'id' =>
'action-cancel',
71 'class' =>
'mw-ui-button mw-ui-quiet hide',
'type' =>
'button',
72 'value' => $this->msg(
'pm-cancel-button-label' )->text() ] );
73 $out .= Html::closeElement(
'form' );
74 $out .= Html::element(
'div', [
'class' =>
'mw-tpm-sp-instructions hide' ] );
75 $out .= Html::rawElement(
'div', [
'class' =>
'mw-tpm-sp-unit-listing' ] );
76 $out .= Html::closeElement(
'div' );
78 $output->addHTML( $out );
81 $this->msg(
'tux-nojs' )->escaped(),