Mariam-metho / templates /admin_edit_category.html
Docfile's picture
Upload 16 files
e03dbe7 verified
raw
history blame
1.07 kB
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Éditer la Catégorie</title>
<style>
body { font-family: Arial, sans-serif; margin: 20px; }
form { max-width: 800px; }
label { display: block; margin-top: 10px; }
input, select, button { width: 100%; padding: 10px; margin-top: 5px; }
</style>
</head>
<body>
<h1>Éditer la Catégorie</h1>
<a href="{{ url_for('admin_categories') }}">Retour aux catégories</a>
<form method="post">
<label for="name">Nom:</label>
<input type="text" id="name" name="name" value="{{ category.name }}" required>
<label for="subject_id">Sujet:</label>
<select id="subject_id" name="subject_id" required>
{% for subject in subjects %}
<option value="{{ subject.id }}" {% if subject.id == category.subject_id %}selected{% endif %}>{{ subject.name }}</option>
{% endfor %}
</select>
<button type="submit">Sauvegarder</button>
</form>
</body>
</html>