2024-05-23 10:33:41 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="fr">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Inscription</title>
|
2024-05-24 23:36:27 +02:00
|
|
|
<link rel="stylesheet" href="<?php echo base_url('assets/css/inscription'); ?>">
|
2024-05-23 10:33:41 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<h2>Inscription</h2>
|
|
|
|
|
|
|
|
<?php if (isset($error)): ?>
|
|
|
|
<p class="error"><?php echo $error; ?></p>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php echo form_open('utilisateur/inscription'); ?>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2024-05-24 23:36:27 +02:00
|
|
|
<label for="prenom">Prénom :</label>
|
|
|
|
<input type="text" name="prenom" id="prenom" value="<?php echo set_value('prenom'); ?>" required>
|
|
|
|
<?php echo form_error('prenom'); ?>
|
2024-05-23 10:54:24 +02:00
|
|
|
</div>
|
|
|
|
|
2024-05-23 10:33:41 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="nom">Nom :</label>
|
|
|
|
<input type="text" name="nom" id="nom" value="<?php echo set_value('nom'); ?>" required>
|
|
|
|
<?php echo form_error('nom'); ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2024-05-24 23:36:27 +02:00
|
|
|
<label for="email">E-mail :</label>
|
|
|
|
<input type="email" name="email" id="email" value="<?php echo set_value('email'); ?>" required>
|
|
|
|
<?php echo form_error('email'); ?>
|
2024-05-23 10:33:41 +02:00
|
|
|
</div>
|
2024-05-24 23:36:27 +02:00
|
|
|
|
2024-05-23 10:33:41 +02:00
|
|
|
<div class="form-group">
|
2024-05-24 23:36:27 +02:00
|
|
|
<label for="password">Mot de passe :</label>
|
|
|
|
<div class="password-wrapper">
|
|
|
|
<input type="password" name="password" id="password" required>
|
|
|
|
<button type="button" onclick="togglePasswordVisibility('password')">Afficher</button>
|
|
|
|
</div>
|
|
|
|
<?php echo form_error('password'); ?>
|
2024-05-23 10:33:41 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<button type="submit" class="btn-submit">Inscription</button>
|
|
|
|
|
|
|
|
<?php echo form_close(); ?>
|
2024-05-27 19:38:10 +02:00
|
|
|
<p>Vous avez déjà un compte ? <a href="<?php echo base_url('index.php/utilisateur/connexion'); ?>">Connectez-vous ici</a>.</p>
|
2024-05-23 10:33:41 +02:00
|
|
|
</div>
|
2024-05-24 23:36:27 +02:00
|
|
|
|
|
|
|
<script>
|
|
|
|
function togglePasswordVisibility(id) {
|
|
|
|
var passwordField = document.getElementById(id);
|
|
|
|
var passwordFieldType = passwordField.getAttribute('type');
|
|
|
|
if (passwordFieldType === 'password') {
|
|
|
|
passwordField.setAttribute('type', 'text');
|
|
|
|
} else {
|
|
|
|
passwordField.setAttribute('type', 'password');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
2024-05-23 10:33:41 +02:00
|
|
|
</body>
|
|
|
|
</html>
|