mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Better responsive for website toolbar
This commit is contained in:
parent
320e9bbeec
commit
34c4de3287
|
|
@ -3842,6 +3842,7 @@ tr.visible {
|
|||
border-bottom: 1px solid #ccc;
|
||||
background: #e6e6e6;
|
||||
display: inline-block;
|
||||
padding: 4px 0 4px 0;
|
||||
}
|
||||
.websitebar .buttonDelete, .websitebar .button {
|
||||
text-shadow: none;
|
||||
|
|
@ -3853,10 +3854,10 @@ tr.visible {
|
|||
line-height: normal;
|
||||
}
|
||||
.websiteselection {
|
||||
display: inline-block;
|
||||
/* display: inline-block; */
|
||||
padding-left: 10px;
|
||||
vertical-align: middle;
|
||||
line-height: 28px;
|
||||
/* line-height: 28px; */
|
||||
}
|
||||
.websitetools {
|
||||
float: right;
|
||||
|
|
|
|||
|
|
@ -1953,18 +1953,18 @@ if (! GETPOST('hide_websitemenu'))
|
|||
|
||||
// ***** Part for web sites
|
||||
print '<!-- Bar for website -->';
|
||||
print '<div class="websiteselection hideonsmartphoneimp minwidth100 tdoverflowmax100">';
|
||||
print '<span class="websiteselection hideonsmartphoneimp minwidth100 tdoverflowmax100">';
|
||||
print $langs->trans("Website").' : ';
|
||||
print '</div>';
|
||||
print '</span>';
|
||||
|
||||
print '<div class="websiteselection hideonsmartphoneimp">';
|
||||
print '<span class="websiteselection hideonsmartphoneimp">';
|
||||
print ' <input type="submit"'.$disabled.' class="button" value="'.dol_escape_htmltag($langs->trans("Add")).'" name="createsite">';
|
||||
print '</div>';
|
||||
print '</span>';
|
||||
|
||||
// List of website
|
||||
print '<div class="websiteselection">';
|
||||
print '<span class="websiteselection">';
|
||||
$out='';
|
||||
$out.='<select name="website" class="minwidth100" id="website">';
|
||||
$out.='<select name="website" class="minwidth100 maxwidth300" id="website">';
|
||||
if (empty($object->records)) $out.='<option value="-1"> </option>';
|
||||
// Loop on each sites
|
||||
$i=0;
|
||||
|
|
@ -2050,19 +2050,19 @@ if (! GETPOST('hide_websitemenu'))
|
|||
print '<a href="'.$_SERVER["PHP_SEFL"].'?action=replacesite&website='.$website->ref.'" class="button bordertransp"'.$disabled.' title="'.dol_escape_htmltag($langs->trans("ReplaceWebsiteContent")).'"><span class="fa fa-search"><span></a>';
|
||||
}
|
||||
|
||||
print '</div>';
|
||||
print '</span>';
|
||||
|
||||
|
||||
// Toolbar for websites
|
||||
|
||||
print '<div class="websitetools websiteselection">';
|
||||
print '<span class="websitetools websiteselection">';
|
||||
|
||||
if ($action == 'preview' || $action == 'createfromclone' || $action == 'createpagefromclone' || $action == 'deletesite')
|
||||
{
|
||||
$urlext=$virtualurl;
|
||||
$urlint=$urlwithroot.'/public/website/index.php?website='.$websitekey;
|
||||
|
||||
print '<div class="websiteinputurl valignmiddle" id="websiteinputurl">';
|
||||
print '<span class="websiteinputurl valignmiddle" id="websiteinputurl">';
|
||||
$linktotestonwebserver = '<a href="'.($virtualurl?$virtualurl:'#').'" class="valignmiddle">';
|
||||
$linktotestonwebserver.= $langs->trans("TestDeployOnWeb", $virtualurl).' '.img_picto('', 'object_globe');
|
||||
$linktotestonwebserver.= '</a>';
|
||||
|
|
@ -2096,8 +2096,8 @@ if (! GETPOST('hide_websitemenu'))
|
|||
$htmltext.='<br>';
|
||||
$htmltext.=$langs->trans("YouCanAlsoDeployToAnotherWHP");
|
||||
}
|
||||
print $form->textwithpicto($linktotestonwebserver, $htmltext, 1, 'none', 'valignmiddle', 0, 2, 'helpvirtualhost');
|
||||
print '</div>';
|
||||
print $form->textwithpicto($linktotestonwebserver, $htmltext, 1, 'none', 'valignmiddle', 0, 3, 'helpvirtualhost');
|
||||
print '</span>';
|
||||
}
|
||||
|
||||
if (in_array($action, array('editcss','editmenu','file_manager','replacesite','replacesiteconfirm')))
|
||||
|
|
@ -2107,7 +2107,7 @@ if (! GETPOST('hide_websitemenu'))
|
|||
if ($action != 'preview') print '<input type="submit" class="button" value="'.dol_escape_htmltag($langs->trans("Cancel")).'" name="cancel">';
|
||||
}
|
||||
|
||||
print '</div>';
|
||||
print '</span>';
|
||||
|
||||
|
||||
// Toolbar for pages
|
||||
|
|
@ -2119,15 +2119,15 @@ if (! GETPOST('hide_websitemenu'))
|
|||
print '<!-- Bar for websitepage -->';
|
||||
print '<div class="centpercent websitebar"'.($style?' style="'.$style.'"':'').'">';
|
||||
|
||||
print '<div class="websiteselection hideonsmartphoneimp minwidth100 tdoverflowmax100">';
|
||||
print '<span class="websiteselection hideonsmartphoneimp minwidth100 tdoverflowmax100">';
|
||||
print $langs->trans("PageContainer").': ';
|
||||
print '</div>';
|
||||
print '</span>';
|
||||
|
||||
print '<div class="websiteselection hideonsmartphoneimp">';
|
||||
print '<span class="websiteselection hideonsmartphoneimp">';
|
||||
print '<input type="submit"'.$disabled.' class="button" value="'.dol_escape_htmltag($langs->trans("Add")).'" name="createcontainer">';
|
||||
print '</div>';
|
||||
print '</span>';
|
||||
|
||||
print '<div class="websiteselection">';
|
||||
print '<span class="websiteselection">';
|
||||
|
||||
if ($action != 'addcontainer')
|
||||
{
|
||||
|
|
@ -2395,9 +2395,9 @@ if (! GETPOST('hide_websitemenu'))
|
|||
}
|
||||
}
|
||||
|
||||
print '</div>'; // end website selection
|
||||
print '</span>'; // end website selection
|
||||
|
||||
print '<div class="websitetools">';
|
||||
print '<span class="websitetools">';
|
||||
|
||||
if (($pageid > 0 && $atleastonepage) && ($action == 'preview' || $action == 'createfromclone' || $action == 'createpagefromclone' || $action == 'deletesite'))
|
||||
{
|
||||
|
|
@ -2437,9 +2437,9 @@ if (! GETPOST('hide_websitemenu'))
|
|||
if ($action != 'preview') print '<input type="submit" class="button" value="'.dol_escape_htmltag($langs->trans("Cancel")).'" name="preview">';
|
||||
}
|
||||
|
||||
print '</div>'; // end websitetools
|
||||
print '</span>'; // end websitetools
|
||||
|
||||
print '<div class="websitehelp">';
|
||||
print '<span class="websitehelp">';
|
||||
if (GETPOST('editsource', 'alpha') || GETPOST('editcontent', 'alpha'))
|
||||
{
|
||||
$htmltext=$langs->transnoentitiesnoconv("YouCanEditHtmlSource").'<br>';
|
||||
|
|
@ -2453,7 +2453,7 @@ if (! GETPOST('hide_websitemenu'))
|
|||
print $form->textwithpicto($langs->trans("SyntaxHelp").' '.img_help(2, $langs->trans("SyntaxHelp")), $htmltext, 1, 'none', 'inline-block', 1, 2, 'tooltipsubstitution');
|
||||
}
|
||||
}
|
||||
print '</div>'; // end websitehelp
|
||||
print '</span>'; // end websitehelp
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user