2019-09-06 11:48:50 +00:00
|
|
|
<?php
|
2019-09-07 11:42:36 +00:00
|
|
|
require_once "header.php";
|
2019-12-19 12:02:01 +00:00
|
|
|
?>
|
2019-09-07 11:42:36 +00:00
|
|
|
|
2019-12-19 12:02:01 +00:00
|
|
|
<div class="mt-4 mb-4">
|
|
|
|
<h1 class="display-4">Ajouter un organisateur</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php if (isset($orga) && !$has_error) { ?>
|
|
|
|
<div class="alert alert-success">
|
|
|
|
Organisateur ajouté avec succès ! Ses identifiants ont été transmis par mail.
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
2019-09-06 11:48:50 +00:00
|
|
|
|
|
|
|
<form method="POST">
|
2019-12-19 12:02:01 +00:00
|
|
|
<div class="form-row">
|
|
|
|
<div class="form-group col-md-6">
|
|
|
|
<label for="surname">Nom :</label>
|
|
|
|
<input class="form-control" type="text" id="surname" name="surname"
|
|
|
|
value="<?php if (isset($orga)) echo $orga->surname ?>" required/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group col-md-6">
|
|
|
|
<label for="first_name">Prénom :</label>
|
|
|
|
<input class="form-control" type="text" id="first_name" name="first_name"
|
|
|
|
value="<?php if (isset($orga)) echo $orga->first_name ?>" required/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-row">
|
|
|
|
<div class="form-group col-md-12">
|
|
|
|
<label for="email">E-mail :</label>
|
|
|
|
<input class="form-control" type="email" id="email" name="email"
|
|
|
|
value="<?php if (isset($orga)) echo $orga->email ?>" required/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-12-26 21:30:42 +00:00
|
|
|
<div class="form-row">
|
|
|
|
<div class="form-group col-md-12">
|
|
|
|
<label for="admin">Compte administrateur :</label>
|
|
|
|
<input type="checkbox" id="admin" name="admin"
|
|
|
|
value="<?php if (isset($orga)) echo $orga->admin ?>"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-12-19 12:02:01 +00:00
|
|
|
<div class="form-group row">
|
2020-01-18 16:39:21 +00:00
|
|
|
<input class="btn btn-primary btn-lg btn-block" name="add_orga" type="submit" value="Ajouter un organisateur" />
|
2019-12-19 12:02:01 +00:00
|
|
|
</div>
|
2019-09-06 23:33:05 +00:00
|
|
|
</form>
|
2019-09-07 11:42:36 +00:00
|
|
|
|
|
|
|
<?php require_once "footer.php" ?>
|