Files
menu-miam/templates/add_recette.html
2026-03-23 20:21:04 +01:00

42 lines
1.7 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ajouter une recette</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<div class="container">
<h1> Ajouter une recette</h1>
<form method="POST" action="{{ url_for('add_recette') }}" class="recipe-form">
<div class="form-group">
<label for="nom">Nom de la recette *</label>
<input type="text" id="nom" name="nom" required>
</div>
<div class="form-group">
<label for="lien">Lien internet (optionnel)</label>
<input type="url" id="lien" name="lien" placeholder="https://exemple.com/ma-recette">
</div>
<div class="form-group">
<label for="ingredients">Ingrédients</label>
<textarea id="ingredients" name="ingredients" rows="6" placeholder="- Ingrédient 1&#10;- Ingrédient 2&#10;- ..."></textarea>
</div>
<div class="form-group">
<label for="instructions">Instructions</label>
<textarea id="instructions" name="instructions" rows="8" placeholder="1. Étape 1&#10;2. Étape 2&#10;3. ..."></textarea>
</div>
<div class="form-actions">
<button type="submit" class="btn">💾 Enregistrer</button>
<a href="{{ url_for('recettes') }}" class="btn btn-secondary">❌ Annuler</a>
</div>
</form>
</div>
</body>
</html>