mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-25 07:40:32 +02:00
Paiement
This commit is contained in:
@ -127,7 +127,15 @@ require_once "header.php";
|
||||
<hr />
|
||||
|
||||
<h2>Autorisations de l'équipe</h2>
|
||||
<?php printDocuments($documents); ?>
|
||||
<?php printDocuments($documents);
|
||||
|
||||
if ($team->isSelectedForFinal()) { ?>
|
||||
<hr />
|
||||
|
||||
<h2>Autorisations de l'équipe pour la finale</h2>
|
||||
|
||||
<?php printDocuments($documents_final); ?>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php require_once "footer.php" ?>
|
@ -10,11 +10,11 @@ require_once "header.php"
|
||||
|
||||
if ($payment->getValidationStatus() == ValidationStatus::NOT_READY) { ?>
|
||||
<div class="alert alert-danger">
|
||||
Il faut payer maintenant.
|
||||
Il faut payer <?= $tournament->getPrice() ?> € maintenant.
|
||||
</div>
|
||||
|
||||
<div class="alert alert-info">
|
||||
<form method="POST">
|
||||
<form method="POST" enctype="multipart/form-data">
|
||||
<label for="method"><strong>Mode de paiement :</strong></label>
|
||||
<select class="custom-select" id="method" name="method">
|
||||
<?php
|
||||
@ -29,13 +29,28 @@ if ($payment->getValidationStatus() == ValidationStatus::NOT_READY) { ?>
|
||||
<input class="btn btn-primary btn-block" type="submit" name="pay" value="Envoyer" />
|
||||
</form>
|
||||
</div>
|
||||
<?php } else if ($payment->getValidationStatus() == ValidationStatus::WAITING) { ?>
|
||||
<div class="alert alert-warning">
|
||||
Votre paiement est en attente de validation.
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="alert alert-success">
|
||||
Votre paiement de <?= $payment->getAmount() ?> a bien été validé.
|
||||
<?php } else {
|
||||
if ($payment->getValidationStatus() == ValidationStatus::WAITING) { ?>
|
||||
<div class="alert alert-warning">
|
||||
Votre paiement est en attente de validation.
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="alert alert-success">
|
||||
Votre paiement a bien été validé.
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="alert alert-info">
|
||||
<strong>Récapitulatif du paiement :</strong><br /><br />
|
||||
|
||||
<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 />
|
||||
<?php } else { ?>
|
||||
<strong>Informations sur le paiement :</strong> <?= $payment->getTransactionInfos() ?><br />
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
|
Reference in New Issue
Block a user