You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
2.5 KiB
55 lines
2.5 KiB
{% extends "ordr3:templates/layout_full.jinja2" %} |
|
|
|
{% block subtitle %} View Order {{context.model.cas_description}} {% endblock subtitle %} |
|
|
|
{% block content %} |
|
|
|
<div class="col-5"> |
|
<h4 class="mb-2 text-muted mb-4 text-truncate">Details for Order <span class="text-dark">{{ context.model.cas_description }}</span></h4> |
|
<dl class="row mt-4"> |
|
<dt class="col-sm-4">Cas / Description</dt> |
|
<dd class="col-sm-8">{{ context.model.cas_description }}</dd> |
|
<dt class="col-sm-4">Category</dt> |
|
<dd class="col-sm-8">{{ context.model.category.name|title }}</dd> |
|
<dt class="col-sm-4">Vendor</dt> |
|
<dd class="col-sm-8">{{ context.model.vendor }}</dd> |
|
<dt class="col-sm-4">Catalog Nr.</dt> |
|
<dd class="col-sm-8">{{ context.model.catalog_nr }}</dd> |
|
<dt class="col-sm-4">Package Size</dt> |
|
<dd class="col-sm-8">{{ context.model.package_size }}</dd> |
|
<dt class="col-sm-4">Amount * Price</dt> |
|
<dd class="col-sm-8">{{ context.model.amount }} * {{ "%.2f"|format(context.model.unit_price) }} {{ context.model.currency }}</dd> |
|
<dt class="col-sm-4">Price, total</dt> |
|
<dd class="col-sm-8">{{ "%.2f"|format(context.model.total_price) }} {{ context.model.currency }}</dd> |
|
<dt class="col-sm-4">Ordered By</dt> |
|
<dd class="col-sm-8">{{ context.model.created_by }}</dd> |
|
<dt class="col-sm-4">Ordered On</dt> |
|
<dd class="col-sm-8">{{ context.model.created_on.strftime("%Y-%m-%d %H:%I") }}</dd> |
|
<dt class="col-sm-4">Account</dt> |
|
<dd class="col-sm-8">{{ context.model.account|default("-", True) }}</dd> |
|
<dt class="col-sm-4">Comment</dt> |
|
<dd class="col-sm-8">{{ context.model.comment|default("-", True)|view_comment("")|nl2br|safe }}</dd> |
|
<dt class="col-sm-4">Current Status</dt> |
|
<dd class="col-sm-8">{{ macros.status_label(context.model.status) }}</dd> |
|
|
|
</dl> |
|
<p class="mt-4 mb-4"> </p> |
|
<p> |
|
{% if request.has_permission("reorder", context) %} |
|
<a href="{{ context|resource_url('reorder') }}" class="btn btn-outline-primary">Reorder Item</a> |
|
{% endif %} |
|
{% if request.has_permission("delete", context) %} |
|
<a href="{{ context|resource_url('delete') }}" class="btn btn-outline-danger">Delete Order</a> |
|
{% endif %} |
|
<a href="{{ context.__parent__|resource_url() }}" class="btn btn-outline-secondary o3-back">Go Back</a> |
|
</p> |
|
</div> |
|
|
|
<div class="col-5"> |
|
<div class="h4"> </div> |
|
{{ macros.change_log(context.model) }} |
|
</div> |
|
|
|
{% endblock content %} |
|
|
|
|
|
|