Skip to content

Commit

Permalink
#463 [Session] fix: good conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-micka committed Dec 22, 2023
1 parent 2b0e4c0 commit bbb205b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions view/session/session_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -509,15 +509,15 @@
$displayButton = $onPhone ? '<i class="fas fa-check fa-2x"></i>' : '<i class="fas fa-check"></i>' . ' ' . $langs->trans('Validate');
if ($object->status == $object::STATUS_DRAFT && $nbAttendants > 0) {
print '<span class="butAction" id="actionButtonPendingSignature">' . $displayButton . '</span>';
} else {
} else if ($object->status < $object::STATUS_VALIDATED && $nbAttendants <= 0) {
print '<span class="butActionRefused classfortooltip" title="' . dol_escape_htmltag($langs->trans('ObjectMustBeDraft', ucfirst($langs->transnoentities('The' . ucfirst($object->element)))) . '<br>' . $mesg) . '">' . $displayButton . '</span>';
}

// ReOpen.
$displayButton = $onPhone ? '<i class="fas fa-lock-open fa-2x"></i>' : '<i class="fas fa-lock-open"></i>' . ' ' . $langs->trans('ReOpenDoli');
if ($object->status == $object::STATUS_VALIDATED) {
print '<span class="butAction" id="actionButtonInProgress">' . $displayButton . '</span>';
} else {
} else if ($object->status >= $object::STATUS_VALIDATED) {
print '<span class="butActionRefused classfortooltip" title="' . dol_escape_htmltag($langs->trans('ObjectMustBeValidated', ucfirst($langs->transnoentities('The' . ucfirst($object->element))))) . '">' . $displayButton . '</span>';
}

Expand Down

0 comments on commit bbb205b

Please sign in to comment.