2019-09-12 14:19:47 +00:00
|
|
|
<?php
|
|
|
|
require_once "header.php";
|
|
|
|
|
2019-09-24 21:18:32 +00:00
|
|
|
if (isset($admin) && !$has_error) { ?>
|
|
|
|
<div class="alert alert-success">
|
|
|
|
Organisateur ajouté avec succès ! Ses identifiants ont été transmis par mail.
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
2019-09-12 14:19:47 +00:00
|
|
|
|
|
|
|
<form method="POST">
|
2019-09-24 21:25:20 +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($admin)) echo $admin->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($admin)) echo $admin->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($admin)) echo $admin->email ?>" required/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group row">
|
|
|
|
<input class="btn btn-primary btn-lg btn-block" name="add_admin" type="submit" value="Ajouter un administrateur" />
|
|
|
|
</div>
|
2019-09-12 14:19:47 +00:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<?php require_once "footer.php" ?>
|