{% extends "base.html" %} {% block title %}Orders — Django-Dolt Demo{% endblock %} {% block nav_orders %}class="active"{% endblock %} {% block content %}

All Orders

{% if orders %}
{% for order in orders %} {% endfor %}
Order Customer Status Total Date
{{ order.order_number }} {{ order.customer.first_name }} {{ order.customer.last_name }} {{ order.get_status_display }} ${{ order.total_amount }} {{ order.created_at|date:"M d, Y" }} Edit
{% else %}
No orders yet. Run setup_demo or add via admin.
{% endif %}
Working Set
{% if dolt_status %}
{% for item in dolt_status %}
{{ item.table_name }} {{ item.status }}
{% endfor %}
{% if user.is_authenticated %}
{% csrf_token %}
{% endif %} {% else %}

Nothing to commit.

{% endif %}
Recent Commits
{% if dolt_commits %} {% for commit in dolt_commits %}
{{ commit.commit_hash|truncatechars:11 }} {{ commit.message|truncatechars:40 }} {{ commit.date|date:"M d" }}
{% endfor %} {% else %}

No commits yet.

{% endif %}
{% endblock %}