{% extends "admin/admin_base.html" %} {% load i18n %} {% block admin_title %}{% trans "Recipes" %}{% endblock %} {% block content %}
| {% trans "ID" %} | {% trans "Image" %} | {% trans "Title" %} {% if current_sort == 'title' %}arrow_upward{% elif current_sort == '-title' %}arrow_downward{% endif %} | {% trans "Price" %} {% if current_sort == 'price' %}arrow_upward{% elif current_sort == '-price' %}arrow_downward{% endif %} | {% trans "Orders" %} {% if current_sort == 'orders' %}arrow_upward{% elif current_sort == '-orders' %}arrow_downward{% endif %} | {% trans "Rating" %} | {% trans "Approved" %} | {% trans "Tags" %} | {% trans "Uploader" %} {% if current_sort == 'uploader' %}arrow_upward{% elif current_sort == '-uploader' %}arrow_downward{% endif %} | {% trans "Created" %} {% if current_sort == 'created_at' %}arrow_upward{% elif current_sort == '-created_at' %}arrow_downward{% endif %} | {% trans "Actions" %} |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ recipe.id }} |
{% if recipe.image %}
restaurant
{% endif %}
|
{% if recipe.is_highlighted %} star {% endif %} {{ recipe.title }} | {% if recipe.price %} {{ recipe.price }} € {% else %} - {% endif %} | {{ recipe.daily_orders_count }} / {{ recipe.max_daily_orders|default:"∞" }} |
star
{{ recipe.avg_rating|default:0|floatformat:1 }}
|
{% if recipe.is_community_made %} check_circle {% else %} check {% trans "Approve" %} {% endif %} | {% for tag in recipe.tags.all %} {{ tag.name }} {% endfor %} | {{ recipe.uploaded_by.username|default:"-" }} | {{ recipe.created_at|date:"SHORT_DATE_FORMAT" }} | delete |