Better board for open items
This commit is contained in:
parent
53a04703d6
commit
4bc2864a6f
@ -337,7 +337,7 @@ if (empty($user->societe_id))
|
|||||||
$text=$langs->trans($titres[$key]);
|
$text=$langs->trans($titres[$key]);
|
||||||
$boxstat.='<a href="'.$links[$key].'" class="boxstatsindicator thumbstat nobold nounderline">';
|
$boxstat.='<a href="'.$links[$key].'" class="boxstatsindicator thumbstat nobold nounderline">';
|
||||||
$boxstat.='<div class="boxstats">';
|
$boxstat.='<div class="boxstats">';
|
||||||
$boxstat.='<span class="boxstatstext">'.img_object("",$icons[$key]).' '.$text.'</span><br>';
|
$boxstat.='<span class="boxstatstext" title="'.dol_escape_htmltag($text).'">'.img_object("",$icons[$key]).' '.$text.'</span><br>';
|
||||||
$boxstat.='<span class="boxstatsindicator">'.$board->nb[$val].'</span>';
|
$boxstat.='<span class="boxstatsindicator">'.$board->nb[$val].'</span>';
|
||||||
$boxstat.='</div>';
|
$boxstat.='</div>';
|
||||||
$boxstat.='</a>';
|
$boxstat.='</a>';
|
||||||
@ -530,33 +530,26 @@ $boxwork.='<div class="box">';
|
|||||||
$boxwork.='<table summary="'.dol_escape_htmltag($langs->trans("WorkingBoard")).'" class="noborder boxtable" width="100%">'."\n";
|
$boxwork.='<table summary="'.dol_escape_htmltag($langs->trans("WorkingBoard")).'" class="noborder boxtable" width="100%">'."\n";
|
||||||
$boxwork.='<tr class="liste_titre">';
|
$boxwork.='<tr class="liste_titre">';
|
||||||
$boxwork.='<th class="liste_titre">'.$langs->trans("DolibarrWorkBoard").'</th>';
|
$boxwork.='<th class="liste_titre">'.$langs->trans("DolibarrWorkBoard").'</th>';
|
||||||
$boxwork.='<th class="liste_titre" align="right">'.$langs->trans("Number").'</th>';
|
//$boxwork.='<th class="liste_titre" align="right">'.$langs->trans("Number").'</th>';
|
||||||
$boxwork.='<th class="liste_titre" align="right">'.$form->textwithpicto($langs->trans("Late"),$langs->trans("LateDesc")).'</th>';
|
//$boxwork.='<th class="liste_titre" align="right">'.$form->textwithpicto($langs->trans("Late"),$langs->trans("LateDesc")).'</th>';
|
||||||
$boxwork.='<th class="liste_titre" style="width: 22px"> </th>';
|
//$boxwork.='<th class="liste_titre" style="width: 22px"> </th>';
|
||||||
//print '<th class="liste_titre" width="20"> </th>';
|
//print '<th class="liste_titre" width="20"> </th>';
|
||||||
//if ($showweather) $boxwork.='<th class="liste_titre hideonsmartphone" width="80"> </th>';
|
//if ($showweather) $boxwork.='<th class="liste_titre hideonsmartphone" width="80"> </th>';
|
||||||
$boxwork.='</tr>'."\n";
|
$boxwork.='</tr>'."\n";
|
||||||
|
|
||||||
if ($showweather)
|
if ($showweather)
|
||||||
{
|
{/*
|
||||||
$var=!$var;
|
|
||||||
$boxwork.='<tr class="nohover">';
|
$boxwork.='<tr class="nohover">';
|
||||||
$boxwork.='<td colspan="4" class="nohover hideonsmartphone center valignmiddle">';
|
$boxwork.='<td class="nohover hideonsmartphone center valignmiddle">';
|
||||||
//$boxwork.=$langs->trans("Meteo");
|
|
||||||
//$boxwork.='</td><td colspan="2" class="nohover center">';
|
|
||||||
$text='';
|
$text='';
|
||||||
if ($totallate > 0) $text=$langs->transnoentitiesnoconv("WarningYouHaveAtLeastOneTaskLate").' ('.$langs->transnoentitiesnoconv("NActionsLate",$totallate).')';
|
if ($totallate > 0) $text=$langs->transnoentitiesnoconv("WarningYouHaveAtLeastOneTaskLate").' ('.$langs->transnoentitiesnoconv("NActionsLate",$totallate).')';
|
||||||
$options='height="64px"';
|
$options='height="64px"';
|
||||||
$boxwork.=showWeather($totallate,$text,$options);
|
$boxwork.=showWeather($totallate,$text,$options);
|
||||||
$boxwork.='</td>';
|
$boxwork.='</td>';
|
||||||
/*$boxwork.='<td align="left" colspan="3" class="nohover">';
|
$boxwork.='</tr>';*/
|
||||||
if ($board->nbtodolate > 0) $boxwork.=img_picto($textlate,"warning");
|
|
||||||
else $boxwork.=' ';
|
|
||||||
$boxwork.='</td>';*/
|
|
||||||
$boxwork.='</tr>';
|
|
||||||
$showweather=0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$boxwork.='<td class="tdboxstats nohover flexcontainer">';
|
||||||
|
|
||||||
// Show dashboard
|
// Show dashboard
|
||||||
$nbworkboardempty=0;
|
$nbworkboardempty=0;
|
||||||
@ -565,41 +558,36 @@ if (! empty($valid_dashboardlines))
|
|||||||
foreach($valid_dashboardlines as $board)
|
foreach($valid_dashboardlines as $board)
|
||||||
{
|
{
|
||||||
if (empty($boad->nbtodo)) $nbworkboardempty++;
|
if (empty($boad->nbtodo)) $nbworkboardempty++;
|
||||||
|
|
||||||
$var=!$var;
|
|
||||||
$boxwork .= '<tr class="oddeven'.($board->nbtodo?'':' workboardempty').'"><td class="nowrap">'.$board->img.' '.$board->label.'</td>';
|
|
||||||
$boxwork .= '<td align="right"><a class="dashboardlineindicator" href="'.$board->url.'"><span class="dashboardlineindicator">'.$board->nbtodo.'</span></a></td>';
|
|
||||||
$boxwork .= '<td align="right">';
|
|
||||||
$textlate = $langs->trans("NActionsLate",$board->nbtodolate);
|
$textlate = $langs->trans("NActionsLate",$board->nbtodolate);
|
||||||
$textlate.= ' ('.$langs->trans("Late").' = '.$langs->trans("DateReference").' > '.$langs->trans("DateToday").' '.(ceil($board->warning_delay) >= 0 ? '+' : '').ceil($board->warning_delay).' '.$langs->trans("days").')';
|
$textlate.= ' ('.$langs->trans("Late").' = '.$langs->trans("DateReference").' > '.$langs->trans("DateToday").' '.(ceil($board->warning_delay) >= 0 ? '+' : '').ceil($board->warning_delay).' '.$langs->trans("days").')';
|
||||||
$boxwork .= '<a title="'.dol_escape_htmltag($textlate).'" class="dashboardlineindicatorlate'.($board->nbtodolate>0?' dashboardlineko':' dashboardlineok').'" href="'.((!$board->url_late) ? $board->url : $board->url_late ).'">';
|
|
||||||
$boxwork .= '<span class="dashboardlineindicatorlate'.($board->nbtodolate>0?' dashboardlineko':' dashboardlineok').'">';
|
$boxwork .='<div class="boxstatsindicator thumbstat150 nobold nounderline"><div class="boxstats130 boxstatsborder">';
|
||||||
$boxwork .= $board->nbtodolate;
|
$boxwork .= '<div class="boxstatscontent">';
|
||||||
$boxwork .= '</span>';
|
$boxwork .= $board->img.' '.$board->label.'<br>';
|
||||||
$boxwork .= '</a>';
|
$boxwork .= '<a class="valignmiddle dashboardlineindicator" href="'.$board->url.'"><span class="dashboardlineindicator'.(($board->nbtodo == 0)?' dashboardlineok':'').'">'.$board->nbtodo.'</span></a>';
|
||||||
$boxwork .='</td>';
|
$boxwork .= '</div>';
|
||||||
$boxwork .='<td>';
|
if ($board->nbtodolate > 0)
|
||||||
if ($board->nbtodolate > 0) $boxwork .=img_picto($textlate, "warning", 'class="valignmiddle"').' ';
|
|
||||||
$boxwork .='</td>';
|
|
||||||
/*print '<td class="nowrap" align="right">';
|
|
||||||
print ' (>'.ceil($board->warning_delay).' '.$langs->trans("days").')';
|
|
||||||
print '</td>';*/
|
|
||||||
/*
|
|
||||||
if ($showweather)
|
|
||||||
{
|
{
|
||||||
$boxwork.='<td class="nohover hideonsmartphone noborderbottom" rowspan="'.$rowspan.'" width="80" style="border-left: 1px solid #DDDDDD" align="center">';
|
$boxwork .= '<div class="dashboardlinelatecoin nowrap">';
|
||||||
$text='';
|
$boxwork .= '<a title="'.dol_escape_htmltag($textlate).'" class="valignmiddle dashboardlineindicatorlate'.($board->nbtodolate>0?' dashboardlineko':' dashboardlineok').'" href="'.((!$board->url_late) ? $board->url : $board->url_late ).'">';
|
||||||
if ($totallate > 0) $text=$langs->transnoentitiesnoconv("WarningYouHaveAtLeastOneTaskLate").' ('.$langs->transnoentitiesnoconv("NActionsLate",$totallate).')';
|
$boxwork .= img_picto($textlate, "warning", 'class="valigntextbottom"').'';
|
||||||
$options='height="64px"';
|
$boxwork .= '<span class="dashboardlineindicatorlate'.($board->nbtodolate>0?' dashboardlineko':' dashboardlineok').'">';
|
||||||
if ($rowspan <= 2) $options='height="24"'; // Weather logo is smaller if dashboard has few elements
|
$boxwork .= $board->nbtodolate;
|
||||||
else if ($rowspan <= 3) $options='height="48"'; // Weather logo is smaller if dashboard has few elements
|
$boxwork .= '</span>';
|
||||||
$boxwork.=showWeather($totallate,$text,$options);
|
$boxwork .= '</a>';
|
||||||
$boxwork.='</td>';
|
$boxwork .= '</div>';
|
||||||
$showweather=0;
|
}
|
||||||
}*/
|
$boxwork.='</div></div>';
|
||||||
$boxwork .='</tr>';
|
|
||||||
$boxwork .="\n";
|
$boxwork .="\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$boxwork .='<div class="boxstatsindicator thumbstat150 nobold nounderline"></div>';
|
||||||
|
$boxwork .='<div class="boxstatsindicator thumbstat150 nobold nounderline"></div>';
|
||||||
|
$boxwork .='<div class="boxstatsindicator thumbstat150 nobold nounderline"></div>';
|
||||||
|
$boxwork .='<div class="boxstatsindicator thumbstat150 nobold nounderline"></div>';
|
||||||
|
$boxwork .='<div class="boxstatsindicator thumbstat150 nobold nounderline"></div>';
|
||||||
|
$boxwork .='<div class="boxstatsindicator thumbstat150 nobold nounderline"></div>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -610,6 +598,8 @@ else
|
|||||||
$boxwork.='</tr>';
|
$boxwork.='</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$boxwork.='</td></tr>';
|
||||||
|
|
||||||
$boxwork.='</table>'; // End table array of working board
|
$boxwork.='</table>'; // End table array of working board
|
||||||
$boxwork.='</div>';
|
$boxwork.='</div>';
|
||||||
|
|
||||||
|
|||||||
@ -107,7 +107,7 @@ llxHeader("",$title,$help_url);
|
|||||||
|
|
||||||
$head = project_prepare_head($object);
|
$head = project_prepare_head($object);
|
||||||
|
|
||||||
dol_fiche_head($head, 'agenda', $langs->trans("Project"), 0, ($object->public?'projectpub':'project'));
|
dol_fiche_head($head, 'agenda', $langs->trans("Project"), -1, ($object->public?'projectpub':'project'));
|
||||||
|
|
||||||
|
|
||||||
// Project card
|
// Project card
|
||||||
|
|||||||
@ -677,6 +677,11 @@ div.fiche>form>div.div-table-responsive {
|
|||||||
}
|
}
|
||||||
.thumbstat {
|
.thumbstat {
|
||||||
flex: 1 1 120px;
|
flex: 1 1 120px;
|
||||||
|
}
|
||||||
|
.thumbstat150 {
|
||||||
|
flex: 1 1 150px;
|
||||||
|
}
|
||||||
|
.thumbstat, thumbstat150 {
|
||||||
/* flex-grow: 1; */
|
/* flex-grow: 1; */
|
||||||
/* flex-shrink: 1; */
|
/* flex-shrink: 1; */
|
||||||
/* flex-basis: 140px; */
|
/* flex-basis: 140px; */
|
||||||
@ -2854,26 +2859,37 @@ div.tabBar .noborder {
|
|||||||
.ficheaddleft div.boxstats {
|
.ficheaddleft div.boxstats {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
.boxstats {
|
.boxstatsborder {
|
||||||
|
border: 1px solid #CCC !important;
|
||||||
|
}
|
||||||
|
.boxstats, .boxstats130 {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 3px;
|
margin: 3px;
|
||||||
padding: 3px;
|
|
||||||
/*-moz-box-shadow: 3px 3px 4px #DDD;
|
|
||||||
-webkit-box-shadow: 3px 3px 4px #DDD;
|
|
||||||
box-shadow: 3px 3px 4px #DDD;
|
|
||||||
margin-bottom: 8px !important;*/
|
|
||||||
border: 1px solid #CCC;
|
border: 1px solid #CCC;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
.boxstats, .boxstats130, .boxstatscontent {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
width: 115px;
|
|
||||||
}
|
}
|
||||||
|
.boxstats {
|
||||||
|
padding: 3px;
|
||||||
|
width: 105px;
|
||||||
|
}
|
||||||
|
.boxstats130 {
|
||||||
|
width: 135px;
|
||||||
|
height: 48px;
|
||||||
|
padding: 3px
|
||||||
|
}
|
||||||
|
.boxstatscontent {
|
||||||
|
padding: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 767px)
|
@media only screen and (max-width: 767px)
|
||||||
{
|
{
|
||||||
.boxstats {
|
.boxstats, .boxstats130 {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2890,15 +2906,25 @@ span.boxstatsindicator {
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
span.dashboardlineindicator, span.dashboardlineindicatorlate {
|
span.dashboardlineindicator, span.dashboardlineindicatorlate {
|
||||||
font-size: 120%;
|
font-size: 130%;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
.dashboardlineindicatorlate img {
|
||||||
|
width: 16px;
|
||||||
|
}
|
||||||
span.dashboardlineok {
|
span.dashboardlineok {
|
||||||
color: #008800;
|
color: #008800;
|
||||||
}
|
}
|
||||||
span.dashboardlineko {
|
span.dashboardlineko {
|
||||||
color: #880000;
|
color: #880000;
|
||||||
font-weight: bold;
|
/* font-weight: bold; */
|
||||||
|
font-size: 100%;
|
||||||
|
}
|
||||||
|
.dashboardlinelatecoin {
|
||||||
|
float: right;
|
||||||
|
position: relative;
|
||||||
|
text-align: right;
|
||||||
|
top: -22px
|
||||||
}
|
}
|
||||||
.boxtable {
|
.boxtable {
|
||||||
margin-bottom: 8px !important;
|
margin-bottom: 8px !important;
|
||||||
@ -2910,6 +2936,9 @@ span.dashboardlineko {
|
|||||||
.tdboxstats {
|
.tdboxstats {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
a.valignmiddle.dashboardlineindicator {
|
||||||
|
line-height: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
.box {
|
.box {
|
||||||
padding-right: 0px;
|
padding-right: 0px;
|
||||||
|
|||||||
@ -684,6 +684,11 @@ div.fiche>form>div.div-table-responsive {
|
|||||||
}
|
}
|
||||||
.thumbstat {
|
.thumbstat {
|
||||||
flex: 1 1 120px;
|
flex: 1 1 120px;
|
||||||
|
}
|
||||||
|
.thumbstat150 {
|
||||||
|
flex: 1 1 150px;
|
||||||
|
}
|
||||||
|
.thumbstat, thumbstat150 {
|
||||||
/* flex-grow: 1; */
|
/* flex-grow: 1; */
|
||||||
/* flex-shrink: 1; */
|
/* flex-shrink: 1; */
|
||||||
/* flex-basis: 140px; */
|
/* flex-basis: 140px; */
|
||||||
@ -2769,27 +2774,33 @@ div .tdtop {
|
|||||||
.ficheaddleft div.boxstats {
|
.ficheaddleft div.boxstats {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
.boxstats {
|
.boxstatsborder {
|
||||||
|
border: 1px solid #CCC !important;
|
||||||
|
}
|
||||||
|
.boxstats, .boxstats130 {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 3px;
|
margin: 3px;
|
||||||
padding: 3px;
|
|
||||||
/*-moz-box-shadow: 3px 3px 4px #f4f4f4;
|
|
||||||
-webkit-box-shadow: 3px 3px 4px #f4f4f4;
|
|
||||||
box-shadow: 3px 3px 4px #f4f4f4;
|
|
||||||
margin-bottom: 8px !important;*/
|
|
||||||
border: 1px solid #CCC;
|
border: 1px solid #CCC;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
min-height: 38px;
|
}
|
||||||
|
.boxstats, .boxstats130, .boxstatscontent {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
width: 115px;
|
}
|
||||||
|
.boxstats {
|
||||||
|
padding: 3px;
|
||||||
|
width: 105px;
|
||||||
|
}
|
||||||
|
.boxstats130 {
|
||||||
|
width: 135px;
|
||||||
|
height: 48px;
|
||||||
|
padding: 3px
|
||||||
}
|
}
|
||||||
@media only screen and (max-width: 767px)
|
@media only screen and (max-width: 767px)
|
||||||
{
|
{
|
||||||
.boxstats {
|
.boxstats, .boxstats130 {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2806,7 +2817,10 @@ span.boxstatsindicator {
|
|||||||
}
|
}
|
||||||
span.dashboardlineindicator, span.dashboardlineindicatorlate {
|
span.dashboardlineindicator, span.dashboardlineindicatorlate {
|
||||||
font-size: 120%;
|
font-size: 120%;
|
||||||
font-weight: bold;
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
.dashboardlineindicatorlate img {
|
||||||
|
width: 16px;
|
||||||
}
|
}
|
||||||
span.dashboardlineok {
|
span.dashboardlineok {
|
||||||
color: #008800;
|
color: #008800;
|
||||||
@ -2815,6 +2829,16 @@ span.dashboardlineko {
|
|||||||
color: #880000;
|
color: #880000;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
.dashboardlinelatecoin {
|
||||||
|
float: right;
|
||||||
|
position: relative;
|
||||||
|
text-align: right;
|
||||||
|
top: -22px
|
||||||
|
}
|
||||||
|
.boxtable {
|
||||||
|
margin-bottom: 8px !important;
|
||||||
|
border-bottom-width: 1px;
|
||||||
|
}
|
||||||
.boxtable {
|
.boxtable {
|
||||||
margin-bottom: 8px !important;
|
margin-bottom: 8px !important;
|
||||||
border-bottom-width: 1px;
|
border-bottom-width: 1px;
|
||||||
@ -2825,6 +2849,10 @@ span.dashboardlineko {
|
|||||||
.tdboxstats {
|
.tdboxstats {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
a.valignmiddle.dashboardlineindicator {
|
||||||
|
line-height: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.box {
|
.box {
|
||||||
padding-right: 0px;
|
padding-right: 0px;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user