mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix debug v18
This commit is contained in:
parent
d040f5c8a9
commit
05a4b0a3e2
|
|
@ -2921,7 +2921,7 @@ if (!GETPOST('hide_websitemenu')) {
|
|||
print '<span class="websiteselection">';
|
||||
// Do not use ajax, we need a refresh of full page when we change status of a website
|
||||
//print '<div class="inline-block marginrightonly">';
|
||||
//print ajax_object_onoff($object, 'status', 'status', 'Online', 'Offline', array(), 'valignmiddle', 'statuswebsite');
|
||||
//print ajax_object_onoff($object, 'status', 'status', 'Online', 'Offline', array(), 'valignmiddle inline-block', 'statuswebsite');
|
||||
//print '</div>';
|
||||
if ($website->status == $website::STATUS_DRAFT) {
|
||||
$text_off = 'Offline';
|
||||
|
|
@ -3097,7 +3097,7 @@ if (!GETPOST('hide_websitemenu')) {
|
|||
print '</div>'; // Close current websitebar to open a new one
|
||||
|
||||
print '<!-- Toolbar for websitepage -->';
|
||||
print '<div class="centpercent websitebar"'.($style ? ' style="'.$style.'"' : '').'">';
|
||||
print '<div class="centpercent websitebar"'.($style ? ' style="'.$style.'"' : '').'>';
|
||||
|
||||
print '<div class="websiteselection hideonsmartphoneimp minwidth75 tdoverflowmax100 inline-block">';
|
||||
print $langs->trans("PageContainer").': ';
|
||||
|
|
@ -3147,7 +3147,7 @@ if (!GETPOST('hide_websitemenu')) {
|
|||
print '<span class="valignmiddle disabled opacitymedium">'.img_picto($langs->trans($text_off), 'switch_on').'</span>';
|
||||
}
|
||||
} else {
|
||||
print ajax_object_onoff($websitepage, 'status', 'status', 'Online', 'Offline', array(), 'valignmiddle'.(empty($websitepage->id) ? ' opacitymedium disabled' : ''), 'statuswebsitepage');
|
||||
print ajax_object_onoff($websitepage, 'status', 'status', 'Online', 'Offline', array(), 'valignmiddle inline-block'.(empty($websitepage->id) ? ' opacitymedium disabled' : ''), 'statuswebsitepage');
|
||||
}
|
||||
//print '</div>';
|
||||
print '</span>';
|
||||
|
|
@ -3369,6 +3369,7 @@ if (!GETPOST('hide_websitemenu')) {
|
|||
print '</div>';
|
||||
|
||||
// Set page as homepage
|
||||
print '<span class="websiteselection">';
|
||||
if ($object->fk_default_home > 0 && $pageid == $object->fk_default_home) {
|
||||
//$disabled=' disabled="disabled"';
|
||||
//print '<span class="button bordertransp disabled"'.$disabled.' title="'.dol_escape_htmltag($langs->trans("SetAsHomePage")).'"><span class="fa fa-home"></span></span>';
|
||||
|
|
@ -3392,6 +3393,7 @@ if (!GETPOST('hide_websitemenu')) {
|
|||
$url = $_SERVER["PHP_SELF"].'?action=delete&token='.newToken().'&pageid='.((int) $websitepage->id).'&website='.urlencode($website->ref); // action=delete for webpage, deletesite for website
|
||||
}
|
||||
print '<a href="'.$url.'" class="button buttonDelete bordertransp'.($disabled ? ' disabled' : '').'"'.$disabled.' title="'.dol_escape_htmltag($title).'">'.img_picto('', 'delete', 'class=""').'<span class="hideonsmartphone paddingleft">'.$langs->trans("Delete").'</span></a>';
|
||||
print '</span>';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -4789,7 +4791,7 @@ if ($mode == 'replacesite' || $massaction == 'replace') {
|
|||
print '<a class="editfielda marginleftonly marginrightonly '.$disabled.'" href="'.$urltoedithtmlsource.'" title="'.$langs->trans("EditHTMLSource").'">'.img_picto($langs->trans("EditHTMLSource"), 'edit').'</a>';
|
||||
|
||||
print '<span class="marginleftonly marginrightonly"></span>';
|
||||
print ajax_object_onoff($answerrecord, 'status', 'status', 'Enabled', 'Disabled', array(), 'valignmiddle');
|
||||
print ajax_object_onoff($answerrecord, 'status', 'status', 'Enabled', 'Disabled', array(), 'valignmiddle inline-block');
|
||||
|
||||
print '</td>';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user