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.

39 lines
1.0 KiB
HTML

2 years ago
{% extends 'base.html' %}
{% block content %}
<h1>{{meal.name}}</h1>
<p>{{meal.art}}</p>
<p>Preis für Studenten: {{meal.price_student}}</p>
<p>Preis für Mitarbeiter: {{meal.price_employee}}</p>
<p>Preis für Gäste: {{meal.price_guest}}</p>
<p>Types: {{meal.types}}</p>
<p>Allergene: {{meal.allergens}}</p>
<p>{{meal.likes}}</p>
<p>{{meal.dislikes}}</p>
<form class="" action="{% url 'mensa:meal' meal.pk %}" method="post">
{% csrf_token %}
{{ form }}
<button type="submit" name="button" value="comment">Kommentar Speichern</button>
</form>
<form class="" action="{% url 'mensa:meal' meal.pk %}" method="post">
{% csrf_token %}
<button type="submit" name="button" value="like">Like</button>
</form>
<form class="" action="{% url 'mensa:meal' meal.pk %}" method="post">
{% csrf_token %}
<button type="submit" name="button" value="dislike">Dislike</button>
</form>
<div class="comments">
{% for comment in comments %}
<p>{{comment.username}}</p>
<p>{{comment.comment}}</p>
{% endfor %}
</div>
{% endblock content %}