1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-07-27 22:25:25 +02:00
Files
.idea
assets
server_files
classes
controllers
services
views
admins.php
ajouter_admin.php
ajouter_equipe.php
calendrier.php
commenter_echange.php
connexion.php
envoyer_video.php
equipe.php
exporter_donnees.php
footer.php
header.php
index.html
index.php
informations.php
inscription.php
ma_participation.php
mon_compte.php
mon_equipe.php
poser_questions.php
probleme.php
profiles.php
rejoindre_equipe.php
repondre_questions.php
suivi_correspondances.php
403.php
404.php
config.php
model.php
utils.php
setup
.htaccess
Dockerfile
dispatcher.php
index.html
plateforme-corres2math/server_files/views/ajouter_admin.php
2019-11-27 12:15:21 +01:00

44 lines
1.4 KiB
PHP

<?php
require_once "header.php";
?>
<div class="mt-4 mb-4">
<h1 class="display-4">Ajouter un administrateur</h1>
</div>
<?php if (isset($admin) && !$has_error) { ?>
<div class="alert alert-success">
Administrateur ajouté avec succès ! Ses identifiants ont été transmis par mail.
</div>
<?php } ?>
<form method="POST">
<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>
</form>
<?php require_once "footer.php" ?>