a9bfc073453871265711af16b5931b58fc243b65
[cookbook.git] / cookbook / template / recipes.html
1 {% extends "base.html" %}
2
3 {% block page_title %}
4     Index {% if selected_tags %}({{ ', '.join(selected_tags) }}){% endif %}
5 {% endblock %}
6
7 {% block content %}
8     <form action="" method="get" style="float:right;">
9       <select name="tag" size="5" multiple="multiple">
10         {% for tag in cookbook.tags() %}
11         <option value="{{ tag }}">{{ tag }}</option>
12         {% endfor %}
13       </select><br />
14       <input type="submit" value="Show only selected tags" />
15     </form>
16     <ul id="recipe-list">
17     {% for recipe in recipes %}
18         <li><a href="recipe?name={{ recipe.clean_name() }}">
19             {{ recipe.name }}</li>
20     {% endfor %}
21     </ul>
22 {% endblock %}