This repository has been archived on 2025-02-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
tp_twigg/tpCrudTwig/templates/users/add.twig
2024-10-25 16:49:52 +02:00

35 lines
1.0 KiB
Twig

{% extends "base.twig" %}
{% block title %}Ajouter utilisateur{% endblock %}
{% block content %}
<h1>Ajouter un utilisateur</h1>
<form class="form-group" role="search" method="post">
<label for="login">Utilisateur</label>
<input type="text" class="form-control" name="login" id="login">
<label for="password">Mot de passe</label>
<input type="password" class="form-control" name="password" id="password" />
<label for="firstname">Prénom</label>
<input type="text" class="form-control" name="firstname" id="firstname">
<label for="lastname">Nom de famille</label>
<input type="text" class="form-control" name="lastname" id="lastname" />
<label for="role">Role</label>
<select class="form-control" name="role" id="role-select">
{% for role in roles %}
<option value="{{ role.id }}">{{ role.name }}</option>
{% endfor %}
</select>
<label for="description">Description</label>
<textarea name="description" class="form-control"></textarea>
<input type="submit" class="btn btn-success" name="Ajouter" />
</form>
{% endblock %}