Responsive
This commit is contained in:
parent
1053112843
commit
666e60a883
@ -1875,8 +1875,8 @@ class Contrat extends CommonObject
|
||||
/**
|
||||
* Return label of a contract status
|
||||
*
|
||||
* @param int $mode 0=libelle long, 1=libelle court, 2=Picto + Libelle court, 3=Picto, 4=Picto + Long label of all services, 5=Libelle court + Picto, 6=Picto of all services, 7=Same than 6 with fixed length
|
||||
* @return string Label
|
||||
* @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto, 6=Long label + Picto, 7=Same than 6 with fixed length
|
||||
* @return string Label
|
||||
*/
|
||||
public function getLibStatut($mode)
|
||||
{
|
||||
@ -1888,7 +1888,7 @@ class Contrat extends CommonObject
|
||||
* Renvoi label of a given contrat status
|
||||
*
|
||||
* @param int $status Id status
|
||||
* @param int $mode 0=Long label, 1=Short label, 2=Picto + Libelle court, 3=Picto, 4=Picto + Long label of all services, 5=Libelle court + Picto, 6=Picto of all services, 7=Same than 6 with fixed length
|
||||
* @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto, 6=Long label + Picto, 7=Same than 6 with fixed length
|
||||
* @return string Label
|
||||
*/
|
||||
public function LibStatut($status, $mode)
|
||||
@ -1921,13 +1921,13 @@ class Contrat extends CommonObject
|
||||
$text.=': ';
|
||||
$text.='</span>';
|
||||
}
|
||||
$text.=($mode == 7?'<span class="nowrap">':'');
|
||||
$text.=($mode == 7?'<span class="nowraponall">':'');
|
||||
$text.=($mode != 7 || $this->nbofserviceswait > 0) ? ($this->nbofserviceswait.ContratLigne::LibStatut(0, 3, -1, 'class="marginleft2"')).(($mode != 7 || $this->nbofservicesopened || $this->nbofservicesexpired || $this->nbofservicesclosed)?' ':'') : '';
|
||||
$text.=($mode == 7?'</span><span class="nowrap">':'');
|
||||
$text.=($mode == 7?'</span><span class="nowraponall">':'');
|
||||
$text.=($mode != 7 || $this->nbofservicesopened > 0) ? ($this->nbofservicesopened.ContratLigne::LibStatut(4, 3, 0, 'class="marginleft2"')).(($mode != 7 || $this->nbofservicesexpired || $this->nbofservicesclosed)?' ':'') : '';
|
||||
$text.=($mode == 7?'</span><span class="nowrap">':'');
|
||||
$text.=($mode == 7?'</span><span class="nowraponall">':'');
|
||||
$text.=($mode != 7 || $this->nbofservicesexpired > 0) ? ($this->nbofservicesexpired.ContratLigne::LibStatut(4, 3, 1, 'class="marginleft2"')).(($mode != 7 || $this->nbofservicesclosed)?' ':'') : '';
|
||||
$text.=($mode == 7?'</span><span class="nowrap">':'');
|
||||
$text.=($mode == 7?'</span><span class="nowraponall">':'');
|
||||
$text.=($mode != 7 || $this->nbofservicesclosed > 0) ? ($this->nbofservicesclosed.ContratLigne::LibStatut(5, 3, -1, 'class="marginleft2"')) : '';
|
||||
$text.=($mode == 7?'</span>':'');
|
||||
return $text;
|
||||
|
||||
@ -133,7 +133,7 @@ class box_accountancy_last_manual_entries extends ModeleBoxes
|
||||
);
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => 'class="nowrap right"',
|
||||
'td' => 'class="nowraponall right"',
|
||||
'text' => price($amount, 0, $langs, 0, -1, -1, $conf->currency),
|
||||
);
|
||||
|
||||
|
||||
@ -173,7 +173,7 @@ class box_activity extends ModeleBoxes
|
||||
$totalnb += $data[$j]->nb;
|
||||
|
||||
$this->info_box_contents[$line][3] = array(
|
||||
'td' => 'class="nowrap right"',
|
||||
'td' => 'class="nowraponall right"',
|
||||
'text' => price($data[$j]->Mnttot, 1, $langs, 0, 0, -1, $conf->currency),
|
||||
);
|
||||
$this->info_box_contents[$line][4] = array(
|
||||
@ -255,7 +255,7 @@ class box_activity extends ModeleBoxes
|
||||
$totalnb += $data[$j]->nb;
|
||||
|
||||
$this->info_box_contents[$line][3] = array(
|
||||
'td' => 'class="nowrap right"',
|
||||
'td' => 'class="nowraponall right"',
|
||||
'text' => price($data[$j]->Mnttot, 1, $langs, 0, 0, -1, $conf->currency),
|
||||
);
|
||||
$this->info_box_contents[$line][4] = array(
|
||||
@ -339,7 +339,7 @@ class box_activity extends ModeleBoxes
|
||||
);
|
||||
|
||||
$this->info_box_contents[$line][3] = array(
|
||||
'td' => 'class="nowrap right"',
|
||||
'td' => 'class="nowraponall right"',
|
||||
'text' => price($data[$j]->Mnttot, 1, $langs, 0, 0, -1, $conf->currency)
|
||||
);
|
||||
|
||||
@ -421,7 +421,7 @@ class box_activity extends ModeleBoxes
|
||||
);
|
||||
$totalnb += $data[$j]->nb;
|
||||
$this->info_box_contents[$line][3] = array(
|
||||
'td' => 'class="nowrap right"',
|
||||
'td' => 'class="nowraponall right"',
|
||||
'text' => price($data[$j]->Mnttot, 1, $langs, 0, 0, -1, $conf->currency),
|
||||
);
|
||||
$this->info_box_contents[$line][4] = array(
|
||||
|
||||
@ -116,7 +116,7 @@ class box_boms extends ModeleBoxes
|
||||
$productstatic->ref = $objp->product_ref;
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => '',
|
||||
'td' => 'class="nowraponall"',
|
||||
'text' => $bomstatic->getNomUrl(1),
|
||||
'asis' => 1,
|
||||
);
|
||||
|
||||
@ -135,7 +135,7 @@ class box_commandes extends ModeleBoxes
|
||||
$societestatic->logo = $objp->logo;
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => '',
|
||||
'td' => 'class="nowraponall"',
|
||||
'text' => $commandestatic->getNomUrl(1),
|
||||
'asis' => 1,
|
||||
);
|
||||
@ -147,7 +147,7 @@ class box_commandes extends ModeleBoxes
|
||||
);
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => 'class="nowrap right"',
|
||||
'td' => 'class="nowraponall right"',
|
||||
'text' => price($objp->total_ht, 0, $langs, 0, -1, -1, $conf->currency),
|
||||
);
|
||||
|
||||
|
||||
@ -154,7 +154,7 @@ class box_comptes extends ModeleBoxes
|
||||
);
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => 'class="liste_total right"',
|
||||
'td' => 'class="liste_total right nowraponall"',
|
||||
'text' => price($solde, 0, $langs, 0, -1, -1, $key)
|
||||
);
|
||||
$line++;
|
||||
|
||||
@ -136,13 +136,13 @@ class box_contacts extends ModeleBoxes
|
||||
$societestatic->fournisseur = $objp->fournisseur;
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => '',
|
||||
'td' => 'class="tdoverflowmax150 maxwidth150onsmartphone"',
|
||||
'text' => $contactstatic->getNomUrl(1),
|
||||
'asis' => 1,
|
||||
);
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => '',
|
||||
'td' => 'class="tdoverflowmax150 maxwidth150onsmartphone"',
|
||||
'text' => ($objp->fk_soc > 0 ? $societestatic->getNomUrl(1) : ''),
|
||||
'asis' => 1,
|
||||
);
|
||||
|
||||
@ -145,13 +145,13 @@ class box_factures_fourn_imp extends ModeleBoxes
|
||||
);
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => '',
|
||||
'td' => 'class="tdoverflowmax150 maxwidth150onsmartphone"',
|
||||
'text' => $thirdpartytmp->getNomUrl(1, '', 40),
|
||||
'asis' => 1,
|
||||
);
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => 'class="nowrap right"',
|
||||
'td' => 'class="nowraponall right"',
|
||||
'text' => price($objp->total_ht, 0, $langs, 0, -1, -1, $conf->currency),
|
||||
);
|
||||
|
||||
|
||||
@ -157,7 +157,7 @@ class box_factures_imp extends ModeleBoxes
|
||||
);
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => '',
|
||||
'td' => 'class="tdoverflowmax150 maxwidth150onsmartphone"',
|
||||
'text' => $societestatic->getNomUrl(1, '', 44),
|
||||
'asis' => 1,
|
||||
);
|
||||
|
||||
@ -120,13 +120,13 @@ class box_ficheinter extends ModeleBoxes
|
||||
$companystatic->email = $objp->semail;
|
||||
|
||||
$this->info_box_contents[$i][] = array(
|
||||
'td' => '',
|
||||
'td' => 'class="nowraponall"',
|
||||
'text' => $ficheinterstatic->getNomUrl(1),
|
||||
'asis' => 1,
|
||||
);
|
||||
|
||||
$this->info_box_contents[$i][] = array(
|
||||
'td' => '',
|
||||
'td' => 'class="tdoverflowmax150 maxwidth150onsmartphone"',
|
||||
'text' => $companystatic->getNomUrl(1),
|
||||
'asis' => 1,
|
||||
);
|
||||
|
||||
@ -140,7 +140,7 @@ class box_last_modified_ticket extends ModeleBoxes
|
||||
|
||||
// Ticket
|
||||
$this->info_box_contents[$i][0] = array(
|
||||
'td' => 'class="left"',
|
||||
'td' => 'class="nowraponall"',
|
||||
'text' => $ticket->getNomUrl(1),
|
||||
'asis' => 1,
|
||||
);
|
||||
@ -148,7 +148,7 @@ class box_last_modified_ticket extends ModeleBoxes
|
||||
|
||||
// Subject
|
||||
$this->info_box_contents[$i][$r] = array(
|
||||
'td' => 'class="left"',
|
||||
'td' => 'class="nowrap"',
|
||||
'text' => $objp->subject, // Some event have no ref
|
||||
'url' => DOL_URL_ROOT."/ticket/card.php?track_id=".$objp->track_id,
|
||||
);
|
||||
@ -156,7 +156,7 @@ class box_last_modified_ticket extends ModeleBoxes
|
||||
|
||||
// Customer
|
||||
$this->info_box_contents[$i][$r] = array(
|
||||
'td' => 'class="left"',
|
||||
'td' => 'class="tdoverflowmax150 maxwidth300onsmartphone"',
|
||||
'text' => $link,
|
||||
'asis' => 1,
|
||||
);
|
||||
@ -172,7 +172,7 @@ class box_last_modified_ticket extends ModeleBoxes
|
||||
|
||||
// Statut
|
||||
$this->info_box_contents[$i][$r] = array(
|
||||
'td' => 'class="right"',
|
||||
'td' => 'class="right nowraponall"',
|
||||
'text' => $ticket->getLibStatut(3)
|
||||
);
|
||||
$r++;
|
||||
|
||||
@ -141,7 +141,7 @@ class box_last_ticket extends ModeleBoxes
|
||||
|
||||
// Ticket
|
||||
$this->info_box_contents[$i][$r] = array(
|
||||
'td' => 'class="left"',
|
||||
'td' => 'class="nowraponall"',
|
||||
'text' => $ticket->getNomUrl(1),
|
||||
'asis' => 1
|
||||
);
|
||||
@ -149,7 +149,7 @@ class box_last_ticket extends ModeleBoxes
|
||||
|
||||
// Subject
|
||||
$this->info_box_contents[$i][$r] = array(
|
||||
'td' => 'class="left"',
|
||||
'td' => '',
|
||||
'text' => $objp->subject, // Some event have no ref
|
||||
'url' => DOL_URL_ROOT."/ticket/card.php?track_id=" . $objp->track_id,
|
||||
);
|
||||
@ -157,7 +157,7 @@ class box_last_ticket extends ModeleBoxes
|
||||
|
||||
// Customer
|
||||
$this->info_box_contents[$i][$r] = array(
|
||||
'td' => 'class="left"',
|
||||
'td' => '',
|
||||
'text' => $link,
|
||||
'asis' => 1,
|
||||
);
|
||||
@ -172,7 +172,7 @@ class box_last_ticket extends ModeleBoxes
|
||||
|
||||
// Statut
|
||||
$this->info_box_contents[$i][$r] = array(
|
||||
'td' => 'class="right"',
|
||||
'td' => 'class="right nowraponall"',
|
||||
'text' => $ticket->getLibStatut(3),
|
||||
);
|
||||
$r++;
|
||||
|
||||
@ -78,11 +78,11 @@ class box_lastlogin extends ModeleBoxes
|
||||
|
||||
$line=0;
|
||||
$this->info_box_contents[$line][0] = array(
|
||||
'td' => '',
|
||||
'td' => 'class="tdoverflowmax150 maxwidth150onsmartphone"',
|
||||
'text' => $langs->trans("User"),
|
||||
);
|
||||
$this->info_box_contents[$line][1] = array(
|
||||
'td' => '',
|
||||
'td' => 'class="tdoverflowmax150 maxwidth150onsmartphone"',
|
||||
'text' => $user->getNomUrl(-1),
|
||||
'asis' => 1
|
||||
);
|
||||
|
||||
@ -124,13 +124,13 @@ class box_members extends ModeleBoxes
|
||||
}
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => '',
|
||||
'td' => 'class="tdoverflowmax150 maxwidth150onsmartphone"',
|
||||
'text' => $memberstatic->getNomUrl(1),
|
||||
'asis' => 1,
|
||||
);
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => '',
|
||||
'td' => 'class="tdoverflowmax150 maxwidth150onsmartphone"',
|
||||
'text' => $memberstatic->company,
|
||||
'url' => DOL_URL_ROOT."/adherents/card.php?rowid=".$objp->rowid,
|
||||
);
|
||||
|
||||
@ -116,7 +116,7 @@ class box_mos extends ModeleBoxes
|
||||
$productstatic->ref = $objp->product_ref;
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => '',
|
||||
'td' => 'class="nowraponall"',
|
||||
'text' => $mostatic->getNomUrl(1),
|
||||
'asis' => 1,
|
||||
);
|
||||
|
||||
@ -123,7 +123,7 @@ class box_project extends ModeleBoxes
|
||||
);
|
||||
|
||||
$this->info_box_contents[$i][] = array(
|
||||
'td' => '',
|
||||
'td' => 'class="tdoverflowmax150 maxwidth200onsmartphone"',
|
||||
'text' => $objp->title,
|
||||
);
|
||||
|
||||
|
||||
@ -128,7 +128,7 @@ class box_propales extends ModeleBoxes
|
||||
}
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => '',
|
||||
'td' => 'class="nowraponall"',
|
||||
'text' => $propalstatic->getNomUrl(1),
|
||||
'text2'=> $late,
|
||||
'asis' => 1,
|
||||
|
||||
@ -124,19 +124,19 @@ class box_supplier_orders extends ModeleBoxes
|
||||
$thirdpartytmp->logo = $objp->logo;
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => '',
|
||||
'td' => 'class="nowraponall"',
|
||||
'text' => $supplierorderstatic->getNomUrl(1),
|
||||
'asis' => 1
|
||||
);
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => '',
|
||||
'td' => 'class="tdoverflowmax150 maxwidth150onsmartphone"',
|
||||
'text' => $thirdpartytmp->getNomUrl(1, 'supplier'),
|
||||
'asis' => 1,
|
||||
);
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => 'class="right nowrap"',
|
||||
'td' => 'class="right nowraponall"',
|
||||
'text' => price($objp->total_ht, 0, $langs, 0, -1, -1, $conf->currency),
|
||||
);
|
||||
|
||||
|
||||
@ -130,19 +130,19 @@ class box_supplier_orders_awaiting_reception extends ModeleBoxes
|
||||
$thirdpartytmp->logo = $objp->logo;
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => '',
|
||||
'td' => 'class="nowraponall"',
|
||||
'text' => $supplierorderstatic->getNomUrl(1),
|
||||
'asis' => 1
|
||||
);
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => '',
|
||||
'td' => 'class="tdoverflowmax150 maxwidth150onsmartphone"',
|
||||
'text' => $thirdpartytmp->getNomUrl(1, 'supplier'),
|
||||
'asis' => 1,
|
||||
);
|
||||
|
||||
$this->info_box_contents[$line][] = array(
|
||||
'td' => 'class="right nowrap"',
|
||||
'td' => 'class="right nowraponall"',
|
||||
'text' => price($objp->total_ht, 0, $langs, 0, -1, -1, $conf->currency),
|
||||
);
|
||||
|
||||
|
||||
@ -681,6 +681,12 @@ select.flat.selectlimit {
|
||||
-webkit-line-clamp: 2;
|
||||
overflow: hidden;
|
||||
}
|
||||
.twolinesmax {
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.tablelistofcalendars {
|
||||
margin-top: 25px !important;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user