35 lines
1.0 KiB
Twig
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 %} |