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.
87 lines
4.0 KiB
87 lines
4.0 KiB
{% extends "ordr3:templates/layout_full.jinja2" %} |
|
|
|
{% block subtitle %} Manage Users {% endblock subtitle %} |
|
|
|
|
|
{% block sidebar %} |
|
|
|
<nav class="nav nav-pills flex-column"> |
|
<div class="nav-link disabled text-small" tabindex="-1" aria-disabled="true">All Orders</div> |
|
<a class="nav-link {% if query_defaults['status'] == 'all' and not query_defaults['user'] %}active{% endif %}" href="{{ request.resource_url(context, query=query_defaults(status=None, user=None, search=None)) }}">All</a> |
|
{% for status in stati %} |
|
<a class="nav-link {% if query_defaults['status'] == status.name.lower() and not query_defaults['user'] %}active{% endif %}" href="{{ request.resource_url(context, query=query_defaults(status=status.name.lower(), user=None, search=None)) }}">{{status.name.lower()}}</a> |
|
{% endfor %} |
|
</nav> |
|
|
|
<nav class="nav nav-pills flex-column mt-3"> |
|
<div class="nav-link disabled text-small" tabindex="-1" aria-disabled="true">My Orders</div> |
|
<a class="nav-link {% if query_defaults['status'] == 'all' and query_defaults['user'] == request.user.username %}active{% endif %}" href="{{ request.resource_url(context, query=query_defaults(status=None, user=request.user.username, search=None)) }}">All</a> |
|
{% for status in stati %} |
|
<a class="nav-link {% if query_defaults['status'] == status.name.lower() and query_defaults['user'] == request.user.username %}active{% endif %}" href="{{ request.resource_url(context, query=query_defaults(status=status.name.lower(), user=request.user.username, search=None)) }}">{{status.name.lower()}}</a> |
|
{% endfor %} |
|
</nav> |
|
|
|
{% if request.has_permission("edit-multiple", context) %} |
|
<nav class="nav nav-pills flex-column mt-3"> |
|
<div class="nav-link disabled text-small" tabindex="-1" aria-disabled="true">Specials</div> |
|
<a class="nav-link {% if query_defaults['user'] == '-purchaser-' %}active{% endif %}" href="{{ request.resource_url(context, query=query_defaults(status=None, user='-purchaser-', search=None)) }}">Edited by me</a> |
|
</nav> |
|
|
|
{% endif %} |
|
|
|
{% endblock sidebar %} |
|
|
|
|
|
{% block content %} |
|
|
|
<div class="col-10"> |
|
<form id="o3-multiple-form" method="POST"> |
|
<table class="table table-hover o3-data-table o3-data-hide-details"> |
|
<thead> |
|
<tr> |
|
{% if request.has_permission("edit-multiple", context) %} |
|
<th scope="col"><input type="checkbox" id="o3-selectall"></th> |
|
{% endif %} |
|
<th scope="col"> |
|
Date |
|
<div class="text-secondary small">Time</div> |
|
</th> |
|
<th scope="col"> |
|
CAS / Description |
|
<div class="text-secondary small">Catalog Nr.</div> |
|
</th> |
|
<th scope="col"> |
|
Vendor |
|
<div class="text-secondary small">Account</div> |
|
</th> |
|
<th scope="col" class="o3-dont-wrap text-right"> |
|
Total Price |
|
<div class="text-secondary small">Unit Price</div> |
|
</th> |
|
<th scope="col"> |
|
Status |
|
<div class="text-secondary small"> </div> |
|
</th> |
|
<th scope="col"> |
|
Ordered by |
|
<div class="text-secondary small"> </div> |
|
</th> |
|
<th scope="col"> |
|
Actions |
|
<div class="text-secondary small"> </div> |
|
</th> |
|
</tr> |
|
</thead> |
|
<tbody class="infinite-container"> |
|
{% include 'ordr3:templates/orders/list_content.jinja2' %} |
|
</tbody> |
|
</table> |
|
</form> |
|
{% if not orders %} |
|
<p class="bg-light text-center pt-2 pb-2">No data available</p> |
|
{% endif %} |
|
</div> |
|
|
|
<input type="checkbox" class="form-control"> |
|
|
|
{% endblock content %}
|
|
|