mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-25 02:41:26 +01:00
New: Add option MAIN_HIDE_INACTIVETAB_ON_PRINT to hide inactive tabs
when you use the "print" view on screen.
This commit is contained in:
@@ -6,7 +6,9 @@ English Dolibarr ChangeLog
|
||||
For users:
|
||||
- New: Add list of orders products in tab "consumption" on thirdparties.
|
||||
- New: Add graph stats for suppliers orders in tab "stats" on products.
|
||||
|
||||
- New: Add option MAIN_HIDE_INACTIVETAB_ON_PRINT to hide inactive tabs when you
|
||||
use the "print" view on screen.
|
||||
|
||||
For translators:
|
||||
- Update language files.
|
||||
|
||||
|
||||
@@ -622,7 +622,9 @@ function dol_get_fiche_head($links=array(), $active='0', $title='', $notab=0, $p
|
||||
// Show tabs
|
||||
for ($i = 0 ; $i <= $maxkey ; $i++)
|
||||
{
|
||||
$out.='<div class="inline-block tabsElem">';
|
||||
$isactive=(is_numeric($active) && $i == $active) || (! is_numeric($active) && $active == $links[$i][2]);
|
||||
|
||||
$out.='<div class="inline-block tabsElem'.((! $isactive && ! empty($conf->global->MAIN_HIDE_INACTIVETAB_ON_PRINT))?' hideonprint':'').'">';
|
||||
if (isset($links[$i][2]) && $links[$i][2] == 'image')
|
||||
{
|
||||
if (!empty($links[$i][0]))
|
||||
@@ -637,10 +639,9 @@ function dol_get_fiche_head($links=array(), $active='0', $title='', $notab=0, $p
|
||||
else if (! empty($links[$i][1]))
|
||||
{
|
||||
//print "x $i $active ".$links[$i][2]." z";
|
||||
if ((is_numeric($active) && $i == $active)
|
||||
|| (! is_numeric($active) && $active == $links[$i][2]))
|
||||
if ($isactive)
|
||||
{
|
||||
$out.='<a data-role="button" id="active" class="tab inline-block" href="'.$links[$i][0].'">'.$links[$i][1].'</a>'."\n";
|
||||
$out.='<a data-role="button"'.(! empty($links[$i][2])?' id="'.$links[$i][2].'"':'').' class="tabactive tab inline-block" href="'.$links[$i][0].'">'.$links[$i][1].'</a>'."\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -363,6 +363,9 @@ center .error { padding:8px !important; padding-left:26px !important; padding-ri
|
||||
.maxwidthonsmartphone { max-width: 100px; }
|
||||
<?php } ?>
|
||||
.linkobject { cursor:pointer; }
|
||||
<?php if (GETPOST("optioncss") == 'print') { ?>
|
||||
.hideonprint { display: none !important; }
|
||||
<?php } ?>
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
@@ -988,11 +991,11 @@ a.tab {
|
||||
-webkit-border-top-right-radius:6px;
|
||||
}
|
||||
|
||||
a.tab#active {
|
||||
.tabactive {
|
||||
color:#232323;
|
||||
font-weight:bold;
|
||||
background-color:#ffffff;
|
||||
<?php echo $dol_use_jmobile?'':'border-bottom:solid 1px #ffffff;'; ?>
|
||||
background-color:#ffffff !important;
|
||||
<?php echo $dol_use_jmobile?'':'border-bottom:solid 1px #ffffff !important;'; ?>
|
||||
}
|
||||
|
||||
a.tab:hover {color:#333333;}
|
||||
|
||||
@@ -246,6 +246,10 @@ div.inline-block
|
||||
.maxwidthonsmartphone { max-width: 100px; }
|
||||
<?php } ?>
|
||||
.linkobject { cursor: pointer; }
|
||||
<?php if (GETPOST("optioncss") == 'print') { ?>
|
||||
.hideonprint { display: none !important; }
|
||||
<?php } ?>
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
/* Styles for dragging lines */
|
||||
@@ -1082,8 +1086,8 @@ a.tab:visited {
|
||||
border-<?php print $left; ?>: 1px solid #D8D8D8;
|
||||
border-top: 1px solid #D8D8D8;
|
||||
}
|
||||
a.tab#active {
|
||||
background: white;
|
||||
div.tabs a.tab:active, .tabactive {
|
||||
background: white !important;
|
||||
border-bottom: #dee7ec 1px solid;
|
||||
font-family: <?php print $fontlist ?>;
|
||||
color: #436976;
|
||||
|
||||
@@ -270,6 +270,10 @@ div.inline-block
|
||||
.maxwidthonsmartphone { max-width: 100px; }
|
||||
<?php } ?>
|
||||
.linkobject { cursor: pointer; }
|
||||
<?php if (GETPOST("optioncss") == 'print') { ?>
|
||||
.hideonprint { display: none !important; }
|
||||
<?php } ?>
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
/* Styles for dragging lines */
|
||||
@@ -1127,8 +1131,8 @@ div.tabs a.tab {
|
||||
padding: 0px 10px 0px 10px;
|
||||
}
|
||||
|
||||
div.tabs a.tab#active {
|
||||
background-color: #FFF;
|
||||
div.tabs a.tab:active, .tabactive {
|
||||
background-color: #888 !important;
|
||||
color: #D45416;
|
||||
border-bottom: 0px;
|
||||
background-image: none;
|
||||
|
||||
@@ -245,6 +245,10 @@ div.inline-block
|
||||
.maxwidthonsmartphone { max-width: 100px; }
|
||||
<?php } ?>
|
||||
.linkobject { cursor: pointer; }
|
||||
<?php if (GETPOST("optioncss") == 'print') { ?>
|
||||
.hideonprint { display: none !important; }
|
||||
<?php } ?>
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
/* Styles for dragging lines */
|
||||
@@ -1225,8 +1229,8 @@ background: linear-gradient(top, #fceabb 0%,#fccd4d 50%,#FFA820 87%,#fbdf93 100%
|
||||
}
|
||||
|
||||
|
||||
div.tabs a.tab#active {
|
||||
color: #FFF;
|
||||
div.tabs a.tab:active, .tabactive {
|
||||
color: #FFF !important;
|
||||
padding: 0px 6px 0px 6px;
|
||||
-moz-border-radius-topleft:8px;
|
||||
-moz-border-radius-topright:8px;
|
||||
|
||||
@@ -412,6 +412,9 @@ th .button {
|
||||
.maxwidthonsmartphone { max-width: 100px; }
|
||||
<?php } ?>
|
||||
.linkobject { cursor: pointer; }
|
||||
<?php if (GETPOST("optioncss") == 'print') { ?>
|
||||
.hideonprint { display: none; }
|
||||
<?php } ?>
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
@@ -1443,7 +1446,7 @@ a.tab:link, a.tab:visited, a.tab:hover, a.tab#active {
|
||||
background-image: none !important;
|
||||
}
|
||||
|
||||
a.tab#active {
|
||||
.tabactive {
|
||||
<?php if ($usecss3) { ?>
|
||||
/* border-bottom: 1px solid rgb(<?php echo $colorbacktabactive; ?>) !important; */
|
||||
background: rgba(<?php echo $colorbacktabcard2; ?>, 0.5) url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/nav-overlay3.png',1); ?>) 50% 0 repeat-x;
|
||||
|
||||
Reference in New Issue
Block a user