1 {% extends "base.html" %}
5 <a href="{{ recipe.url }}">{{ recipe.name }}</a>
12 <p id="recipe-details">
13 {% if recipe.yield_ %}
14 <span class="detail-field-header">Yield:</span>
15 <span class="detail-field-contents">{{ recipe.yield_ }}</span><br/>
17 {% if recipe.author %}
18 <span class="detail-field-header">Author:</span>
19 <span class="detail-field-contents">{{ recipe.author }}</span><br/>
21 {% if recipe.source %}
22 <span class="detail-field-header">Source:</span>
23 <span class="detail-field-contents">{{ recipe.source }}</span><br/>
26 <span class="detail-field-header">Tags:</span>
27 <span class="detail-field-contents">{{ ', '.join(tag_links) }}
31 <form action="add_tag" method="get">
32 <input type="hidden" name="name" value="{{ recipe.name }}"/>
34 <option value="">textbox</option>
35 {% for tag in cookbook.tags() %}
36 <option value="{{ tag }}">{{ tag }}</option>
39 <input type="text" name="tag" value=""/>
40 <input type="submit" value="Add tag"/>
43 <form action="remove_tag" method="get">
44 <input type="hidden" name="name" value="{{ recipe.name }}"/>
46 {% for tag in recipe.tags %}
47 <option value="{{ tag }}">{{ tag }}</option>
50 <input type="submit" value="Remove tag"/>
54 {% if recipe.ingredient_blocks %}
55 <div id="recipe-ingredient-blocks">
56 {% for ingredient_block in recipe.ingredient_blocks %}
57 <h2>{{ ingredient_block.heading() }}</h2>
59 {% for ingredient in ingredient_block %}
60 <tr><td>{{ ingredient.__unicode__() }}</td></tr>
67 {% if recipe.directions %}
68 <div id="recipe-directions">
70 {% for paragraph in recipe.directions.wrapped_paragraphs() %}
71 <p>{{ paragraph }}</p>
77 <li><a href="edit?name={{ recipe.clean_name(ascii=True) }}">
79 <li><a href="edit?action=remove&name={{ recipe.clean_name(ascii=True) }}">
80 remove receipe</a></li>