Skip to content

Commit

Permalink
#1264 #1291 [Control] add: remove trad NoVerdict and picto dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Jul 4, 2023
1 parent 6deb5d2 commit 514cd9b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions class/control.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ public function getNbControlsByVerdict(): array

$array['labels'] = [
0 => [
'label' => $langs->transnoentities('NoVerdict'),
'label' => 'N/A',
'color' => '#999999'
],
1 => [
Expand Down Expand Up @@ -870,7 +870,7 @@ public function getNbControlsTagsByVerdict(): array

$array['labels'] = [
0 => [
'label' => $langs->transnoentities('NoVerdict'),
'label' => 'N/A',
'color' => '#999999'
],
1 => [
Expand Down Expand Up @@ -1018,7 +1018,7 @@ public function getControlListsByQcFrequency(): array
$arrayControlListsByQcFrequency[$control->id]['ControlDate']['value'] = dol_print_date($control->date_creation, 'day');
$arrayControlListsByQcFrequency[$control->id]['NextControl']['value'] = '<div class="wpeo-button button-'. $nextControlColor .'">' . $nextControl . '<br>' . $langs->trans('Days') . '</div>';
$arrayControlListsByQcFrequency[$control->id]['NextControl']['morecss'] = 'dashboard-control';
$arrayControlListsByQcFrequency[$control->id]['Verdict']['value'] = '<div class="wpeo-button button-'. $verdictColor .'">' . $control->fields['verdict']['arrayofkeyval'][(!empty($control->verdict)) ?: 3] . '</div>';
$arrayControlListsByQcFrequency[$control->id]['Verdict']['value'] = '<div class="wpeo-button button-'. $verdictColor .'">' . (!empty($control->verdict) ? $langs->transnoentities($control->fields['verdict']['arrayofkeyval'][$control->verdict]) : '<i class="fas fa-minus"></i>') . '</div>';
$arrayControlListsByQcFrequency[$control->id]['Verdict']['morecss'] = 'dashboard-control';
}
}
Expand Down
1 change: 0 additions & 1 deletion langs/fr_FR/dolismq.lang
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ AddUser = Créer utilisateur
AddControlIntoCategory = Assigner cette catégorie au contrôle
ProductOrServiceLinked = Produit ou service contrôlé
CanSetVerdict = Définir le verdict du contrôle
NoVerdict = Pas de verdict
ControlsRepartition = Répartition des contrôles par verdict
ControlsTagsRepartition = Répartition des contrôles par verdict et par catégories
ControlsByFiscalYear = Rapport des contrôles sur l'exercice fiscal
Expand Down
2 changes: 1 addition & 1 deletion public/control/public_control.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<div class="wpeo-table table-flex">
<div class="table-row">
<div class="table-cell"><?php echo '<i class="far fa-check-circle"></i> ' . $langs->trans('Verdict'); ?></div>
<div class="table-cell table-end"><?php echo (!empty($object->verdict) ? $langs->transnoentities($object->fields['verdict']['arrayofkeyval'][$object->verdict]) : $langs->transnoentities('NoVerdict')); ?></div>
<div class="table-cell table-end"><?php echo (!empty($object->verdict) ? $langs->transnoentities($object->fields['verdict']['arrayofkeyval'][$object->verdict]) : 'N/A'); ?></div>
</div>
<div class="table-row">
<div class="wpeo-table table-cell table-full">
Expand Down

0 comments on commit 514cd9b

Please sign in to comment.