NEW view mode for List of Orders
This commit is contained in:
parent
cdcd54e6fe
commit
26e274beb9
File diff suppressed because it is too large
Load Diff
@ -31,6 +31,40 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonincoterm.class.php';
|
|||||||
abstract class CommonOrder extends CommonObject
|
abstract class CommonOrder extends CommonObject
|
||||||
{
|
{
|
||||||
use CommonIncoterm;
|
use CommonIncoterm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return clicable link of object (with eventually picto)
|
||||||
|
*
|
||||||
|
* @param string $option Where point the link (0=> main card, 1,2 => shipment, 'nolink'=>No link)
|
||||||
|
* @return string HTML Code for Kanban thumb.
|
||||||
|
*/
|
||||||
|
public function getKanbanView($option = '')
|
||||||
|
{
|
||||||
|
global $langs, $conf;
|
||||||
|
|
||||||
|
$return = '<div class="box-flex-item box-flex-grow-zero">';
|
||||||
|
$return .= '<div class="info-box info-box-sm">';
|
||||||
|
$return .= '<div class="info-box-order">';
|
||||||
|
$return .= img_picto('', 'order');
|
||||||
|
|
||||||
|
$return .= '</div>';
|
||||||
|
$return .= '<div class="info-box-content">';
|
||||||
|
$return .= '<span class="info-box-ref">'.(method_exists($this, 'getNomUrl') ? $this->getNomUrl() : $this->ref).'</span>';
|
||||||
|
|
||||||
|
if (property_exists($this, 'thirdparty') && is_object($this->thirdparty)) {
|
||||||
|
$return .= '<br><span class="info-box-ref opacitymedium">'.$this->thirdparty->getNomUrl(1).'</span>';
|
||||||
|
}
|
||||||
|
if (property_exists($this, 'total_ht')) {
|
||||||
|
$return .= '<br><span class="info-box-ref amount">'.price($this->total_ht, 0, $langs, 0, -1, -1, $conf->currency).' '.$langs->trans('HT').'</span>';
|
||||||
|
}
|
||||||
|
if (method_exists($this, 'getLibStatut')) {
|
||||||
|
$return .= '<br><div class="info-box-status margintoponly">'.$this->getLibStatut(5).'</div>';
|
||||||
|
}
|
||||||
|
$return .= '</div>';
|
||||||
|
$return .= '</div>';
|
||||||
|
$return .= '</div>';
|
||||||
|
return $return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -101,6 +101,22 @@ if (!defined('ISLOADEDBYSTEELSHEET')) {
|
|||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
line-height: 92px;
|
line-height: 92px;
|
||||||
}
|
}
|
||||||
|
.info-box-order {
|
||||||
|
border-top-left-radius: 2px;
|
||||||
|
border-top-right-radius: 0;
|
||||||
|
border-bottom-right-radius: 0;
|
||||||
|
border-bottom-left-radius: 2px;
|
||||||
|
display: block;
|
||||||
|
overflow: hidden;
|
||||||
|
float: left;
|
||||||
|
height: 115px;
|
||||||
|
width: 88px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 2.3em;
|
||||||
|
line-height: 115px;
|
||||||
|
margin-right: 10px;
|
||||||
|
background: var(--colorbacktitle1) !important;
|
||||||
|
}
|
||||||
.opened-dash-board-wrap .info-box .info-box-icon {
|
.opened-dash-board-wrap .info-box .info-box-icon {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user