{% extends "admin/admin_base.html" %} {% load i18n %} {% block admin_title %}{% trans "Recipes" %}{% endblock %} {% block content %}
{% trans "Recipe Management" %}
add {% trans "Add Recipe" %}
{% for recipe in recipes %} {% endfor %}
{% 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" %} orders {% if current_sort == 'orders' %}arrow_upward{% elif current_sort == '-orders' %}arrow_downward{% endif %} {% trans "Rating" %} star {% 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" %}
{% if recipe.image %} {% else %}
image
{% 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 }}
{% for tag in recipe.tags.all %} {{ tag.name }} {% endfor %} {{ recipe.uploaded_by.username|default:"-" }} {{ recipe.created_at|date:"SHORT_DATE_FORMAT" }} delete
{% endblock %}