{% extends 'baseadmin.html.twig' %} {% import "_modules/bsmacros.html.twig" as bs %} {% block title %}{{ parent() }} - Orders{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block content %}
| Created At | Last Updated | Status | Operations | Type | UUID | User |
|---|---|---|---|---|---|---|
| {{ order.createdAt|date("m/d/Y") }} | {{ order.lastUpdatedAt|date("m/d/Y") }} | {% set statusClass = { 'pending': 'bg-warning text-dark', 'partial': 'bg-info text-white', 'closed': 'bg-success text-white', 'cancelled': 'bg-danger text-white', 'failed': 'bg-danger text-white' } %} {{ order.status.name|capitalize }} | {% set operations = order.operations|length %} {% set completedCount = 0 %} {% for operation in order.operations %} {% if operation.complete %} {% set completedCount = completedCount + 1 %} {% endif %} {% endfor %}
{% set progressPercentage = operations ? (completedCount / operations * 100) : 0 %}
|
{{ order.type|capitalize }} | {{ order.uuid }} | {{ order.steamId }} |