42 lines
1.7 KiB
HTML
42 lines
1.7 KiB
HTML
<!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 - Ingrédient 2 - ..."></textarea>
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label for="instructions">Instructions</label>
|
||
<textarea id="instructions" name="instructions" rows="8" placeholder="1. Étape 1 2. Étape 2 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>
|