Fix height
This commit is contained in:
parent
d3bef6ee32
commit
65a04831a9
1 changed files with 5 additions and 1 deletions
|
|
@ -3633,6 +3633,9 @@ if (!GETPOST('hide_websitemenu')) {
|
|||
$onlylang['none'] = 'none';
|
||||
$textifempty = $langs->trans("Default");
|
||||
}
|
||||
|
||||
$formheight = 300;
|
||||
|
||||
$formquestion = array(
|
||||
array('type' => 'hidden', 'name' => 'sourcepageurl', 'value' => $objectpage->pageurl),
|
||||
array('type' => 'other', 'tdclass' => 'fieldrequired', 'name' => 'newwebsite', 'label' => $langs->trans("WebSite"), 'value' => $formwebsite->selectWebsite((string) $object->id, 'newwebsite', 0)),
|
||||
|
|
@ -3641,12 +3644,13 @@ if (!GETPOST('hide_websitemenu')) {
|
|||
);
|
||||
if (count($onlylang) > 1) {
|
||||
$formquestion[] = array('type' => 'checkbox', 'tdclass' => 'maxwidth200', 'name' => 'is_a_translation', 'label' => $langs->trans("PageIsANewTranslation"), 'value' => 0, 'morecss' => 'margintoponly');
|
||||
$formheight += 50;
|
||||
}
|
||||
|
||||
$value = $formadmin->select_language($preselectedlanguage, 'newlang', 0, array(), $textifempty, 0, 0, 'minwidth200', 1, 0, 0, $onlylang, 1);
|
||||
$formquestion[] = array('type' => 'other', 'name' => 'newlang', 'label' => $form->textwithpicto($langs->trans("Language"), $langs->trans("DefineListOfAltLanguagesInWebsiteProperties")), 'value' => $value);
|
||||
|
||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?website='.$object->ref.'&pageid='.$pageid, $langs->trans('ClonePage'), '', 'confirm_createpagefromclone', $formquestion, 0, 1, 300, 550);
|
||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?website='.$object->ref.'&pageid='.$pageid, $langs->trans('ClonePage'), '', 'confirm_createpagefromclone', $formquestion, 0, 1, $formheight, 550);
|
||||
|
||||
print $formconfirm;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue