forked from Wavyzz/dolibarr
Fix look and feel v13
This commit is contained in:
@@ -352,7 +352,7 @@ class FormProjets
|
|||||||
if (empty($option_only) && !empty($conf->use_javascript_ajax))
|
if (empty($option_only) && !empty($conf->use_javascript_ajax))
|
||||||
{
|
{
|
||||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/ajax.lib.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/lib/ajax.lib.php';
|
||||||
$comboenhancement = ajax_combobox($htmlname, '', 0, $forcefocus);
|
$comboenhancement = ajax_combobox($htmlname, '', 0, $forcefocus);
|
||||||
$out .= $comboenhancement;
|
$out .= $comboenhancement;
|
||||||
$morecss = 'minwidth200 maxwidth500';
|
$morecss = 'minwidth200 maxwidth500';
|
||||||
}
|
}
|
||||||
@@ -388,7 +388,7 @@ class FormProjets
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$labeltoshow = '';
|
$labeltoshow = ''; $titletoshow = '';
|
||||||
|
|
||||||
$disabled = 0;
|
$disabled = 0;
|
||||||
if ($obj->fk_statut == Project::STATUS_DRAFT)
|
if ($obj->fk_statut == Project::STATUS_DRAFT)
|
||||||
@@ -408,32 +408,39 @@ class FormProjets
|
|||||||
//if ($obj->public) $labeltoshow.=' ('.$langs->trans("SharedProject").')';
|
//if ($obj->public) $labeltoshow.=' ('.$langs->trans("SharedProject").')';
|
||||||
//else $labeltoshow.=' ('.$langs->trans("Private").')';
|
//else $labeltoshow.=' ('.$langs->trans("Private").')';
|
||||||
$labeltoshow .= ' '.dol_trunc($obj->title, $maxlength);
|
$labeltoshow .= ' '.dol_trunc($obj->title, $maxlength);
|
||||||
|
$titletoshow = $labeltoshow;
|
||||||
|
|
||||||
if ($obj->name) $labeltoshow .= ' ('.$obj->name.')';
|
if ($obj->name) {
|
||||||
|
$labeltoshow .= ' ('.$obj->name.')';
|
||||||
|
$titletoshow .= ' <span class="opacitymedium">('.$obj->name.')</span>';
|
||||||
|
}
|
||||||
|
|
||||||
$disabled = 0;
|
$disabled = 0;
|
||||||
if ($obj->fk_statut == Project::STATUS_DRAFT)
|
if ($obj->fk_statut == Project::STATUS_DRAFT) {
|
||||||
{
|
|
||||||
$disabled = 1;
|
$disabled = 1;
|
||||||
$labeltoshow .= ' - '.$langs->trans("Draft");
|
$labeltoshow .= ' - '.$langs->trans("Draft");
|
||||||
} elseif ($obj->fk_statut == Project::STATUS_CLOSED)
|
$titletoshow .= ' - <span class="opacitymedium">'.$langs->trans("Draft").'</span>';
|
||||||
{
|
} elseif ($obj->fk_statut == Project::STATUS_CLOSED) {
|
||||||
if ($discard_closed == 2) $disabled = 1;
|
if ($discard_closed == 2) $disabled = 1;
|
||||||
$labeltoshow .= ' - '.$langs->trans("Closed");
|
$labeltoshow .= ' - '.$langs->trans("Closed");
|
||||||
} elseif ($socid > 0 && (!empty($obj->fk_soc) && $obj->fk_soc != $socid))
|
$titletoshow .= ' - <span class="opacitymedium">'.$langs->trans("Closed").'</span>';
|
||||||
{
|
} elseif ($socid > 0 && (!empty($obj->fk_soc) && $obj->fk_soc != $socid)) {
|
||||||
$disabled = 1;
|
$disabled = 1;
|
||||||
$labeltoshow .= ' - '.$langs->trans("LinkedToAnotherCompany");
|
$labeltoshow .= ' - '.$langs->trans("LinkedToAnotherCompany");
|
||||||
|
$titletoshow .= ' - <span class="opacitymedium">'.$langs->trans("LinkedToAnotherCompany").'</span>';
|
||||||
}
|
}
|
||||||
$labeltoshow .= ' - ';
|
$labeltoshow .= ' - ';
|
||||||
|
$titletoshow .= ' - ';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Label for task
|
// Label for task
|
||||||
$labeltoshow .= $obj->tref.' '.dol_trunc($obj->tlabel, $maxlength);
|
$labeltoshow .= $obj->tref.' '.dol_trunc($obj->tlabel, $maxlength);
|
||||||
|
$titletoshow .= $obj->tref.' '.dol_trunc($obj->tlabel, $maxlength);
|
||||||
|
|
||||||
if (!empty($selected) && $selected == $obj->rowid)
|
if (!empty($selected) && $selected == $obj->rowid)
|
||||||
{
|
{
|
||||||
$out .= '<option value="'.$obj->rowid.'" selected';
|
$out .= '<option value="'.$obj->rowid.'" selected';
|
||||||
|
$out .= ' data-html="'.dol_escape_htmltag($titletoshow).'"';
|
||||||
//if ($disabled) $out.=' disabled'; // with select2, field can't be preselected if disabled
|
//if ($disabled) $out.=' disabled'; // with select2, field can't be preselected if disabled
|
||||||
$out .= '>'.$labeltoshow.'</option>';
|
$out .= '>'.$labeltoshow.'</option>';
|
||||||
} else {
|
} else {
|
||||||
@@ -445,6 +452,7 @@ class FormProjets
|
|||||||
if ($disabled) $resultat .= ' disabled';
|
if ($disabled) $resultat .= ' disabled';
|
||||||
//if ($obj->public) $labeltoshow.=' ('.$langs->trans("Public").')';
|
//if ($obj->public) $labeltoshow.=' ('.$langs->trans("Public").')';
|
||||||
//else $labeltoshow.=' ('.$langs->trans("Private").')';
|
//else $labeltoshow.=' ('.$langs->trans("Private").')';
|
||||||
|
$resultat .= ' data-html="'.dol_escape_htmltag($titletoshow).'"';
|
||||||
$resultat .= '>';
|
$resultat .= '>';
|
||||||
$resultat .= $labeltoshow;
|
$resultat .= $labeltoshow;
|
||||||
$resultat .= '</option>';
|
$resultat .= '</option>';
|
||||||
|
|||||||
@@ -3268,7 +3268,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
|||||||
'intervention', 'label', 'language', 'link', 'list', 'listlight', 'lot',
|
'intervention', 'label', 'language', 'link', 'list', 'listlight', 'lot',
|
||||||
'map-marker-alt', 'member', 'money-bill-alt', 'mrp', 'note', 'next',
|
'map-marker-alt', 'member', 'money-bill-alt', 'mrp', 'note', 'next',
|
||||||
'object_accounting', 'object_account', 'object_accountline', 'object_action', 'object_barcode', 'object_bill', 'object_billa', 'object_billd', 'object_bom',
|
'object_accounting', 'object_account', 'object_accountline', 'object_action', 'object_barcode', 'object_bill', 'object_billa', 'object_billd', 'object_bom',
|
||||||
'object_category', 'object_conversation', 'object_bookmark', 'object_bug', 'object_dolly', 'object_dollyrevert', 'object_generic', 'object_folder',
|
'object_category', 'object_conversation', 'object_bookmark', 'object_bug', 'object_clock', 'object_dolly', 'object_dollyrevert', 'object_generic', 'object_folder',
|
||||||
'object_list-alt', 'object_calendar', 'object_calendarweek', 'object_calendarmonth', 'object_calendarday', 'object_calendarperuser',
|
'object_list-alt', 'object_calendar', 'object_calendarweek', 'object_calendarmonth', 'object_calendarday', 'object_calendarperuser',
|
||||||
'object_cash-register', 'object_company', 'object_contact', 'object_contract', 'object_donation', 'object_dynamicprice',
|
'object_cash-register', 'object_company', 'object_contact', 'object_contract', 'object_donation', 'object_dynamicprice',
|
||||||
'object_globe', 'object_holiday', 'object_hrm', 'object_invoice', 'object_intervention', 'object_label',
|
'object_globe', 'object_holiday', 'object_hrm', 'object_invoice', 'object_intervention', 'object_label',
|
||||||
|
|||||||
@@ -476,6 +476,7 @@ function projectLinesa(&$inc, $parent, &$lines, &$level, $var, $showproject, &$t
|
|||||||
$projectstatic->public = $lines[$i]->public;
|
$projectstatic->public = $lines[$i]->public;
|
||||||
$projectstatic->title = $lines[$i]->projectlabel;
|
$projectstatic->title = $lines[$i]->projectlabel;
|
||||||
$projectstatic->usage_bill_time = $lines[$i]->usage_bill_time;
|
$projectstatic->usage_bill_time = $lines[$i]->usage_bill_time;
|
||||||
|
$projectstatic->status = $lines[$i]->projectstatus;
|
||||||
|
|
||||||
$taskstatic->id = $lines[$i]->id;
|
$taskstatic->id = $lines[$i]->id;
|
||||||
$taskstatic->ref = $lines[$i]->ref;
|
$taskstatic->ref = $lines[$i]->ref;
|
||||||
@@ -881,6 +882,7 @@ function projectLinesPerAction(&$inc, $parent, $fuser, $lines, &$level, &$projec
|
|||||||
$projectstatic->ref = $lines[$i]->project_ref;
|
$projectstatic->ref = $lines[$i]->project_ref;
|
||||||
$projectstatic->title = $lines[$i]->project_label;
|
$projectstatic->title = $lines[$i]->project_label;
|
||||||
$projectstatic->public = $lines[$i]->public;
|
$projectstatic->public = $lines[$i]->public;
|
||||||
|
$projectstatic->status = $lines[$i]->project_status;
|
||||||
|
|
||||||
$taskstatic->id = $lines[$i]->task_id;
|
$taskstatic->id = $lines[$i]->task_id;
|
||||||
$taskstatic->ref = ($lines[$i]->task_ref ? $lines[$i]->task_ref : $lines[$i]->task_id);
|
$taskstatic->ref = ($lines[$i]->task_ref ? $lines[$i]->task_ref : $lines[$i]->task_id);
|
||||||
@@ -1843,6 +1845,7 @@ function projectLinesPerMonth(&$inc, $firstdaytoshow, $fuser, $parent, $lines, &
|
|||||||
$projectstatic->title = $lines[$i]->projectlabel;
|
$projectstatic->title = $lines[$i]->projectlabel;
|
||||||
$projectstatic->public = $lines[$i]->public;
|
$projectstatic->public = $lines[$i]->public;
|
||||||
$projectstatic->thirdparty_name = $lines[$i]->thirdparty_name;
|
$projectstatic->thirdparty_name = $lines[$i]->thirdparty_name;
|
||||||
|
$projectstatic->status = $lines[$i]->projectstatus;
|
||||||
|
|
||||||
$taskstatic->id = $lines[$i]->id;
|
$taskstatic->id = $lines[$i]->id;
|
||||||
$taskstatic->ref = ($lines[$i]->ref ? $lines[$i]->ref : $lines[$i]->id);
|
$taskstatic->ref = ($lines[$i]->ref ? $lines[$i]->ref : $lines[$i]->id);
|
||||||
|
|||||||
@@ -433,7 +433,7 @@ $nav .= ' '.$form->selectDate(-1, '', 0, 0, 2, "addtime", 1, 1).' ';
|
|||||||
//$nav .= ' <input type="submit" name="submitdateselect" class="button valignmiddle" value="'.$langs->trans("Refresh").'">';
|
//$nav .= ' <input type="submit" name="submitdateselect" class="button valignmiddle" value="'.$langs->trans("Refresh").'">';
|
||||||
$nav .= ' <button type="submit" name="button_search_x" value="x" class="bordertransp"><span class="fa fa-search"></span></button>';
|
$nav .= ' <button type="submit" name="button_search_x" value="x" class="bordertransp"><span class="fa fa-search"></span></button>';
|
||||||
|
|
||||||
$picto = 'calendarweek';
|
$picto = 'clock';
|
||||||
|
|
||||||
print '<form name="addtime" method="POST" action="'.$_SERVER["PHP_SELF"].($project->id > 0 ? '?id='.$project->id : '').'">';
|
print '<form name="addtime" method="POST" action="'.$_SERVER["PHP_SELF"].($project->id > 0 ? '?id='.$project->id : '').'">';
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
@@ -447,7 +447,7 @@ print '<input type="hidden" name="addtimemonth" value="'.$tmp['mon'].'">';
|
|||||||
print '<input type="hidden" name="addtimeday" value="'.$tmp['mday'].'">';
|
print '<input type="hidden" name="addtimeday" value="'.$tmp['mday'].'">';
|
||||||
|
|
||||||
$head = project_timesheet_prepare_head($mode, $usertoprocess);
|
$head = project_timesheet_prepare_head($mode, $usertoprocess);
|
||||||
print dol_get_fiche_head($head, 'inputperday', $langs->trans('TimeSpent'), -1, 'projecttask');
|
print dol_get_fiche_head($head, 'inputperday', $langs->trans('TimeSpent'), -1, $picto);
|
||||||
|
|
||||||
// Show description of content
|
// Show description of content
|
||||||
print '<div class="hideonsmartphone opacitymedium">';
|
print '<div class="hideonsmartphone opacitymedium">';
|
||||||
@@ -476,6 +476,7 @@ print '<div class="colorbacktimesheet float valignmiddle">';
|
|||||||
$titleassigntask = $langs->transnoentities("AssignTaskToMe");
|
$titleassigntask = $langs->transnoentities("AssignTaskToMe");
|
||||||
if ($usertoprocess->id != $user->id) $titleassigntask = $langs->transnoentities("AssignTaskToUser", $usertoprocess->getFullName($langs));
|
if ($usertoprocess->id != $user->id) $titleassigntask = $langs->transnoentities("AssignTaskToUser", $usertoprocess->getFullName($langs));
|
||||||
print '<div class="taskiddiv inline-block">';
|
print '<div class="taskiddiv inline-block">';
|
||||||
|
print img_picto('', 'projecttask');
|
||||||
$formproject->selectTasks($socid ? $socid : -1, $taskid, 'taskid', 32, 0, '-- '.$langs->trans("ChooseANotYetAssignedTask").' --', 1, 0, 0, '', '', 'all', $usertoprocess);
|
$formproject->selectTasks($socid ? $socid : -1, $taskid, 'taskid', 32, 0, '-- '.$langs->trans("ChooseANotYetAssignedTask").' --', 1, 0, 0, '', '', 'all', $usertoprocess);
|
||||||
print '</div>';
|
print '</div>';
|
||||||
print ' ';
|
print ' ';
|
||||||
@@ -500,22 +501,22 @@ $moreforfilter = '';
|
|||||||
|
|
||||||
// If the user can view user other than himself
|
// If the user can view user other than himself
|
||||||
$moreforfilter .= '<div class="divsearchfield">';
|
$moreforfilter .= '<div class="divsearchfield">';
|
||||||
$moreforfilter .= '<div class="inline-block hideonsmartphone">'.$langs->trans('User').' </div>';
|
$moreforfilter .= '<div class="inline-block hideonsmartphone"></div>';
|
||||||
$includeonly = 'hierarchyme';
|
$includeonly = 'hierarchyme';
|
||||||
if (empty($user->rights->user->user->lire)) $includeonly = array($user->id);
|
if (empty($user->rights->user->user->lire)) $includeonly = array($user->id);
|
||||||
$moreforfilter .= $form->select_dolusers($search_usertoprocessid ? $search_usertoprocessid : $usertoprocess->id, 'search_usertoprocessid', $user->rights->user->user->lire ? 0 : 0, null, 0, $includeonly, null, 0, 0, 0, '', 0, '', 'maxwidth200 marginleftonly');
|
$moreforfilter .= img_picto($langs->trans('User'), 'user').$form->select_dolusers($search_usertoprocessid ? $search_usertoprocessid : $usertoprocess->id, 'search_usertoprocessid', $user->rights->user->user->lire ? 0 : 0, null, 0, $includeonly, null, 0, 0, 0, '', 0, '', 'maxwidth200 marginleftonly');
|
||||||
$moreforfilter .= '</div>';
|
$moreforfilter .= '</div>';
|
||||||
|
|
||||||
if (empty($conf->global->PROJECT_TIMESHEET_DISABLEBREAK_ON_PROJECT))
|
if (empty($conf->global->PROJECT_TIMESHEET_DISABLEBREAK_ON_PROJECT))
|
||||||
{
|
{
|
||||||
$moreforfilter .= '<div class="divsearchfield">';
|
$moreforfilter .= '<div class="divsearchfield">';
|
||||||
$moreforfilter .= '<div class="inline-block">'.$langs->trans('Project').' </div>';
|
$moreforfilter .= '<div class="inline-block"></div>';
|
||||||
$moreforfilter .= '<input type="text" size="4" name="search_project_ref" class="marginleftonly" value="'.dol_escape_htmltag($search_project_ref).'">';
|
$moreforfilter .= img_picto($langs->trans('Project'), 'project').'<input type="text" size="4" name="search_project_ref" class="marginleftonly" value="'.dol_escape_htmltag($search_project_ref).'">';
|
||||||
$moreforfilter .= '</div>';
|
$moreforfilter .= '</div>';
|
||||||
|
|
||||||
$moreforfilter .= '<div class="divsearchfield">';
|
$moreforfilter .= '<div class="divsearchfield">';
|
||||||
$moreforfilter .= '<div class="inline-block">'.$langs->trans('ThirdParty').' </div>';
|
$moreforfilter .= '<div class="inline-block"></div>';
|
||||||
$moreforfilter .= '<input type="text" size="4" name="search_thirdparty" class="marginleftonly" value="'.dol_escape_htmltag($search_thirdparty).'">';
|
$moreforfilter .= img_picto($langs->trans('ThirdParty'), 'company').'<input type="text" size="4" name="search_thirdparty" class="marginleftonly" value="'.dol_escape_htmltag($search_thirdparty).'">';
|
||||||
$moreforfilter .= '</div>';
|
$moreforfilter .= '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -361,7 +361,7 @@ $nav .= ' '.$form->selectDate(-1, '', 0, 0, 2, "addtime", 1, 1).' ';
|
|||||||
//$nav.=' <input type="submit" name="submitdateselect" class="button" value="'.$langs->trans("Refresh").'">';
|
//$nav.=' <input type="submit" name="submitdateselect" class="button" value="'.$langs->trans("Refresh").'">';
|
||||||
$nav .= ' <button type="submit" name="button_search_x" value="x" class="bordertransp"><span class="fa fa-search"></span></button>';
|
$nav .= ' <button type="submit" name="button_search_x" value="x" class="bordertransp"><span class="fa fa-search"></span></button>';
|
||||||
|
|
||||||
$picto = 'calendarweek';
|
$picto = 'clock';
|
||||||
|
|
||||||
print '<form name="addtime" method="POST" action="'.$_SERVER["PHP_SELF"].'">';
|
print '<form name="addtime" method="POST" action="'.$_SERVER["PHP_SELF"].'">';
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
@@ -372,7 +372,7 @@ print '<input type="hidden" name="month" value="'.$month.'">';
|
|||||||
print '<input type="hidden" name="year" value="'.$year.'">';
|
print '<input type="hidden" name="year" value="'.$year.'">';
|
||||||
|
|
||||||
$head = project_timesheet_prepare_head($mode, $usertoprocess);
|
$head = project_timesheet_prepare_head($mode, $usertoprocess);
|
||||||
print dol_get_fiche_head($head, 'inputpermonth', $langs->trans('TimeSpent'), -1, 'projecttask');
|
print dol_get_fiche_head($head, 'inputpermonth', $langs->trans('TimeSpent'), -1, $picto);
|
||||||
|
|
||||||
// Show description of content
|
// Show description of content
|
||||||
print '<div class="hideonsmartphone opacitymedium">';
|
print '<div class="hideonsmartphone opacitymedium">';
|
||||||
@@ -400,6 +400,7 @@ print '<div class="colorbacktimesheet float valignmiddle">';
|
|||||||
$titleassigntask = $langs->transnoentities("AssignTaskToMe");
|
$titleassigntask = $langs->transnoentities("AssignTaskToMe");
|
||||||
if ($usertoprocess->id != $user->id) $titleassigntask = $langs->transnoentities("AssignTaskToUser", $usertoprocess->getFullName($langs));
|
if ($usertoprocess->id != $user->id) $titleassigntask = $langs->transnoentities("AssignTaskToUser", $usertoprocess->getFullName($langs));
|
||||||
print '<div class="taskiddiv inline-block">';
|
print '<div class="taskiddiv inline-block">';
|
||||||
|
print img_picto('', 'projecttask');
|
||||||
$formproject->selectTasks($socid ? $socid : -1, $taskid, 'taskid', 32, 0, '-- '.$langs->trans("ChooseANotYetAssignedTask").' --', 1);
|
$formproject->selectTasks($socid ? $socid : -1, $taskid, 'taskid', 32, 0, '-- '.$langs->trans("ChooseANotYetAssignedTask").' --', 1);
|
||||||
print '</div>';
|
print '</div>';
|
||||||
print ' ';
|
print ' ';
|
||||||
@@ -425,22 +426,22 @@ if (! empty($conf->categorie->enabled))
|
|||||||
|
|
||||||
// If the user can view user other than himself
|
// If the user can view user other than himself
|
||||||
$moreforfilter .= '<div class="divsearchfield">';
|
$moreforfilter .= '<div class="divsearchfield">';
|
||||||
$moreforfilter .= '<div class="inline-block hideonsmartphone">'.$langs->trans('User').' </div>';
|
$moreforfilter .= '<div class="inline-block hideonsmartphone"></div>';
|
||||||
$includeonly = 'hierachyme';
|
$includeonly = 'hierachyme';
|
||||||
if (empty($user->rights->user->user->lire)) $includeonly = array($user->id);
|
if (empty($user->rights->user->user->lire)) $includeonly = array($user->id);
|
||||||
$moreforfilter .= $form->select_dolusers($search_usertoprocessid ? $search_usertoprocessid : $usertoprocess->id, 'search_usertoprocessid', $user->rights->user->user->lire ? 0 : 0, null, 0, $includeonly, null, 0, 0, 0, '', 0, '', 'maxwidth200');
|
$moreforfilter .= img_picto($langs->trans('User'), 'user').$form->select_dolusers($search_usertoprocessid ? $search_usertoprocessid : $usertoprocess->id, 'search_usertoprocessid', $user->rights->user->user->lire ? 0 : 0, null, 0, $includeonly, null, 0, 0, 0, '', 0, '', 'maxwidth200');
|
||||||
$moreforfilter .= '</div>';
|
$moreforfilter .= '</div>';
|
||||||
|
|
||||||
if (empty($conf->global->PROJECT_TIMESHEET_DISABLEBREAK_ON_PROJECT))
|
if (empty($conf->global->PROJECT_TIMESHEET_DISABLEBREAK_ON_PROJECT))
|
||||||
{
|
{
|
||||||
$moreforfilter .= '<div class="divsearchfield">';
|
$moreforfilter .= '<div class="divsearchfield">';
|
||||||
$moreforfilter .= '<div class="inline-block">'.$langs->trans('Project').' </div>';
|
$moreforfilter .= '<div class="inline-block"></div>';
|
||||||
$moreforfilter .= '<input type="text" size="4" name="search_project_ref" class="marginleftonly" value="'.dol_escape_htmltag($search_project_ref).'">';
|
$moreforfilter .= img_picto($langs->trans('Project'), 'project').'<input type="text" size="4" name="search_project_ref" class="marginleftonly" value="'.dol_escape_htmltag($search_project_ref).'">';
|
||||||
$moreforfilter .= '</div>';
|
$moreforfilter .= '</div>';
|
||||||
|
|
||||||
$moreforfilter .= '<div class="divsearchfield">';
|
$moreforfilter .= '<div class="divsearchfield">';
|
||||||
$moreforfilter .= '<div class="inline-block">'.$langs->trans('ThirdParty').' </div>';
|
$moreforfilter .= '<div class="inline-block"></div>';
|
||||||
$moreforfilter .= '<input type="text" size="4" name="search_thirdparty" class="marginleftonly" value="'.dol_escape_htmltag($search_thirdparty).'">';
|
$moreforfilter .= img_picto($langs->trans('ThirdParty'), 'company').'<input type="text" size="4" name="search_thirdparty" class="marginleftonly" value="'.dol_escape_htmltag($search_thirdparty).'">';
|
||||||
$moreforfilter .= '</div>';
|
$moreforfilter .= '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -451,7 +451,7 @@ $nav .= ' '.$form->selectDate(-1, '', 0, 0, 2, "addtime", 1, 1).' ';
|
|||||||
//$nav .= ' <input type="submit" name="submitdateselect" class="button" value="'.$langs->trans("Refresh").'">';
|
//$nav .= ' <input type="submit" name="submitdateselect" class="button" value="'.$langs->trans("Refresh").'">';
|
||||||
$nav .= ' <button type="submit" name="submitdateselect" value="x" class="bordertransp"><span class="fa fa-search"></span></button>';
|
$nav .= ' <button type="submit" name="submitdateselect" value="x" class="bordertransp"><span class="fa fa-search"></span></button>';
|
||||||
|
|
||||||
$picto = 'calendarweek';
|
$picto = 'clock';
|
||||||
|
|
||||||
print '<form name="addtime" method="POST" action="'.$_SERVER["PHP_SELF"].'">';
|
print '<form name="addtime" method="POST" action="'.$_SERVER["PHP_SELF"].'">';
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
@@ -464,7 +464,7 @@ print '<input type="hidden" name="month" value="'.$month.'">';
|
|||||||
print '<input type="hidden" name="year" value="'.$year.'">';
|
print '<input type="hidden" name="year" value="'.$year.'">';
|
||||||
|
|
||||||
$head = project_timesheet_prepare_head($mode, $usertoprocess);
|
$head = project_timesheet_prepare_head($mode, $usertoprocess);
|
||||||
print dol_get_fiche_head($head, 'inputperweek', $langs->trans('TimeSpent'), -1, 'projecttask');
|
print dol_get_fiche_head($head, 'inputperweek', $langs->trans('TimeSpent'), -1, $picto);
|
||||||
|
|
||||||
// Show description of content
|
// Show description of content
|
||||||
print '<div class="hideonsmartphone opacitymedium">';
|
print '<div class="hideonsmartphone opacitymedium">';
|
||||||
@@ -492,6 +492,7 @@ print '<div class="colorbacktimesheet float valignmiddle">';
|
|||||||
$titleassigntask = $langs->transnoentities("AssignTaskToMe");
|
$titleassigntask = $langs->transnoentities("AssignTaskToMe");
|
||||||
if ($usertoprocess->id != $user->id) $titleassigntask = $langs->transnoentities("AssignTaskToUser", $usertoprocess->getFullName($langs));
|
if ($usertoprocess->id != $user->id) $titleassigntask = $langs->transnoentities("AssignTaskToUser", $usertoprocess->getFullName($langs));
|
||||||
print '<div class="taskiddiv inline-block">';
|
print '<div class="taskiddiv inline-block">';
|
||||||
|
print img_picto('', 'projecttask');
|
||||||
$formproject->selectTasks($socid ? $socid : -1, $taskid, 'taskid', 32, 0, '-- '.$langs->trans("ChooseANotYetAssignedTask").' --', 1, 0, 0, '', '', 'all', $usertoprocess);
|
$formproject->selectTasks($socid ? $socid : -1, $taskid, 'taskid', 32, 0, '-- '.$langs->trans("ChooseANotYetAssignedTask").' --', 1, 0, 0, '', '', 'all', $usertoprocess);
|
||||||
print '</div>';
|
print '</div>';
|
||||||
print ' ';
|
print ' ';
|
||||||
@@ -555,22 +556,22 @@ if (! empty($conf->categorie->enabled))
|
|||||||
|
|
||||||
// If the user can view user other than himself
|
// If the user can view user other than himself
|
||||||
$moreforfilter .= '<div class="divsearchfield">';
|
$moreforfilter .= '<div class="divsearchfield">';
|
||||||
$moreforfilter .= '<div class="inline-block hideonsmartphone">'.$langs->trans('User').' </div>';
|
$moreforfilter .= '<div class="inline-block hideonsmartphone"></div>';
|
||||||
$includeonly = 'hierarchyme';
|
$includeonly = 'hierarchyme';
|
||||||
if (empty($user->rights->user->user->lire)) $includeonly = array($user->id);
|
if (empty($user->rights->user->user->lire)) $includeonly = array($user->id);
|
||||||
$moreforfilter .= $form->select_dolusers($search_usertoprocessid ? $search_usertoprocessid : $usertoprocess->id, 'search_usertoprocessid', $user->rights->user->user->lire ? 0 : 0, null, 0, $includeonly, null, 0, 0, 0, '', 0, '', 'maxwidth200');
|
$moreforfilter .= img_picto($langs->trans('User'), 'user').$form->select_dolusers($search_usertoprocessid ? $search_usertoprocessid : $usertoprocess->id, 'search_usertoprocessid', $user->rights->user->user->lire ? 0 : 0, null, 0, $includeonly, null, 0, 0, 0, '', 0, '', 'maxwidth200');
|
||||||
$moreforfilter .= '</div>';
|
$moreforfilter .= '</div>';
|
||||||
|
|
||||||
if (empty($conf->global->PROJECT_TIMESHEET_DISABLEBREAK_ON_PROJECT))
|
if (empty($conf->global->PROJECT_TIMESHEET_DISABLEBREAK_ON_PROJECT))
|
||||||
{
|
{
|
||||||
$moreforfilter .= '<div class="divsearchfield">';
|
$moreforfilter .= '<div class="divsearchfield">';
|
||||||
$moreforfilter .= '<div class="inline-block">'.$langs->trans('Project').' </div>';
|
$moreforfilter .= '<div class="inline-block"></div>';
|
||||||
$moreforfilter .= '<input type="text" size="4" name="search_project_ref" class="marginleftonly" value="'.dol_escape_htmltag($search_project_ref).'">';
|
$moreforfilter .= img_picto($langs->trans('Project'), 'project').'<input type="text" size="4" name="search_project_ref" class="marginleftonly" value="'.dol_escape_htmltag($search_project_ref).'">';
|
||||||
$moreforfilter .= '</div>';
|
$moreforfilter .= '</div>';
|
||||||
|
|
||||||
$moreforfilter .= '<div class="divsearchfield">';
|
$moreforfilter .= '<div class="divsearchfield">';
|
||||||
$moreforfilter .= '<div class="inline-block">'.$langs->trans('ThirdParty').' </div>';
|
$moreforfilter .= '<div class="inline-block"></div>';
|
||||||
$moreforfilter .= '<input type="text" size="4" name="search_thirdparty" class="marginleftonly" value="'.dol_escape_htmltag($search_thirdparty).'">';
|
$moreforfilter .= img_picto($langs->trans('ThirdParty'), 'company').'<input type="text" size="4" name="search_thirdparty" class="marginleftonly" value="'.dol_escape_htmltag($search_thirdparty).'">';
|
||||||
$moreforfilter .= '</div>';
|
$moreforfilter .= '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user