Commit f3e7027d authored by Benni Mack's avatar Benni Mack Committed by Susanne Moog
Browse files

[TASK] UX: Streamline Page Translation selector in Page Module

The page translation selector in the page module has the label outside
of the dropdown, where as the List module has the label as the first option.

This patch puts the label inside the first option of the dropdown selector
in the page module.

This way, the selector box is aligned to the left, and thus, does not look
like it's placed "somewhere" in the HTML code.

Resolves: #83271
Releases: master
Change-Id: Idbedf2f6cfb9056e0c89a69029f31b4b47673a02

Tested-by: default avatarTYPO3com <>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <>
Tested-by: Georg Ringer's avatarGeorg Ringer <>
Reviewed-by: Susanne Moog's avatarSusanne Moog <>
Tested-by: Susanne Moog's avatarSusanne Moog <>
parent b439597c
......@@ -2541,7 +2541,7 @@ class PageLayoutView implements LoggerAwareInterface
// If any languages are left, make selector:
if (!empty($availableTranslations)) {
$output = '<option value=""></option>';
$output = '<option value="">' . htmlspecialchars($this->getLanguageService()->getLL('new_language')) . '</option>';
foreach ($availableTranslations as $languageUid => $languageTitle) {
// Build localize command URL to DataHandler (tce_db)
// which redirects to FormEngine (record_edit)
......@@ -2562,9 +2562,6 @@ class PageLayoutView implements LoggerAwareInterface
return '<div class="form-inline form-inline-spaced">'
. '<div class="form-group">'
. '<label for="createNewLanguage">'
. htmlspecialchars($this->getLanguageService()->getLL('new_language'))
. '</label>'
. '<select class="form-control input-sm" name="createNewLanguage" onchange="window.location.href=this.options[this.selectedIndex].value">'
. $output
. '</select></div></div>';
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment