Fix responsive
This commit is contained in:
parent
c7bb6c3c4c
commit
e76afe475b
@ -6584,7 +6584,7 @@ class Form
|
||||
// phpcs:enable
|
||||
global $langs;
|
||||
|
||||
$retstring = '';
|
||||
$retstring = '<span class="nowraponall">';
|
||||
|
||||
$hourSelected = 0;
|
||||
$minSelected = 0;
|
||||
@ -6616,7 +6616,7 @@ class Form
|
||||
if ($typehour != 'text') {
|
||||
$retstring .= ' '.$langs->trans('HourShort');
|
||||
} else {
|
||||
$retstring .= '<span class="hideonsmartphone">:</span>';
|
||||
$retstring .= '<span class="">:</span>';
|
||||
}
|
||||
|
||||
// Minutes
|
||||
@ -6644,7 +6644,7 @@ class Form
|
||||
$retstring .= ' '.$langs->trans('MinuteShort');
|
||||
}
|
||||
|
||||
//$retstring.=" ";
|
||||
$retstring.="</span>";
|
||||
|
||||
if (!empty($nooutput)) {
|
||||
return $retstring;
|
||||
|
||||
@ -1561,8 +1561,8 @@ function projectLinesPerDay(&$inc, $parent, $fuser, $lines, &$level, &$projectsr
|
||||
$disabledtask = 1;
|
||||
}
|
||||
|
||||
// Form to add new time
|
||||
print '<td class="nowrap leftborder center">';
|
||||
// Select hour
|
||||
print '<td class="nowraponall leftborder center minwidth150imp">';
|
||||
$tableCell = $form->selectDate($preselectedday, $lines[$i]->id, 1, 1, 2, "addtime", 0, 0, $disabledtask);
|
||||
print $tableCell;
|
||||
print '</td>';
|
||||
|
||||
@ -349,7 +349,7 @@ $next_day = $next['mday'];
|
||||
|
||||
$title = $langs->trans("TimeSpent");
|
||||
|
||||
$projectsListId = $projectstatic->getProjectsAuthorizedForUser($usertoprocess, (empty($usertoprocess->id) ? 2 : 0), 1); // Return all project i have permission on. I want my tasks and some of my task may be on a public projet that is not my project
|
||||
$projectsListId = $projectstatic->getProjectsAuthorizedForUser($usertoprocess, (empty($usertoprocess->id) ? 2 : 0), 1); // Return all project i have permission on (assigned to me+public). I want my tasks and some of my task may be on a public projet that is not my project
|
||||
|
||||
if ($id) {
|
||||
$project->fetch($id);
|
||||
@ -476,12 +476,12 @@ if ($usertoprocess->id != $user->id) {
|
||||
$titleassigntask = $langs->transnoentities("AssignTaskToUser", $usertoprocess->getFullName($langs));
|
||||
}
|
||||
print '<div class="taskiddiv inline-block">';
|
||||
print img_picto('', 'projecttask');
|
||||
print img_picto('', 'projecttask', 'class="pictofixedwidth"');
|
||||
$formproject->selectTasks($socid ? $socid : -1, $taskid, 'taskid', 32, 0, '-- '.$langs->trans("ChooseANotYetAssignedTask").' --', 1, 0, 0, '', '', 'all', $usertoprocess);
|
||||
print '</div>';
|
||||
print ' ';
|
||||
print $formcompany->selectTypeContact($object, '', 'type', 'internal', 'rowid', 0, 'maxwidth150onsmartphone');
|
||||
print '<input type="submit" class="button valignmiddle" name="assigntask smallonsmartphone" value="'.dol_escape_htmltag($titleassigntask).'">';
|
||||
print '<input type="submit" class="button valignmiddle smallonsmartphone" name="assigntask" value="'.dol_escape_htmltag($titleassigntask).'">';
|
||||
print '</div>';
|
||||
|
||||
print '<div class="clearboth" style="padding-bottom: 20px;"></div>';
|
||||
@ -596,10 +596,10 @@ $extrafieldsobjectkey = 'projet_task';
|
||||
$extrafieldsobjectprefix = 'efpt.';
|
||||
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_title.tpl.php';
|
||||
if (!empty($arrayfields['t.planned_workload']['checked'])) {
|
||||
print '<th class="leftborder plannedworkload maxwidth100 right">'.$langs->trans("PlannedWorkload").'</th>';
|
||||
print '<th class="leftborder plannedworkload minwidth75 maxwidth100 right" title="'.dol_escape_htmltag($langs->trans("PlannedWorkload")).'">'.$langs->trans("PlannedWorkload").'</th>';
|
||||
}
|
||||
if (!empty($arrayfields['t.progress']['checked'])) {
|
||||
print '<th class="right maxwidth100">'.$langs->trans("ProgressDeclared").'</th>';
|
||||
print '<th class="right minwidth75 maxwidth100 title="'.dol_escape_htmltag($langs->trans("ProgressDeclared")).'">'.$langs->trans("ProgressDeclared").'</th>';
|
||||
}
|
||||
if (!empty($arrayfields['timeconsumed']['checked'])) {
|
||||
print '<th class="right maxwidth100">'.$langs->trans("TimeSpent").'<br>';
|
||||
@ -608,7 +608,7 @@ if (!empty($arrayfields['timeconsumed']['checked'])) {
|
||||
print '<span class="opacitymedium paddingleft">'.$langs->trans("Everybody").'</span>';
|
||||
print '</span>';
|
||||
print '</th>';
|
||||
print '<th class="right maxwidth100">'.$langs->trans("TimeSpent").($usertoprocess->firstname ? '<br><span class="nowraponall">'.$usertoprocess->getNomUrl(-2).'<span class="opacitymedium paddingleft">'.dol_trunc($usertoprocess->firstname, 10).'</span></span>' : '').'</th>';
|
||||
print '<th class="right maxwidth75 maxwidth100">'.$langs->trans("TimeSpent").($usertoprocess->firstname ? '<br><span class="nowraponall">'.$usertoprocess->getNomUrl(-2).'<span class="opacitymedium paddingleft">'.dol_trunc($usertoprocess->firstname, 10).'</span></span>' : '').'</th>';
|
||||
}
|
||||
print '<th class="center leftborder">'.$langs->trans("HourStart").'</td>';
|
||||
|
||||
|
||||
@ -119,6 +119,7 @@ $extrafields = new ExtraFields($db);
|
||||
// fetch optionals attributes and labels
|
||||
$extrafields->fetch_name_optionals_label($object->table_element);
|
||||
|
||||
// Definition of fields for list
|
||||
$arrayfields = array();
|
||||
/*$arrayfields=array(
|
||||
// Project
|
||||
@ -441,7 +442,7 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
|
||||
|
||||
// Show navigation bar
|
||||
$nav = '<a class="inline-block valignmiddle" href="?year='.$prev_year."&month=".$prev_month."&day=".$prev_day.$param.'">'.img_previous($langs->trans("Previous"))."</a>\n";
|
||||
$nav .= " <span id=\"month_name\">".dol_print_date(dol_mktime(0, 0, 0, $first_month, $first_day, $first_year), "%Y").", ".$langs->trans("WeekShort")." ".$week." </span>\n";
|
||||
$nav .= ' <span id="month_name">'.dol_print_date(dol_mktime(0, 0, 0, $first_month, $first_day, $first_year), "%Y").", ".$langs->trans("WeekShort")." ".$week." </span>\n";
|
||||
$nav .= '<a class="inline-block valignmiddle" href="?year='.$next_year."&month=".$next_month."&day=".$next_day.$param.'">'.img_next($langs->trans("Next"))."</a>\n";
|
||||
$nav .= ' '.$form->selectDate(-1, '', 0, 0, 2, "addtime", 1, 1).' ';
|
||||
$nav .= ' <button type="submit" name="submitdateselect" value="x" class="bordertransp"><span class="fa fa-search"></span></button>';
|
||||
@ -652,10 +653,10 @@ $extrafieldsobjectkey = 'projet_task';
|
||||
$extrafieldsobjectprefix = 'efpt.';
|
||||
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_title.tpl.php';
|
||||
if (!empty($arrayfields['t.planned_workload']['checked'])) {
|
||||
print '<th class="right leftborder plannedworkload maxwidth75 right">'.$langs->trans("PlannedWorkload").'</th>';
|
||||
print '<th class="leftborder plannedworkload minwidth75 maxwidth100 right" title="'.dol_escape_htmltag($langs->trans("PlannedWorkload")).'">'.$langs->trans("PlannedWorkload").'</th>';
|
||||
}
|
||||
if (!empty($arrayfields['t.progress']['checked'])) {
|
||||
print '<th class="maxwidth75 right">'.$langs->trans("ProgressDeclared").'</th>';
|
||||
print '<th class="right minwidth75 maxwidth100" title="'.dol_escape_htmltag($langs->trans("ProgressDeclared")).'">'.$langs->trans("ProgressDeclared").'</th>';
|
||||
}
|
||||
if (!empty($arrayfields['timeconsumed']['checked'])) {
|
||||
print '<th class="right maxwidth100">'.$langs->trans("TimeSpent").'<br>';
|
||||
@ -664,7 +665,7 @@ if (!empty($arrayfields['timeconsumed']['checked'])) {
|
||||
print '<span class="opacitymedium paddingleft">'.$langs->trans("Everybody").'</span>';
|
||||
print '</span>';
|
||||
print '</th>';
|
||||
print '<th class="maxwidth75 right">'.$langs->trans("TimeSpent").($usertoprocess->firstname ? '<br><span class="nowraponall">'.$usertoprocess->getNomUrl(-2).'<span class="opacitymedium paddingleft">'.dol_trunc($usertoprocess->firstname, 10).'</span></span>' : '').'</th>';
|
||||
print '<th class="right maxwidth75 maxwidth100">'.$langs->trans("TimeSpent").($usertoprocess->firstname ? '<br><span class="nowraponall">'.$usertoprocess->getNomUrl(-2).'<span class="opacitymedium paddingleft">'.dol_trunc($usertoprocess->firstname, 10).'</span></span>' : '').'</th>';
|
||||
}
|
||||
for ($idw = 0; $idw < 7; $idw++) {
|
||||
$dayinloopfromfirstdaytoshow = dol_time_plus_duree($firstdaytoshow, $idw, 'd'); // $firstdaytoshow is a date with hours = 0
|
||||
@ -691,7 +692,7 @@ for ($idw = 0; $idw < 7; $idw++) {
|
||||
$cssonholiday .= 'onholidayafternoon ';
|
||||
}
|
||||
|
||||
print '<th width="6%" align="center" class="bold hide'.$idw.($cssonholiday ? ' '.$cssonholiday : '').($cssweekend ? ' '.$cssweekend : '').'">';
|
||||
print '<th width="6%" class="center bold hide'.$idw.($cssonholiday ? ' '.$cssonholiday : '').($cssweekend ? ' '.$cssweekend : '').'">';
|
||||
print dol_print_date($dayinloopfromfirstdaytoshow, '%a');
|
||||
print '<br>'.dol_print_date($dayinloopfromfirstdaytoshow, 'dayreduceformat').'</th>';
|
||||
}
|
||||
|
||||
@ -180,7 +180,7 @@ print '<br><br>';
|
||||
|
||||
print '<div class="div-table-responsive-no-min">';
|
||||
print '<table class="noborder centpercent">';
|
||||
print '<tr class="liste_titre" height="24">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Year").'</td>';
|
||||
print '<td class="right">'.$langs->trans("NbOfTasks").'</td>';
|
||||
print '</tr>';
|
||||
@ -191,14 +191,14 @@ foreach ($data_all_year as $val) {
|
||||
while ($year && $oldyear > $year + 1) { // If we have empty year
|
||||
$oldyear--;
|
||||
|
||||
print '<tr class="oddeven" height="24">';
|
||||
print '<td class="center"><a href="'.$_SERVER["PHP_SELF"].'?year='.$oldyear.($socid > 0 ? '&socid='.$socid : '').($userid > 0 ? '&userid='.$userid : '').'">'.$oldyear.'</a></td>';
|
||||
print '<tr class="oddeven">';
|
||||
print '<td><a href="'.$_SERVER["PHP_SELF"].'?year='.$oldyear.($socid > 0 ? '&socid='.$socid : '').($userid > 0 ? '&userid='.$userid : '').'">'.$oldyear.'</a></td>';
|
||||
print '<td class="right">0</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
|
||||
print '<tr class="oddeven" height="24">';
|
||||
print '<td class="center"><a href="'.$_SERVER["PHP_SELF"].'?year='.$year.($socid > 0 ? '&socid='.$socid : '').($userid > 0 ? '&userid='.$userid : '').'">'.$year.'</a></td>';
|
||||
print '<tr class="oddeven">';
|
||||
print '<td><a href="'.$_SERVER["PHP_SELF"].'?year='.$year.($socid > 0 ? '&socid='.$socid : '').($userid > 0 ? '&userid='.$userid : '').'">'.$year.'</a></td>';
|
||||
print '<td class="right">'.$val['nb'].'</td>';
|
||||
print '</tr>';
|
||||
$oldyear = $year;
|
||||
|
||||
@ -286,10 +286,11 @@ print '<div class="corps"> '."\n";
|
||||
|
||||
// show title of survey
|
||||
$titre = str_replace("\\", "", $object->title);
|
||||
print '<strong>'.dol_htmlentities($titre).'</strong><br><br>'."\n";
|
||||
print '<strong>'.dol_htmlentities($titre).'</strong>';
|
||||
|
||||
// show description of survey
|
||||
if ($object->description) {
|
||||
print '<br><br>'."\n";
|
||||
print dol_htmlentitiesbr($object->description);
|
||||
print '<br>'."\n";
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user