<?php
/* Smarty version 5.7.0, created on 2026-02-09 14:49:06
  from 'file:views/inscription.tpl' */

/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
  'version' => '5.7.0',
  'unifunc' => 'content_6989f3e29dbce4_20550543',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'ee86afd5d4dff200944f3436866afa34a71b920e' => 
    array (
      0 => 'views/inscription.tpl',
      1 => 1770634036,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
))) {
function content_6989f3e29dbce4_20550543 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = 'C:\\wamp64\\www\\DWWM_2025\\projet2\\views';
$_smarty_tpl->getInheritance()->init($_smarty_tpl, true);
?>


<?php 
$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_18645663486989f3e29da446_83083224', "content");
$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir);
}
/* {block "content"} */
class Block_18645663486989f3e29da446_83083224 extends \Smarty\Runtime\Block
{
public function callBlock(\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = 'C:\\wamp64\\www\\DWWM_2025\\projet2\\views';
?>

<!-- Page : Inscription -->


<main class="container py-5">

        <!-- Centrage horizontal du formulaire -->
    <div class="row justify-content-center">
        <div class="col-12 col-md-10 col-lg-6">

                            <!-- Carte contenant le formulaire d'inscription -->
            <div class="card shadow-sm border-0 rounded-4 p-4 p-lg-5">

                            <!-- Titre principal de la page -->
                <h1 class="h3 fw-bold mb-1">Inscription</h1>

                            <!-- Texte descriptif -->
                <p class="text-secondary mb-4">
                                Créez votre compte utilisateur.
                </p>

                        <!-- Formulaire d'inscription -->
                <!-- Les données seront traitées côté serveur en PHP via la méthode POST -->
                <form method="POST">

                    <div class="row g-3">

                                    <!-- Champ : prénom de l'utilisateur -->
                        <div class="col-md-6">
                            <label class="form-label" for="user_firstname">
                                                    Prénom *
                            </label>
                            <input
                                                    class="form-control"
                                                    type="text"
                                                    id="user_firstname"
                                                    name="user_firstname"
                                                    required >
                        </div>

                                    <!-- Champ : nom de l'utilisateur -->
                        <div class="col-md-6">
                            <label class="form-label" for="user_name">
                                                    Nom *
                            </label>
                            <input
                                                    class="form-control"
                                                    type="text"
                                                    id="user_name"
                                                    name="user_name"
                                                    required
                            >
                        </div>

                                    <!-- Champ : pseudo  -->
                        <div class="col-12">
                            <label class="form-label" for="user_pseudo">
                                                    Pseudo *
                            </label>
                            <div class="input-group">
                            <span class="input-group-text">@</span>
                            <input
                                                        class="form-control"
                                                        type="text"
                                                        id="user_pseudo"
                                                        name="user_pseudo"
                                                        required
                            >
                        </div>
                    </div>

                                    <!-- Champ : adresse e-mail -->
                    <div class="col-12">
                        <label class="form-label" for="user_mail">
                                                Adresse e-mail *
                        </label>
                        <input
                                                class="form-control"
                                                type="email"
                                                id="user_mail"
                                                name="user_mail"
                                                required
                        >
                    </div>

                                    <!-- Champ : mot de passe -->
                    <div class="col-12">
                        <label class="form-label" for="user_password">
                                                Mot de passe *
                        </label>
                        <input
                                                class="form-control"
                                                type="password"
                                                id="user_password"
                                                name="user_password"
                                                required
                        >
                    </div>

                                    <!-- Champ optionnel : numéro de téléphone -->
                    <div class="col-12">
                        <label class="form-label" for="user_phone">
                                                Téléphone
                        </label>
                        <input
                                                class="form-control"
                                                type="text"
                                                id="user_phone"
                                                name="user_phone"
                        >
                    </div>

                                    <!-- Champ optionnel : profession de l'utilisateur -->
                    <div class="col-12">
                        <label class="form-label" for="user_work">
                                                Profession
                        </label>
                        <input
                                                class="form-control"
                                                type="text"
                                                id="user_work"
                                                name="user_work"
                        >
                    </div>

                                    <!-- Champ optionnel : localisation de l'utilisateur -->
                    <div class="col-12">
                        <label class="form-label" for="user_location">
                                                Localisation
                        </label>
                        <input
                                                class="form-control"
                                                type="text"
                                                id="user_location"
                                                name="user_location"
                        >
                    </div>

                                    <!-- Champ optionnel : phrase d'accroche  -->
                    <div class="col-12">
                        <label class="form-label" for="user_description">
                                                Phrase d'accroche
                        </label>
                        <textarea
                                                class="form-control"
                                                id="user_description"
                                                name="user_description"
                                                rows="3"
                        ></textarea>
                    </div>

                                    <!-- Bouton de soumission du formulaire -->
                    <div class="col-12 d-grid mt-2">
                        <button type="submit" class="btn btn-primary btn-lg rounded-3">
                                                Créer mon compte
                        </button>
                        </div>

                                        <!-- Lien vers la page de connexion -->
                        <div class="col-12 text-center">
                        <small class="text-secondary">
                                                Déjà un compte ?
                        <a href="index.php?ctrl=user&action=login">Se connecter</a>
                        </small>
                    </div>
                </form>

            </div>
                

        </div>

    </div>
</div>
</main>
<?php
}
}
/* {/block "content"} */
}
