You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.4 KiB
HTML

2 years ago
{% extends 'base.html' %}
{% block content %}
<form class="filter" action="{% url 'mensa:mensa_by_id' mensa_id=id %}" method="post">
{% csrf_token %}
<label>
Vegan
<input type="checkbox" name="vegan" value="on" {% if vn == True %}checked{% endif %}>
</label> |
<label>
Vegetarisch
<input type="checkbox" name="vegetarian" value="on" {% if ve == True %}checked{% endif %}>
</label>
<br>
<label>
Student
<input type="radio" name="price-for" value="s" {% if price_for == 's' %}checked{% endif %}>
</label>
<br>
<label>
Mitarbeiter
<input type="radio" name="price-for" value="e" {% if price_for == 'e' %}checked{% endif %}>
</label>
<br>
<label>
Gast
<input type="radio" name="price-for" value="g" {% if price_for == 'g' %}checked{% endif %}>
</label>
<br>
<button type="submit" name="button">Speichern</button>
</form>
<h2>Mensaplan</h2>
<div class="plan">
{% for day in mensa_plan %}
<div class="cards">
<h2>{{ day.day }}</h2>
{% for item in day.menus %}
<div class="card">
<b>{{ item.name }}</b>
<p>{{ item.price }}</p>
<p>
{% for allergy in item.allergens %}
{{ allergy }}
{% endfor %}
</p>
<p>
{% for type in item.types %}
{{ type }}
{% endfor %}
</p>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
{% endblock content %}