mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-26 00:27:29 +02:00
Nombreux changements mineurs
This commit is contained in:
@ -45,9 +45,12 @@ if (!$has_error && (isset($my_account) || isset($new_password))) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label for="receive_animath_mails">J'accepte de recevoir des mails de la part d'Animath (<em>facultatif</em>) :</label>
|
||||
<input type="checkbox" id="receive_animath_mails" name="receive_animath_mails"
|
||||
<?= $user->doReceiveAnimathMails() ? "checked" : "" ?> />
|
||||
<?php if ($user->getRole() == Role::PARTICIPANT || $user->getRole() == Role::ENCADRANT) { ?>
|
||||
<label for="receive_animath_mails">J'accepte d'être recontacté par l'association <em>Animath</em> au sujet
|
||||
d'autres activités (<em>facultatif</em>) :</label>
|
||||
<input type="checkbox" id="receive_animath_mails" name="receive_animath_mails"
|
||||
<?= $user->doReceiveAnimathMails() ? "checked" : "" ?> />
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($user->getRole() == Role::PARTICIPANT) { ?>
|
||||
<div class="form-row">
|
||||
@ -56,7 +59,19 @@ if (!$has_error && (isset($my_account) || isset($new_password))) {
|
||||
<input class="form-control" type="text" id="school" name="school"
|
||||
value="<?= $user->getSchool() ?>"/>
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label id="city_label" for="city">Ville de l'établissement :</label>
|
||||
<input class="form-control" type="text" id="city" name="city"
|
||||
value="<?php if (isset($user)) echo $user->getCity() ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-6">
|
||||
<label id="country_label" for="country">Pays :</label>
|
||||
<input class="form-control" type="text" id="country" name="country"
|
||||
value="<?php if (isset($user)) echo $user->getCountry(); else echo "France" ?>"/>
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label id="class_label" for="class">Classe :</label>
|
||||
<select id="class" name="class" class="custom-select">
|
||||
@ -73,7 +88,7 @@ if (!$has_error && (isset($my_account) || isset($new_password))) {
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="form-group row">
|
||||
<label id="description_label" for="description">Description :</label>
|
||||
<label id="description_label" for="description">Activité professionnelle :</label>
|
||||
<textarea class="form-control" id="description"
|
||||
name="description"><?= $user->getDescription() ?></textarea>
|
||||
</div>
|
||||
@ -113,7 +128,7 @@ if (!$has_error && (isset($my_account) || isset($new_password))) {
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<?php if ($_SESSION["team"]->getValidationStatus() == ValidationStatus::NOT_READY) { ?>
|
||||
<?php if (isset($_SESSION["team"]) && $_SESSION["team"]->getValidationStatus() == ValidationStatus::NOT_READY) { ?>
|
||||
<hr/>
|
||||
<div class="mt-4 mb-4">
|
||||
<h1 class="display-5">Autorisation de droit à l'image</h1>
|
||||
|
Reference in New Issue
Block a user