mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 09:01:40 +01:00
Fix CSS
This commit is contained in:
@@ -34,6 +34,11 @@ class FormWebsite
|
||||
*/
|
||||
public $error;
|
||||
|
||||
/**
|
||||
* var int A number of lines
|
||||
*/
|
||||
public $num;
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
@@ -220,11 +225,11 @@ class FormWebsite
|
||||
* @param string $action Action on page that use this select list
|
||||
* @param string $morecss More CSS
|
||||
* @param array $excludeids Exclude some ID in list
|
||||
* @return string HTML select component with list of type of containers
|
||||
* @return string HTML select component with list of block containers
|
||||
*/
|
||||
public function selectContainer($website, $htmlname = 'pageid', $pageid = 0, $showempty = 0, $action = '', $morecss = 'minwidth200', $excludeids = null)
|
||||
{
|
||||
global $langs;
|
||||
$this->num = 0;
|
||||
|
||||
$atleastonepage = (is_array($website->lines) && count($website->lines) > 0);
|
||||
|
||||
@@ -273,6 +278,8 @@ class FormWebsite
|
||||
$out .= '>';
|
||||
$out .= $valueforoption;
|
||||
$out .= '</option>';
|
||||
|
||||
++$this->num;
|
||||
}
|
||||
}
|
||||
$out .= '</select>';
|
||||
|
||||
@@ -97,10 +97,7 @@ if (!empty($conf->global->THEME_DARKMODEENABLED)) {
|
||||
body {
|
||||
<?php if (GETPOST('optioncss', 'aZ09') == 'print') { ?>
|
||||
background-color: #FFFFFF;
|
||||
<?php } else { ?>
|
||||
background: var(--colorbackbody);
|
||||
<?php } ?>
|
||||
color: var(--colortext);
|
||||
font-size: <?php print is_numeric($fontsize) ? $fontsize.'px' : $fontsize; ?>;
|
||||
line-height: 1.4;
|
||||
font-family: <?php print $fontlist ?>;
|
||||
@@ -5398,6 +5395,9 @@ input.select2-input {
|
||||
{
|
||||
background-color: var(--colorbackvmenu1);
|
||||
}
|
||||
.select2-container--default .select2-selection--single {
|
||||
background-color: var(--colorbackbody);
|
||||
}
|
||||
#blockvmenusearch .select2-container--default .select2-selection--single .select2-selection__placeholder {
|
||||
color: var(--colortextbackvmenu);
|
||||
}
|
||||
@@ -5506,6 +5506,8 @@ input.select2-input {
|
||||
/*background-color: var(--colorbackvmenu1);
|
||||
border: 1px solid var(--colorbackvmenu1); */
|
||||
box-shadow: 1px 2px 10px var(--colorbackvmenu1);
|
||||
background-color: var(--colorbackbody);
|
||||
color: var(--colortext);
|
||||
}
|
||||
.select2-dropdown-open {
|
||||
background-color: var(--colorbackvmenu1);
|
||||
|
||||
@@ -25,7 +25,7 @@ if (!defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
|
||||
.info-box.info-box-sm {
|
||||
min-height: 80px;
|
||||
margin-bottom: 10px;
|
||||
background: #fff;
|
||||
/* background: #fff; */
|
||||
}
|
||||
.opened-dash-board-wrap .info-box.info-box-sm {
|
||||
border-radius: 0 0 0 20px;
|
||||
|
||||
@@ -2518,27 +2518,33 @@ if (!GETPOST('hide_websitemenu'))
|
||||
|
||||
if ($action != 'addcontainer')
|
||||
{
|
||||
print '<span class="websiteselection">';
|
||||
print $formwebsite->selectContainer($website, 'pageid', $pageid, 0, $action, 'maxwidth200onsmartphone');
|
||||
print '</span>';
|
||||
|
||||
$urltocreatenewpage = $_SERVER["PHP_SEFL"].'?action=createcontainer&website='.$website->ref;
|
||||
|
||||
$out = '';
|
||||
if (!empty($conf->use_javascript_ajax)) {
|
||||
$out .= '<script language="javascript">';
|
||||
$out .= 'jQuery(document).ready(function () {';
|
||||
$out .= ' jQuery("#pageid").change(function () {';
|
||||
$out .= ' console.log("We select "+jQuery("#pageid option:selected").val());';
|
||||
$out .= ' if (jQuery("#pgeid option:selected").val() == \'-2\') {';
|
||||
$out .= ' window.location.href = "'.$urltocreatenewpage.'";';
|
||||
$out .= ' } else {';
|
||||
$out .= ' window.location.href = "'.$_SERVER["PHP_SEFL"].'?website='.$website->ref.'&pageid="+jQuery("#pageid option:selected").val();';
|
||||
$out .= ' }';
|
||||
$out .= ' });';
|
||||
$out .= '});';
|
||||
$out .= '</script>';
|
||||
|
||||
$s = $formwebsite->selectContainer($website, 'pageid', $pageid, 0, $action, 'maxwidth200onsmartphone');
|
||||
|
||||
if ($formwebsite->num > 0) {
|
||||
$out .= '<span class="websiteselection">';
|
||||
$out .= $s;
|
||||
$out .= '</span>';
|
||||
|
||||
$urltocreatenewpage = $_SERVER["PHP_SEFL"].'?action=createcontainer&website='.$website->ref;
|
||||
|
||||
if (!empty($conf->use_javascript_ajax)) {
|
||||
$out .= '<script language="javascript">';
|
||||
$out .= 'jQuery(document).ready(function () {';
|
||||
$out .= ' jQuery("#pageid").change(function () {';
|
||||
$out .= ' console.log("We select "+jQuery("#pageid option:selected").val());';
|
||||
$out .= ' if (jQuery("#pgeid option:selected").val() == \'-2\') {';
|
||||
$out .= ' window.location.href = "'.$urltocreatenewpage.'";';
|
||||
$out .= ' } else {';
|
||||
$out .= ' window.location.href = "'.$_SERVER["PHP_SEFL"].'?website='.$website->ref.'&pageid="+jQuery("#pageid option:selected").val();';
|
||||
$out .= ' }';
|
||||
$out .= ' });';
|
||||
$out .= '});';
|
||||
$out .= '</script>';
|
||||
}
|
||||
}
|
||||
|
||||
print $out;
|
||||
}
|
||||
else {
|
||||
@@ -2579,9 +2585,9 @@ if (!GETPOST('hide_websitemenu'))
|
||||
}
|
||||
|
||||
if ($pagepreviousid) print '<a class="valignmiddle" href="'.$_SERVER['PHP_SELF'].'?website='.urlencode($object->ref).'&pageid='.$pagepreviousid.'&action='.$action.'">'.img_previous($langs->trans("PreviousContainer")).'</a>';
|
||||
else print '<span class="valignmiddle opacitymedium">'.img_previous($langs->trans("PreviousContainer")).'</span>';
|
||||
else print '<span class="valignmiddle opacitymedium">'.img_previous($langs->trans("Previous")).'</span>';
|
||||
if ($pagenextid) print '<a class="valignmiddle" href="'.$_SERVER['PHP_SELF'].'?website='.urlencode($object->ref).'&pageid='.$pagenextid.'&action='.$action.'">'.img_next($langs->trans("NextContainer")).'</a>';
|
||||
else print '<span class="valignmiddle opacitymedium">'.img_next($langs->trans("NextContainer")).'</span>';
|
||||
else print '<span class="valignmiddle opacitymedium">'.img_next($langs->trans("Next")).'</span>';
|
||||
|
||||
$websitepage = new WebSitePage($db);
|
||||
if ($pageid > 0 && ($action == 'preview' || $action == 'createfromclone' || $action == 'createpagefromclone'))
|
||||
|
||||
Reference in New Issue
Block a user