enorme push
This commit is contained in:
@@ -1,33 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
{% extends "base.twig" %}
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
||||
{# <link rel="stylesheet" href="style/style.css"/> #}
|
||||
{# <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script> #}
|
||||
<title>Ajouter utilisateur</title>
|
||||
</head>
|
||||
{% block title %}Ajouter utilisateur{% endblock %}
|
||||
|
||||
<body>
|
||||
<div class="container text-center bg-light">
|
||||
<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>
|
||||
<input type="number" class="form-control" name="role" id="role">
|
||||
<label for="description">Description</label>
|
||||
<textarea name="description" class="form-control"></textarea>
|
||||
<input type="submit" class="btn btn-success" name="Enregistrer" value="Enregistrer"/>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user