Clean code for kanban view

This commit is contained in:
Laurent Destailleur 2022-03-31 18:06:39 +02:00
parent e10f9b4435
commit 867883e9b1
4 changed files with 485 additions and 396 deletions

View File

@ -257,7 +257,7 @@ $form = new Form($db);
$now = dol_now();
//$help_url="EN:Module_MyObject|FR:Module_MyObject_FR|ES:Módulo_MyObject";
//$help_url = "EN:Module_MyObject|FR:Module_MyObject_FR|ES:Módulo_MyObject";
$help_url = '';
$title = $langs->trans('ListOf', $langs->transnoentitiesnoconv("MyObjects"));
$morejs = array();
@ -675,7 +675,7 @@ while ($i < $imaxinloop) {
} else {
// Show here line of result
$j = 0;
print '<tr class="oddeven">';
print '<tr data-rowid="'.$object->id.'" class="oddeven">';
foreach ($object->fields as $key => $val) {
$cssforfield = (empty($val['csslist']) ? (empty($val['css']) ? '' : $val['css']) : $val['csslist']);
if (in_array($val['type'], array('date', 'datetime', 'timestamp'))) {

File diff suppressed because it is too large Load Diff

View File

@ -6475,6 +6475,17 @@ dd.dropdowndd ul li {
white-space: nowrap;
}
/* ============================================================================== */
/* Kanban */
/* ============================================================================== */
.info-box-label {
max-width: 180px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* ============================================================================== */
/* Markdown rendering */

View File

@ -6345,6 +6345,18 @@ dd.dropdowndd ul li {
}
/* ============================================================================== */
/* Kanban */
/* ============================================================================== */
.info-box-label {
max-width: 180px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* ============================================================================== */
/* Markdown rendering */
/* ============================================================================== */