';
$titleassigntask = $langs->transnoentities("AssignTaskToMe");
if ($usertoprocess->id != $user->id) $titleassigntask = $langs->transnoentities("AssignTaskToUser", $usertoprocess->getFullName($langs));
print '
';
-$formproject->selectTasks($socid ? $socid : -1, $taskid, 'taskid', 32, 0, 1, 1, 0, 0, '', '', 'all', $usertoprocess);
+$formproject->selectTasks($socid ? $socid : -1, $taskid, 'taskid', 32, 0, '-- '.$langs->trans("ChooseANotYetAssignedTask").' --', 1, 0, 0, '', '', 'all', $usertoprocess);
print '
';
print ' ';
print $formcompany->selectTypeContact($object, '', 'type', 'internal', 'rowid', 0, 'maxwidth150onsmartphone');
diff --git a/htdocs/projet/graph_opportunities.inc.php b/htdocs/projet/graph_opportunities.inc.php
index e535756ce0c..2dc4c90338b 100644
--- a/htdocs/projet/graph_opportunities.inc.php
+++ b/htdocs/projet/graph_opportunities.inc.php
@@ -29,19 +29,15 @@ if (!empty($conf->global->PROJECT_USE_OPPORTUNITIES))
$obj = $db->fetch_object($resql);
if ($obj)
{
- //if ($row[1]!=-1 && ($row[1]!=3 || $row[2]!=1))
- {
- $valsnb[$obj->opp_status] = $obj->nb;
- $valsamount[$obj->opp_status] = $obj->opp_amount;
- $totalnb += $obj->nb;
- if ($obj->opp_status) $totaloppnb += $obj->nb;
- if (!in_array($obj->code, array('WON', 'LOST')))
- {
+ $valsnb[$obj->opp_status] = $obj->nb;
+ $valsamount[$obj->opp_status] = $obj->opp_amount;
+ $totalnb += $obj->nb;
+ if ($obj->opp_status) $totaloppnb += $obj->nb;
+ if (!in_array($obj->code, array('WON', 'LOST'))) {
$totalamount += $obj->opp_amount;
$ponderated_opp_amount += $obj->ponderated_opp_amount;
}
- }
- $total += $row[0];
+ $total += $obj->nb;
}
$i++;
}
diff --git a/htdocs/projet/index.php b/htdocs/projet/index.php
index ddb66bc3317..e590e4ad82b 100644
--- a/htdocs/projet/index.php
+++ b/htdocs/projet/index.php
@@ -88,17 +88,15 @@ $morehtml.='';
$morehtml.='
';
$morehtml.='';
-print_barre_liste($title, 0, $_SERVER["PHP_SELF"], '', '', '', '', 0, -1, 'project', 0, $morehtml);
-
-// Show description of content
-print '
';
-if ($mine) print $langs->trans("MyProjectsDesc").' ';
+if ($mine) $tooltiphelp = $langs->trans("MyProjectsDesc");
else
{
- if (!empty($user->rights->projet->all->lire) && !$socid) print $langs->trans("ProjectsDesc").' ';
- else print $langs->trans("ProjectsPublicDesc").' ';
+ if (!empty($user->rights->projet->all->lire) && !$socid) $tooltiphelp = $langs->trans("ProjectsDesc");
+ else $tooltiphelp = $langs->trans("ProjectsPublicDesc");
}
-print '
';
+
+print_barre_liste($form->textwithpicto($title, $tooltiphelp), 0, $_SERVER["PHP_SELF"], '', '', '', '', 0, -1, 'project', 0, $morehtml);
+
// Get list of ponderated percent for each status
$listofoppstatus = array(); $listofopplabel = array(); $listofoppcode = array();
diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php
index 2854d3582bd..4f32c938a49 100644
--- a/htdocs/theme/eldy/global.inc.php
+++ b/htdocs/theme/eldy/global.inc.php
@@ -408,7 +408,8 @@ hr { border: 0; border-top: 1px solid #ccc; }
margin-right: 5px;
font-family: ;
display: inline-block;
- padding: 4px 14px;
+ padding: 8px 15px;
+ min-width: 90px;
text-align: center;
cursor: pointer;
text-decoration: none !important;
@@ -4995,6 +4996,10 @@ div.dataTables_length select {
/* Select2 */
/* ============================================================================== */
+span#select2-taskid-container[title^='--'] {
+ opacity: 0.3;
+}
+
.select2-container--default .select2-results__option--highlighted[aria-selected] {
background-color: rgb();
color: #;
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index ad5dd0a42a4..2a1aa367656 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -4985,6 +4985,10 @@ div.dataTables_length select {
/* Select2 */
/* ============================================================================== */
+span#select2-taskid-container[title^='--'] {
+ opacity: 0.3;
+}
+
input.select2-input {
border-bottom: none ! important;
}