Fix css
This commit is contained in:
parent
ef31c47c15
commit
9684c8b4bc
@ -1831,13 +1831,13 @@ class Contrat extends CommonObject
|
|||||||
$text.=': ';
|
$text.=': ';
|
||||||
}
|
}
|
||||||
$text.=($mode == 7?'<div class="inline-block">':'');
|
$text.=($mode == 7?'<div class="inline-block">':'');
|
||||||
$text.=($mode != 7 || $this->nbofserviceswait > 0) ? ($this->nbofserviceswait.$line->LibStatut(0,3)).(($mode != 7 || $this->nbofservicesopened || $this->nbofservicesexpired || $this->nbofservicesclosed)?' ':'') : '';
|
$text.=($mode != 7 || $this->nbofserviceswait > 0) ? ($this->nbofserviceswait.$line->LibStatut(0,3,-1,'class="paddingleft2 inline-block valigntextbottom"')).(($mode != 7 || $this->nbofservicesopened || $this->nbofservicesexpired || $this->nbofservicesclosed)?' ':'') : '';
|
||||||
$text.=($mode == 7?'</div><div class="inline-block">':'');
|
$text.=($mode == 7?'</div><div class="inline-block">':'');
|
||||||
$text.=($mode != 7 || $this->nbofservicesopened > 0) ? ($this->nbofservicesopened.$line->LibStatut(4,3,0)).(($mode != 7 || $this->nbofservicesexpired || $this->nbofservicesclosed)?' ':'') : '';
|
$text.=($mode != 7 || $this->nbofservicesopened > 0) ? ($this->nbofservicesopened.$line->LibStatut(4,3,0,'class="paddingleft2 inline-block valigntextbottom"')).(($mode != 7 || $this->nbofservicesexpired || $this->nbofservicesclosed)?' ':'') : '';
|
||||||
$text.=($mode == 7?'</div><div class="inline-block">':'');
|
$text.=($mode == 7?'</div><div class="inline-block">':'');
|
||||||
$text.=($mode != 7 || $this->nbofservicesexpired > 0) ? ($this->nbofservicesexpired.$line->LibStatut(4,3,1)).(($mode != 7 || $this->nbofservicesclosed)?' ':'') : '';
|
$text.=($mode != 7 || $this->nbofservicesexpired > 0) ? ($this->nbofservicesexpired.$line->LibStatut(4,3,1,'class="paddingleft2 inline-block valigntextbottom"')).(($mode != 7 || $this->nbofservicesclosed)?' ':'') : '';
|
||||||
$text.=($mode == 7?'</div><div class="inline-block">':'');
|
$text.=($mode == 7?'</div><div class="inline-block">':'');
|
||||||
$text.=($mode != 7 || $this->nbofservicesclosed > 0) ? ($this->nbofservicesclosed.$line->LibStatut(5,3)) : '';
|
$text.=($mode != 7 || $this->nbofservicesclosed > 0) ? ($this->nbofservicesclosed.$line->LibStatut(5,3,-1,'class="paddingleft2 inline-block valigntextbottom"')) : '';
|
||||||
$text.=($mode == 7?'</div>':'');
|
$text.=($mode == 7?'</div>':'');
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
@ -2509,9 +2509,10 @@ class ContratLigne extends CommonObjectLine
|
|||||||
* @param int $statut Id statut
|
* @param int $statut Id statut
|
||||||
* @param int $mode 0=libelle long, 1=libelle court, 2=Picto + Libelle court, 3=Picto, 4=Picto + Libelle long, 5=Libelle court + Picto
|
* @param int $mode 0=libelle long, 1=libelle court, 2=Picto + Libelle court, 3=Picto, 4=Picto + Libelle long, 5=Libelle court + Picto
|
||||||
* @param int $expired 0=Not expired, 1=Expired, -1=Both or unknown
|
* @param int $expired 0=Not expired, 1=Expired, -1=Both or unknown
|
||||||
|
* @param string $moreatt More attribute
|
||||||
* @return string Libelle
|
* @return string Libelle
|
||||||
*/
|
*/
|
||||||
function LibStatut($statut,$mode,$expired=-1)
|
function LibStatut($statut,$mode,$expired=-1,$moreatt='')
|
||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
$langs->load("contracts");
|
$langs->load("contracts");
|
||||||
@ -2541,11 +2542,11 @@ class ContratLigne extends CommonObjectLine
|
|||||||
}
|
}
|
||||||
if ($mode == 3)
|
if ($mode == 3)
|
||||||
{
|
{
|
||||||
if ($statut == 0) { return img_picto($langs->trans('ServiceStatusInitial'),'statut0'); }
|
if ($statut == 0) { return img_picto($langs->trans('ServiceStatusInitial'),'statut0',$moreatt); }
|
||||||
if ($statut == 4 && $expired == -1) { return img_picto($langs->trans('ServiceStatusRunning'),'statut4'); }
|
if ($statut == 4 && $expired == -1) { return img_picto($langs->trans('ServiceStatusRunning'),'statut4',$moreatt); }
|
||||||
if ($statut == 4 && $expired == 0) { return img_picto($langs->trans('ServiceStatusNotLate'),'statut4'); }
|
if ($statut == 4 && $expired == 0) { return img_picto($langs->trans('ServiceStatusNotLate'),'statut4',$moreatt); }
|
||||||
if ($statut == 4 && $expired == 1) { return img_picto($langs->trans('ServiceStatusLate'),'statut3'); }
|
if ($statut == 4 && $expired == 1) { return img_picto($langs->trans('ServiceStatusLate'),'statut3',$moreatt); }
|
||||||
if ($statut == 5) { return img_picto($langs->trans('ServiceStatusClosed'),'statut6'); }
|
if ($statut == 5) { return img_picto($langs->trans('ServiceStatusClosed'),'statut6',$moreatt); }
|
||||||
}
|
}
|
||||||
if ($mode == 4)
|
if ($mode == 4)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -542,9 +542,15 @@ textarea.centpercent {
|
|||||||
.paddingleft {
|
.paddingleft {
|
||||||
padding-<?php print $left; ?>: 4px;
|
padding-<?php print $left; ?>: 4px;
|
||||||
}
|
}
|
||||||
|
.paddingleft2 {
|
||||||
|
padding-<?php print $left; ?>: 2px;
|
||||||
|
}
|
||||||
.paddingright {
|
.paddingright {
|
||||||
padding-<?php print $right; ?>: 4px;
|
padding-<?php print $right; ?>: 4px;
|
||||||
}
|
}
|
||||||
|
.paddingright2 {
|
||||||
|
padding-<?php print $right; ?>: 2px;
|
||||||
|
}
|
||||||
.cursorpointer {
|
.cursorpointer {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -542,9 +542,15 @@ textarea.centpercent {
|
|||||||
.paddingleft {
|
.paddingleft {
|
||||||
padding-<?php print $left; ?>: 4px;
|
padding-<?php print $left; ?>: 4px;
|
||||||
}
|
}
|
||||||
|
.paddingleft2 {
|
||||||
|
padding-<?php print $left; ?>: 2px;
|
||||||
|
}
|
||||||
.paddingright {
|
.paddingright {
|
||||||
padding-<?php print $right; ?>: 4px;
|
padding-<?php print $right; ?>: 4px;
|
||||||
}
|
}
|
||||||
|
.paddingright2 {
|
||||||
|
padding-<?php print $right; ?>: 2px;
|
||||||
|
}
|
||||||
.cursorpointer {
|
.cursorpointer {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user