Skip to content

Commit

Permalink
#280 [Attendant] add: eye button
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Mar 30, 2023
1 parent 5db815b commit 7d0b9d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions view/saturne_attendants.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,10 @@
}
}
print '</td><td class="center copy-signatureurl-container">';
if ($object->status == $object::STATUS_VALIDATED && $element->attendance != SaturneSignature::ATTENDANCE_ABSENT) {
if ($object->status == $object::STATUS_VALIDATED) {
if ((!$user->rights->$moduleNameLowerCase->$objectType->read && $user->rights->$moduleNameLowerCase->assignedtome->$objectType && ($element->element_id == $user->id || $element->element_id == $user->contact_id)) || $permissiontoadd) {
$signatureUrl = dol_buildpath('/custom/dolimeet/public/signature/add_signature.php?track_id=' . $element->signature_url . '&object_type=' . $object->element, 3);
print '<a href=' . $signatureUrl . ' target="_blank"><div class="wpeo-button button-primary"><i class="fas fa-signature"></i></div></a>';
print '<a href=' . $signatureUrl . ' target="_blank"><div class="wpeo-button button-primary"><i class="fas' . (($element->status == SaturneSignature::STATUS_SIGNED) ? ' fa-eye' : ' fa-signature') . '"></i></div></a>';
print ' <i class="fas fa-clipboard copy-signatureurl" data-signature-url="' . $signatureUrl . '" style="color: #666"></i>';
print '<span class="copied-to-clipboard" style="display:none">' . ' ' . $langs->trans('CopiedToClipboard') . '</span>';
}
Expand Down

0 comments on commit 7d0b9d8

Please sign in to comment.