update card notebook - refs #2681

pull/2818/head
Alex Aragón 6 years ago
parent 102aa5a0af
commit e28f86cce7
  1. 11
      main/inc/lib/display.lib.php
  2. 2
      main/inc/lib/notebook.lib.php

@ -2450,20 +2450,21 @@ class Display
$rightAction = '<span class="float-right">'.$rightAction.'</span>';
}
$title = !empty($title) ? '<h3 class="card-header">'.$title.' '.$rightAction.'</h3>'.$extra : '';
$footer = !empty($footer) ? '<div class="card-footer">'.$footer.'</div>' : '';
$title = !empty($title) ? '<h5 class="card-title">'.$title.' '.$rightAction.'</h5>'.$extra : '';
$footer = !empty($footer) ? '<p class="card-text"><small class="text-muted">'.$footer.'</small></p>' : '';
$typeList = ['primary', 'success', 'info', 'warning', 'danger'];
$style = !in_array($type, $typeList) ? 'default' : $type;
if (!empty($id)) {
$id = " id='$id'";
}
$cardBody = $title.' '.self::contentPanel($content).' '.$footer;
$panel = Display::tag('div',$cardBody,['id' => 'card-'.$id ,'class'=>'card-body']);
return '
<div '.$id.' class="card">
'.$title.'
'.self::contentPanel($content).'
'.$footer.'
'.$panel.'
</div>'
;
}

@ -302,7 +302,7 @@ class NotebookManager
echo Display::panel(
$row['description'],
$row['title'].$session_img.' <div class="pull-right">'.$actions.'</div>',
$row['title'].$session_img.' <div class="float-right">'.$actions.'</div>',
get_lang('CreationDate').': '.Display::dateToStringAgoAndLongDate($row['creation_date']).$updateValue
);
}

Loading…
Cancel
Save