public function lineItem($actions = '', $backUrl = '', $passId = '') { $line = ''; // ligne 1 : Infos heure $line .= Xtable::tr(); // Nom (Openable) $line .= Xtable::openTd(['colspan' => '2', 'class' => 'dark-txt bold']); $txt = gl('Trou') . ' ' . $this->starttee . ' | '; $txt .= gl('à partir de') . ' ' . showHeure($this->startheure) . ' | '; $txt .= gl('toutes les') . ' ' . showHeure($this->interval) . ' ' . gl('minutes'); if (!(strpos($actions, 'open') === false)) { $line .= Xtable::link('configdepart.open', $txt, [$this->id]); } else { $line .= $txt; } $line .= Xtable::closeTd(); // Buttons $line .= Xtable::openTdButton(['rowspan' => '2']); // Editable if (!(strpos($actions, 'edit') === false)) { $line .= Xbutton::bttEdit('configdepart.create', [$backUrl, $this->id]); } // Deletable if (!(strpos($actions, 'delete') === false)) { $line .= Xbutton::bttdelete('configdepart.delete', [$backUrl, $this->id]); } $line .= Xtable::closeTd(); $line .= Xtable::trClose(); // ligne 2 : Parcours $line .= Xtable::tr(); // Parcours $line .= Xtable::openTd(['colspan' => '2']); $line .= gl('Parcours') . ' : ' . $this->parcour->nom; $line .= Xtable::closeTd(); $line .= Xtable::trClose(); // Separation $line .= Xtable::trSepare(); return $line; }