mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-25 01:00:32 +02:00
Support des lettres de motivation
This commit is contained in:
@ -227,6 +227,7 @@ if (!$has_error && (isset($my_account) || isset($new_password))) {
|
||||
<?php } ?>
|
||||
<option value="photo_consent">Autorisation de droit à l'image</option>
|
||||
<option value="sanitary_plug">Fiche sanitaire</option>
|
||||
<option value="motivation_letter">Lettre de motivation (pour toute l'équipe)</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -115,7 +115,7 @@ require_once "header.php";
|
||||
<div class="alert alert-warning">
|
||||
Pour demander à valider votre équipe, vous devez avoir au moins un encadrant, quatre participants,
|
||||
choisi un problème et soumis une autorisation de droit à l'image, une fiche sanitaire et une autorisation
|
||||
parentale (si besoin) par participant.
|
||||
parentale (si besoin) par participant, ainsi qu'une lettre de motivation à transmettre aux organisateurs.
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
|
@ -23,7 +23,7 @@ if ($payment->getValidationStatus() == ValidationStatus::NOT_READY) { ?>
|
||||
<div class="alert alert-info">
|
||||
<form method="POST" enctype="multipart/form-data">
|
||||
<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" onchange="displayInfos()">
|
||||
<?php
|
||||
for ($method = PaymentMethod::NOT_PAID; $method <= PaymentMethod::SCHOLARSHIP; ++$method) {
|
||||
if ($method == PaymentMethod::CASH || $method == PaymentMethod::BANK_CHECK)
|
||||
@ -32,13 +32,39 @@ if ($payment->getValidationStatus() == ValidationStatus::NOT_READY) { ?>
|
||||
<option value="<?= strtolower(PaymentMethod::getName($method)) ?>"><?= PaymentMethod::getTranslatedName($method) ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<label for="infos"><strong>Informations sur le paiement :</strong></label>
|
||||
<label id="infos_label" for="infos"><strong>Informations sur le paiement :</strong></label>
|
||||
<textarea class="form-control" name="infos" id="infos"></textarea>
|
||||
<label for="scholarship"><strong>Notification de bourse :</strong></label>
|
||||
<label id="scholarship_label" for="scholarship"><strong>Notification de bourse :</strong></label>
|
||||
<input type="file" class="form-control" name="scholarship" id="scholarship" />
|
||||
<input class="btn btn-primary btn-block" type="submit" name="pay" value="Envoyer" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function displayInfos() {
|
||||
console.log("value = " + document.getElementById("method").value);
|
||||
switch (document.getElementById("method").value) {
|
||||
case "scholarship":
|
||||
document.getElementById("scholarship_label").style.display = "block";
|
||||
document.getElementById("scholarship").style.display = "block";
|
||||
document.getElementById("scholarship").require = "true";
|
||||
document.getElementById("infos_label").style.display = "none";
|
||||
document.getElementById("infos").style.display = "none";
|
||||
document.getElementById("infos").require = "false";
|
||||
break;
|
||||
default:
|
||||
document.getElementById("scholarship_label").style.display = "none";
|
||||
document.getElementById("scholarship").style.display = "none";
|
||||
document.getElementById("scholarship").require = "false";
|
||||
document.getElementById("infos_label").style.display = "block";
|
||||
document.getElementById("infos").style.display = "block";
|
||||
document.getElementById("infos").require = "true";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
displayInfos();
|
||||
</script>
|
||||
<?php } else {
|
||||
if ($payment->getValidationStatus() == ValidationStatus::WAITING) { ?>
|
||||
<div class="alert alert-warning">
|
||||
@ -62,6 +88,7 @@ if ($payment->getValidationStatus() == ValidationStatus::NOT_READY) { ?>
|
||||
<strong>Informations sur le paiement :</strong> <?= $payment->getTransactionInfos() ?><br />
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php }
|
||||
|
||||
require_once "footer.php";
|
Reference in New Issue
Block a user