Browse Source

Look and feel v19

Laurent Destailleur 1 year ago
parent
commit
f11e6b9cc7
2 changed files with 15 additions and 19 deletions
  1. 5 11
      htdocs/hrm/core/tpl/objectline_title.tpl.php
  2. 10 8
      htdocs/hrm/evaluation_card.php

+ 5 - 11
htdocs/hrm/core/tpl/objectline_title.tpl.php

@@ -52,28 +52,22 @@ print '<tr class="liste_titre nodrag nodrop">';
 
 // Adds a line numbering column
 if (!empty($conf->global->MAIN_VIEW_LINE_NUMBER)) {
-	print '<td class="linecolnum center">&nbsp;</td>';
+	print '<th class="linecolnum center">&nbsp;</th>';
 }
 
 // Skill type
-print '<td class="linecollabel">'.$langs->trans('SkillType').'</td>';
+print '<th class="linecollabel">'.$langs->trans('SkillType').'</th>';
 
 // Label skill
-print '<td class="linecollabel">'.$langs->trans('Label').'</td>';
+print '<th class="linecollabel">'.$langs->trans('Label').'</th>';
 
 // Comment
-print '<td class="linecolcomment"></td>';
+print '<th class="linecolcomment"></th>';
 
 // Note
-print '<td class="linecolrank right" style="width: 80px">'.$form->textwithpicto($langs->trans("Level"), $langs->trans('EmployeeRank')).'</td>';
+print '<th class="linecolrank right" style="width: 80px">'.$form->textwithpicto($langs->trans("Level"), $langs->trans('EmployeeRank')).'</th>';
 
 
-//print '<td class="linecoledit"></td>'; // No width to allow autodim
-
-//print '<td class="linecoldelete" style="width: 10px"></td>';
-
-//print '<td class="linecolmove" style="width: 10px"></td>';
-
 print "</tr>\n";
 print "</thead>\n";
 

+ 10 - 8
htdocs/hrm/evaluation_card.php

@@ -354,7 +354,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
 			require_once DOL_DOCUMENT_ROOT.'/core/class/notify.class.php';
 			$notify = new Notify($db);
 			$text .= '<br>';
-			$text .= $notify->confirmMessage('HRM_EVALUATION_VALIDATE', $object->socid, $object);
+			$text .= $notify->confirmMessage('HRM_EVALUATION_VALIDATE', 0, $object);
 		}
 
 		if (!$error) {
@@ -440,9 +440,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
 	print dol_get_fiche_end();
 
 
-	/*
-	 * Lines
-	 */
+	// Lines when evaluation is in edit mode
 
 	if (!empty($object->table_element_line) && $object->status == Evaluation::STATUS_DRAFT) {
 		// Show object lines
@@ -469,7 +467,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
 
 		print '<div class="div-table-responsive-no-min">';
 		if (!empty($object->lines) || ($object->status == $object::STATUS_DRAFT && $permissiontoadd && $action != 'selectlines' && $action != 'editline')) {
-			print '<table id="tablelines" class="noborder noshadow" width="100%">';
+			print '<table id="tablelines" class="noborder noshadow centpercent">';
 		}
 
 		// Lines of evaluated skills
@@ -505,7 +503,8 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
 		print "<br>";
 	}
 
-	// list of comparison
+	// Lines when evaluation is validated
+
 	if ($object->status != Evaluation::STATUS_DRAFT) {
 		// Recovery of skills related to this evaluation
 
@@ -567,8 +566,10 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
 				$num++;
 			}
 
-			print '<div class="underbanner clearboth"></div>';
-			print '<table class="noborder centpercent">';
+			print '<br>';
+
+			print '<div class="div-table-responsive-no-min">';
+			print '<table id="tablelines" class="noborder noshadow centpercent">';
 
 			print '<tr class="liste_titre">';
 			print '<th style="width:auto;text-align:auto" class="liste_titre">' . $langs->trans("TypeSkill") . ' </th>';
@@ -594,6 +595,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
 			}
 
 			print '</table>';
+			print '</div>';
 
 			?>