28 lines
885 B
Twig
28 lines
885 B
Twig
{% extends "base.twig" %}
|
|
|
|
{% block title %}Modification de l'utilisateur{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1>Modifier un utilisateur</h1>
|
|
<form method="post">
|
|
<label for="login">Login</label>
|
|
<input type="text" class="form-control" name="login" id="login" value="{{ user.login }}">
|
|
<label for="description">Description</label>
|
|
<input type="text" class="form-control" name="description" id="description" value="{{ user.description }}">
|
|
<label for="role">Role</label>
|
|
<select class="form-control" name="role" id="role-select">
|
|
|
|
{% for role in roles %}
|
|
<option value="{{ role.id }}" {% if role.id==user.role.id %} selected="selected" {% endif %}>{{ role.name }}
|
|
</option>
|
|
{% endfor %}
|
|
|
|
</select>
|
|
<input type="submit" class="btn btn-success m-2" name="Enregistrer" value="Enregistrer" />
|
|
<input type="hidden" name="id" value="{{ user.id }}">
|
|
</form>
|
|
|
|
{% endblock %} |