mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2025-06-07 13:05:30 +02:00
31 lines
1.3 KiB
PHTML
31 lines
1.3 KiB
PHTML
<form action="" method="post" autocomplete="off">
|
|
<h2>Ajouter un utilisateur</h2>
|
|
<dl>
|
|
<dt><label for="username">Nom d'utilisateur</label></dt>
|
|
<dd>
|
|
<input type="text" id="username" name="username" value="<?php
|
|
echo htmlspecialchars($user->getUsername());
|
|
?>" />
|
|
<?php if (isset($errors["username"])) : ?>
|
|
<p class="error"><?php echo $errors["username"]; ?></p>
|
|
<?php endif; ?>
|
|
</dd>
|
|
<dt><label for="password">Mot de passe</label></dt>
|
|
<dd>
|
|
<input type="password" id="password" name="password" />
|
|
<?php if (isset($errors["password"])) : ?>
|
|
<p class="error"><?php echo $errors["password"]; ?></p>
|
|
<?php endif; ?>
|
|
</dd>
|
|
<dt><label for="confirmPassword">Confirmez le mot de passe</label></dt>
|
|
<dd>
|
|
<input type="password" id="confirmPassword" name="confirmPassword" />
|
|
<?php if (isset($errors["confirmPassword"])) : ?>
|
|
<p class="error"><?php echo $errors["confirmPassword"]; ?></p>
|
|
<?php endif; ?>
|
|
</dd>
|
|
</dl>
|
|
<p><input type="submit" value="Enregistrer" />
|
|
| <a href="?mod=admin&a=users">annuler</a></p>
|
|
</form>
|