Informations de paiement

This commit is contained in:
Yohann D'ANELLO 2020-01-16 23:27:18 +01:00
parent 9e7a7308be
commit b9299a31d0
2 changed files with 14 additions and 4 deletions

View File

@ -99,7 +99,7 @@
if (!$team->isSelectedForFinal() && $team->getValidationStatus() == ValidationStatus::VALIDATED && $_SESSION["role"] == Role::ADMIN) { ?> if (!$team->isSelectedForFinal() && $team->getValidationStatus() == ValidationStatus::VALIDATED && $_SESSION["role"] == Role::ADMIN) { ?>
<hr/> <hr/>
<form method="POST"> <form method="POST">
<input style="width: 100%;" type="submit" name="select" value="Sélectionner pour la finale nationale"/> <input class="btn btn-primary btn-lg btn-block" type="submit" name="select" value="Sélectionner pour la finale nationale"/>
</form> </form>
<?php } <?php }

View File

@ -9,8 +9,15 @@ require_once "header.php"
<?php <?php
if ($payment->getValidationStatus() == ValidationStatus::NOT_READY) { ?> if ($payment->getValidationStatus() == ValidationStatus::NOT_READY) { ?>
<div class="alert alert-danger"> <div class="alert alert-warning">
Il faut payer <?= $tournament->getPrice() ?> € maintenant. Le prix du tournoi est de <?= $tournament->getPrice() ?> €. Vous pouvez par carte bancaire via
<a href="">la plateforme dédiée</a> (qui sera créée ultérieurement), et indiquer sur cette page les informations de paiement
qui nous permettront de le retrouver. Si ce n'est pas possible, vous pouvez également procéder à un virement sur le compte :<br /><br />
<strong>IBAN :</strong> FR76 1027 8065 0000 0206 4290 127<br />
<strong>BIC :</strong> CMCIFR2A<br /><br />
en précisant bien en référence du virement la mention <strong>TFJMpu</strong> suivie des nom et prénom de l'élève.<br /><br />
Si aucune de ces procédures nest possible pour vous, envoyez un mail à <a href="mailto:contact@tfjm.org">contact@tfjm.org</a>
pour que nous trouvions une solution à vos difficultés.
</div> </div>
<div class="alert alert-info"> <div class="alert alert-info">
@ -18,7 +25,10 @@ if ($payment->getValidationStatus() == ValidationStatus::NOT_READY) { ?>
<label for="method"><strong>Mode de paiement :</strong></label> <label for="method"><strong>Mode de paiement :</strong></label>
<select class="custom-select" id="method" name="method"> <select class="custom-select" id="method" name="method">
<?php <?php
for ($method = PaymentMethod::NOT_PAID; $method <= PaymentMethod::SCHOLARSHIP; ++$method) { ?> for ($method = PaymentMethod::NOT_PAID; $method <= PaymentMethod::SCHOLARSHIP; ++$method) {
if ($method == PaymentMethod::CASH || $method == PaymentMethod::BANK_CHECK)
continue;
?>
<option value="<?= strtolower(PaymentMethod::getName($method)) ?>"><?= PaymentMethod::getTranslatedName($method) ?></option> <option value="<?= strtolower(PaymentMethod::getName($method)) ?>"><?= PaymentMethod::getTranslatedName($method) ?></option>
<?php } ?> <?php } ?>
</select> </select>