Spaces:
Running
Running
| {% extends "base.html" %} | |
| {% block title %}Nouveau Sujet - {{ super() }}{% endblock %} | |
| {% block content %} | |
| <h2 class="mb-4">Nouveau Sujet</h2> | |
| <div class="mb-4"> | |
| <a href="{{ url_for('admin_subjects') }}" class="btn btn-secondary">Retour aux sujets</a> | |
| </div> | |
| <div class="card"> | |
| <div class="card-body"> | |
| <form method="post" enctype="multipart/form-data"> | |
| <div class="mb-3"> | |
| <label for="name" class="form-label">Nom:</label> | |
| <input type="text" class="form-control" id="name" name="name" required> | |
| </div> | |
| <div class="mb-3"> | |
| <label for="icon" class="form-label">Icône (fichier image):</label> | |
| <input type="file" class="form-control" id="icon" name="icon" accept="image/*"> | |
| </div> | |
| <button type="submit" class="btn btn-primary">Créer</button> | |
| </form> | |
| </div> | |
| </div> | |
| {% endblock %} |