-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Théo David
committed
Aug 9, 2022
1 parent
9573c51
commit e524c3a
Showing
55 changed files
with
6,180 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<div class="wpeo-dropdown"> | ||
<div class="dropdown-toggle wpeo-button button-main"><span><?php echo $langs->trans('ActionsSignature'); ?></span> <i class="fas fa-caret-down"></i></div> | ||
<ul class="dropdown-content"> | ||
<?php if ($object->status == 2) : ?> | ||
<?php if ($element->role == 'PP_EXT_SOCIETY_INTERVENANTS') : ?> | ||
<li class="dropdown-item"> | ||
<?php print '<form method="POST" action="' . $_SERVER["PHP_SELF"] . '?id=' . $id . '">'; | ||
print '<input type="hidden" name="token" value="' . newToken() . '">'; | ||
print '<input type="hidden" name="action" value="setAbsent">'; | ||
print '<input type="hidden" name="signatoryID" value="' . $element->id . '">'; | ||
print '<input type="hidden" name="backtopage" value="' . $backtopage . '">'; ?> | ||
<button type="submit" class="signature-absent wpeo-button button-primary" value="<?php echo $element->id ?>"> | ||
<span><?php echo $langs->trans('Absent'); ?></span> | ||
</button> | ||
</form> | ||
</li> | ||
<?php endif; ?> | ||
<li class="dropdown-item"> | ||
<?php print '<form method="POST" action="' . $_SERVER["PHP_SELF"] . '?id=' . $id . '">'; | ||
print '<input type="hidden" name="token" value="' . newToken() . '">'; | ||
print '<input type="hidden" name="action" value="send">'; | ||
print '<input type="hidden" name="signatoryID" value="' . $element->id . '">'; | ||
print '<input type="hidden" name="backtopage" value="' . $backtopage . '">'; ?> | ||
<button type="submit" class="signature-email wpeo-button button-primary" value="<?php echo $element->id ?>"> | ||
<span><i class="fas fa-at"></i> <?php echo $langs->trans('SendEmail'); ?></span> | ||
</button> | ||
</form> | ||
</li> | ||
|
||
<?php endif; ?> | ||
|
||
<?php if ($object->status == 1) : ?> | ||
<?php if ($element->role == 'PP_EXT_SOCIETY_INTERVENANTS') : ?> | ||
<li class="dropdown-item"> | ||
<?php print '<form method="POST" action="' . $_SERVER["PHP_SELF"] . '">'; | ||
print '<input type="hidden" name="token" value="' . newToken() . '">'; | ||
print '<input type="hidden" name="action" value="deleteAttendant">'; | ||
print '<input type="hidden" name="signatoryID" value="' . $element->id . '">'; | ||
print '<input type="hidden" name="backtopage" value="' . $backtopage . '">'; ?> | ||
<button type="submit" name="deleteAttendant" id="deleteAttendant" class="attendant-delete wpeo-button button-primary" value="<?php echo $element->id ?>"> | ||
<span><i class="fas fa-trash"></i> <?php echo $langs->trans('DeleteAttendant'); ?></span> | ||
</button> | ||
<?php print '</form>'; ?> | ||
</li> | ||
<?php endif; ?> | ||
<?php endif; ?> | ||
|
||
</ul> | ||
</div> | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php if (empty($element->signature) && ($object->status == 2 || $element->signature == $langs->transnoentities("FileGenerated"))) : ?> | ||
<div class="wpeo-button button-blue wpeo-modal-event modal-signature-open modal-open" value="<?php echo $element->id ?>"> | ||
<span><i class="fas fa-signature"></i> <?php echo $langs->trans('Sign'); ?></span> | ||
</div> | ||
<?php elseif ( ! empty($element->signature)) : ?> | ||
<img class="wpeo-modal-event modal-signature-open modal-open" value="<?php echo $element->id ?>" src='<?php echo $element->signature ?>' width="100px" height="100px" style="border: #0b419b solid 2px"> | ||
<?php endif; ?> | ||
|
||
<div class="modal-signature" value="<?php echo $element->id ?>"> | ||
<input type="hidden" name="token" value="<?php echo newToken(); ?>"> | ||
<div class="wpeo-modal modal-signature" id="modal-signature<?php echo $element->id ?>"> | ||
<div class="modal-container wpeo-modal-event"> | ||
<!-- Modal-Header--> | ||
<div class="modal-header"> | ||
<h2 class="modal-title"><?php echo $langs->trans('Signature'); ?></h2> | ||
<div class="modal-close"><i class="fas fa-times"></i></div> | ||
</div> | ||
<!-- Modal-ADD Signature Content--> | ||
<div class="modal-content" id="#modalContent"> | ||
<input type="hidden" id="signature_data<?php echo $element->id ?>" value="<?php echo $element->signature ?>"> | ||
<canvas style="height: 95%; width: 95%; border: #0b419b solid 2px"></canvas> | ||
</div> | ||
<!-- Modal-Footer--> | ||
<div class="modal-footer"> | ||
<div class="signature-erase wpeo-button button-grey"> | ||
<span><i class="fas fa-eraser"></i> <?php echo $langs->trans('Erase'); ?></span> | ||
</div> | ||
<div class="wpeo-button button-grey modal-close"> | ||
<span><?php echo $langs->trans('Cancel'); ?></span> | ||
</div> | ||
<div class="signature-validate wpeo-button button-primary" value="<?php echo $element->id ?>"> | ||
<input type="hidden" id="redirect<?php echo $element->id ?>" value="<?php echo $url ?>"> | ||
<input type="hidden" id="zone<?php echo $element->id ?>" value="<?php echo $zone ?>"> | ||
<span><?php echo $langs->trans('Validate'); ?></span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php | ||
//Silence is golden |
Oops, something went wrong.