mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-25 06:20:36 +02:00
Validation paiements
This commit is contained in:
@ -14,9 +14,12 @@ if (!$has_error) {
|
||||
<div class="alert alert-success">
|
||||
La personne a bien rejoint l'équipe !
|
||||
</div>
|
||||
<?php }
|
||||
}
|
||||
?>
|
||||
<?php } elseif (isset($validate_payment)) { ?>
|
||||
<div class="alert alert-success">
|
||||
La paiement a bien été validé / rejeté ! Un mail a été transmis au participant.
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<div class="alert alert-info">
|
||||
<strong>Rôle :</strong> <?= Role::getTranslatedName($user->getRole()) ?>
|
||||
@ -101,6 +104,49 @@ if (!$has_error) {
|
||||
Adresse e-mail du responsable légal : <a href="mailto:<?= $user->getResponsibleEmail() ?>"><?= $user->getResponsibleEmail() ?></a>
|
||||
</div>
|
||||
|
||||
<div class="alert alert-info">
|
||||
<strong>Récapitulatif du paiement :</strong><br /><br />
|
||||
|
||||
<?php if ($payment->getValidationStatus() == ValidationStatus::NOT_READY) { ?>
|
||||
<div class="alert alert-danger">
|
||||
Cette personne n'a pas encore payé sa participation.
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<strong>Tournoi :</strong> <?= $tournament->getName() ?><br />
|
||||
<strong>Montant :</strong> <?= $payment->getAmount() ?> €<br />
|
||||
<strong>Moyen de paiement :</strong> <?= PaymentMethod::getTranslatedName($payment->getMethod()) ?><br />
|
||||
<?php if ($payment->getMethod() == PaymentMethod::SCHOLARSHIP) { ?>
|
||||
<strong>Notification de bourse :</strong> <a href="/file/<?= $payment->getTransactionInfos() ?>">Télécharger</a><br /><br />
|
||||
<?php } else { ?>
|
||||
<strong>Informations sur le paiement :</strong> <?= $payment->getTransactionInfos() ?><br /><br />
|
||||
<?php }
|
||||
|
||||
if ($payment->getValidationStatus() == ValidationStatus::WAITING) { ?>
|
||||
<div class="alert alert-warning">
|
||||
Le paiement n'a pas encore été validé.
|
||||
|
||||
<form method="POST">
|
||||
<input type="hidden" name="validate_payment" value=""/>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="message">Message à adresser au participant :</label>
|
||||
<textarea class="form-control" id="message" name="message"></textarea>
|
||||
</div>
|
||||
|
||||
<input class="btn btn-primary btn-lg" style="width: 49%;"
|
||||
type="submit" name="accept" value="Valider le paiement"/>
|
||||
<input class="btn btn-light btn-lg" style="width: 49%;" type="submit" name="reject"
|
||||
value="Rejeter le paiement"/>
|
||||
</form>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="alert alert-success">
|
||||
Le paiement a été validé.
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php } elseif ($user->getDescription() != "") { ?>
|
||||
<div class="alert alert-info">
|
||||
Description : <?= $user->getDescription() ?>
|
||||
|
Reference in New Issue
Block a user