Debug v20
This commit is contained in:
parent
be06d2d9e0
commit
832aca30dc
7 changed files with 28 additions and 18 deletions
|
|
@ -2293,7 +2293,7 @@ class Adherent extends CommonObject
|
|||
/**
|
||||
* Return clicable name (with picto eventually)
|
||||
*
|
||||
* @param int $withpictoimg 0=No picto, 1=Include picto into link, 2=Only picto, -1=Include photo into link, -2=Only picto photo, -3=Only photo very small)
|
||||
* @param int $withpictoimg 0=No picto, 1=Include picto into link, 2=Only picto, -1=Include photo into link, -2=Only picto photo, -3=Only photo very small, -4=???)
|
||||
* @param int $maxlen length max label
|
||||
* @param string $option Page for link ('card', 'category', 'subscription', ...)
|
||||
* @param string $mode ''=Show firstname+lastname as label (using default order), 'firstname'=Show only firstname, 'lastname'=Show only lastname, 'login'=Show login, 'ref'=Show ref
|
||||
|
|
@ -2363,7 +2363,7 @@ class Adherent extends CommonObject
|
|||
|
||||
$result .= $linkstart;
|
||||
if ($withpictoimg) {
|
||||
$result .= '<div class="inline-block nopadding valignmiddle">';
|
||||
//$result .= '<div class="inline-block nopadding valignmiddle">';
|
||||
}
|
||||
if ($withpictoimg) {
|
||||
$paddafterimage = '';
|
||||
|
|
@ -2398,7 +2398,7 @@ class Adherent extends CommonObject
|
|||
}
|
||||
}
|
||||
if ($withpictoimg) {
|
||||
$result .= '</div>';
|
||||
//$result .= '</div>';
|
||||
}
|
||||
$result .= $linkend;
|
||||
|
||||
|
|
|
|||
|
|
@ -554,7 +554,7 @@ class Subscription extends CommonObject
|
|||
|
||||
$return .= '<div class="info-box-content">';
|
||||
$return .= '<span class="info-box-ref inline-block tdoverflowmax150 valignmiddle">';
|
||||
$return .= $this->getNomUrl(-1);
|
||||
$return .= $this->getNomUrl(0);
|
||||
$return .= '</span>';
|
||||
if ($selected >= 0) {
|
||||
$return .= '<input id="cb'.$this->id.'" class="flat checkforselect fright" type="checkbox" name="toselect[]" value="'.$this->id.'"'.($selected ? ' checked="checked"' : '').'>';
|
||||
|
|
@ -564,11 +564,11 @@ class Subscription extends CommonObject
|
|||
}
|
||||
|
||||
if (!empty($arraydata['member']) && is_object($arraydata['member'])) {
|
||||
$return .= '<br><span class="inline-block">'.$arraydata['member']->getNomUrl(-4).'</span>';
|
||||
$return .= '<br><div class="inline-block tdoverflowmax150">'.$arraydata['member']->getNomUrl(-4).'</div>';
|
||||
}
|
||||
|
||||
if (property_exists($this, 'amount')) {
|
||||
$return .= '<br><span class="margintoponly amount inline-block">'.price($this->amount).'</span>';
|
||||
$return .= '<br><span class="amount inline-block">'.price($this->amount).'</span>';
|
||||
if (!empty($arraydata['bank'])) {
|
||||
$return .= ' <span class="info-box-label ">'.$arraydata['bank']->getNomUrl(-1).'</span>';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3307,7 +3307,7 @@ class Propal extends CommonObject
|
|||
public function LibStatut($status, $mode = 1)
|
||||
{
|
||||
// phpcs:enable
|
||||
global $conf, $hookmanager;
|
||||
global $hookmanager;
|
||||
|
||||
// Init/load array of translation of status
|
||||
if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
|
||||
|
|
@ -3342,7 +3342,6 @@ class Propal extends CommonObject
|
|||
$statusType = 'status6';
|
||||
}
|
||||
|
||||
|
||||
$parameters = array('status' => $status, 'mode' => $mode);
|
||||
$reshook = $hookmanager->executeHooks('LibStatut', $parameters, $this); // Note that $action and $object may have been modified by hook
|
||||
|
||||
|
|
@ -3930,9 +3929,9 @@ class Propal extends CommonObject
|
|||
|
||||
$return = '<div class="box-flex-item box-flex-grow-zero">';
|
||||
$return .= '<div class="info-box info-box-sm">';
|
||||
$return .= '<span class="info-box-icon bg-infobox-action">';
|
||||
$return .= '<div class="info-box-icon bg-infobox-action">';
|
||||
$return .= img_picto('', $this->picto);
|
||||
$return .= '</span>';
|
||||
$return .= '</div>';
|
||||
$return .= '<div class="info-box-content">';
|
||||
$return .= '<span class="info-box-ref inline-block tdoverflowmax150 valignmiddle">'.(method_exists($this, 'getNomUrl') ? $this->getNomUrl() : $this->ref).'</span>';
|
||||
if ($selected >= 0) {
|
||||
|
|
@ -3941,11 +3940,15 @@ class Propal extends CommonObject
|
|||
if (!empty($arraydata['projectlink'])) {
|
||||
$return .= '<span class="info-box-ref"> | '.$arraydata['projectlink'].'</span>';
|
||||
}
|
||||
if (!empty($arraydata['authorlink'])) {
|
||||
$return .= '<br><span class="info-box-label">'.$arraydata['authorlink'].'</span>';
|
||||
$return .= '<br>';
|
||||
if (property_exists($this, 'thirdparty') && is_object($this->thirdparty)) {
|
||||
$return .= '<div class="info-box-ref tdoverflowmax150">'.$this->thirdparty->getNomUrl(1).'</div>';
|
||||
}
|
||||
if (property_exists($this, 'total_ht')) {
|
||||
$return .= '<br><span class="info-box-label amount" title="'.$langs->trans("AmountHT").'">'.price($this->total_ht).'</span>';
|
||||
$return .= '<span class="info-box-label amount" title="'.$langs->trans("AmountHT").'">'.price($this->total_ht).'</span>';
|
||||
}
|
||||
if (!empty($arraydata['authorlink'])) {
|
||||
$return .= ' <span class="info-box-label">'.$arraydata['authorlink'].'</span>';
|
||||
}
|
||||
if (method_exists($this, 'getLibStatut')) {
|
||||
$return .= '<br><div class="info-box-status">'.$this->getLibStatut(3).'</div>';
|
||||
|
|
|
|||
|
|
@ -1716,7 +1716,7 @@ while ($i < $imaxinloop) {
|
|||
|
||||
$objectstatic->id = $obj->rowid;
|
||||
$objectstatic->ref = $obj->ref;
|
||||
$objectstatic->ref_client = $obj->ref_client;
|
||||
$objectstatic->ref_customer = $obj->ref_client;
|
||||
$objectstatic->note_public = $obj->note_public;
|
||||
$objectstatic->note_private = $obj->note_private;
|
||||
$objectstatic->statut = $obj->status;
|
||||
|
|
@ -1776,6 +1776,7 @@ while ($i < $imaxinloop) {
|
|||
print '<div class="box-flex-container kanban">';
|
||||
}
|
||||
// Output Kanban
|
||||
$objectstatic->thirdparty = $companystatic;
|
||||
$userstatic->fetch($obj->fk_user_author);
|
||||
$arrayofparams = array('selected' => in_array($object->id, $arrayofselected), 'authorlink' => $userstatic->getNomUrl(-2), 'projectlink' => $projectstatic->getNomUrl(2));
|
||||
print $objectstatic->getKanbanView('', $arrayofparams);
|
||||
|
|
|
|||
|
|
@ -1453,7 +1453,7 @@ class Contact extends CommonObject
|
|||
* Return name of contact with link (and eventually picto)
|
||||
* Use $this->id, $this->lastname, $this->firstname, this->civility_id
|
||||
*
|
||||
* @param int $withpicto Include picto with link (1=picto + name, 2=picto only, -1=photo+name, -2=photo only)
|
||||
* @param int $withpicto Include picto with link (0=no picto, 1=picto + name, 2=picto only, -1=photo+name, -2=photo only)
|
||||
* @param string $option Where the link point to
|
||||
* @param int $maxlen Max length of
|
||||
* @param string $moreparam Add more param into URL
|
||||
|
|
@ -2190,7 +2190,7 @@ class Contact extends CommonObject
|
|||
}
|
||||
$return .= '</span>';
|
||||
$return .= '<div class="info-box-content">';
|
||||
$return .= '<div class="info-box-ref inline-block tdoverflowmax150 valignmiddle">'.(method_exists($this, 'getNomUrl') ? $this->getNomUrl(1) : $this->ref).'</div>';
|
||||
$return .= '<div class="info-box-ref inline-block tdoverflowmax150 valignmiddle">'.(method_exists($this, 'getNomUrl') ? $this->getNomUrl(0) : $this->ref).'</div>';
|
||||
if ($selected >= 0) {
|
||||
$return .= '<input id="cb'.$this->id.'" class="flat checkforselect fright" type="checkbox" name="toselect[]" value="'.$this->id.'"'.($selected ? ' checked="checked"' : '').'>';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -547,7 +547,9 @@ if (GETPOSTISSET('THEME_SATURATE_RATIO')) {
|
|||
margin-bottom: 0px;
|
||||
margin-<?php echo $left; ?>: 10px;
|
||||
}
|
||||
|
||||
.kanban .box-flex-item {
|
||||
line-height: 1.4em;
|
||||
}
|
||||
|
||||
.info-box-title {
|
||||
width: calc(100% - 20px);
|
||||
|
|
|
|||
|
|
@ -562,7 +562,7 @@ if (GETPOSTISSET('THEME_SATURATE_RATIO')) {
|
|||
flex-wrap: wrap;
|
||||
width: 100%;
|
||||
margin: 0 0 0 -10px;
|
||||
justify-content: space-between;
|
||||
/* justify-content: space-between; Do not use this: If there is 3 elements on last line and previous has 4, then the 3 are centered */
|
||||
}
|
||||
.box-flex-container-columns {
|
||||
display: flex; /* or inline-flex */
|
||||
|
|
@ -597,6 +597,10 @@ if (GETPOSTISSET('THEME_SATURATE_RATIO')) {
|
|||
margin-bottom: 0px;
|
||||
margin-<?php echo $left; ?>: 10px;
|
||||
}
|
||||
.kanban .box-flex-item {
|
||||
line-height: 1.4em;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 767px)
|
||||
{
|
||||
.box-flex-container {
|
||||
|
|
|
|||
Loading…
Reference in a new issue