
7 changed files with 261 additions and 22 deletions
@ -0,0 +1,46 @@
@@ -0,0 +1,46 @@
|
||||
{% extends "ordr3:templates/layout_full.jinja2" %} |
||||
|
||||
{% block subtitle %} Place a New Order {% endblock subtitle %} |
||||
|
||||
{% block content %} |
||||
|
||||
<div class="col-5 o3-add-new-order"> |
||||
<h4 class="mb-2 mb-4 text-truncate">Place a New Order</h4> |
||||
{{form.render()|safe}} |
||||
</div> |
||||
|
||||
<div class="col-5 o3-consumables"> |
||||
<h4 class="mb-2 text-muted mb-4 text-truncate">Consumables</h4> |
||||
<ul class="nav"> |
||||
<li class="nav-item"> |
||||
<a class="nav-link active o3-consumable-category-filter text-secondary" href="#" data-filter="all">all</a> |
||||
</li> |
||||
{% for category in categories %} |
||||
<li class="nav-item"> |
||||
<a class="nav-link o3-consumable-category-filter text-secondary" href="#" data-filter="{{ category.name }}">{{ category.name|title }}</a> |
||||
</li> |
||||
{% endfor %} |
||||
</ul> |
||||
|
||||
<table class="table table-hover "> |
||||
<!-- |
||||
<thead> |
||||
<tr> |
||||
<th scope="col">CAS / Description</th> |
||||
<th scope="col" class="text-right">Size</th> |
||||
</tr> |
||||
</thead> |
||||
--> |
||||
<tbody > |
||||
{% for con in consumables %} |
||||
<tr title="{{ con.cas_description }}" data-category="{{ con.category.name }}" data-catalog="{{ con.catalog_nr }}" data-vendor="{{ con.vendor }}" data-size="{{ con.package_size }}" data-price="{{ '%.2f'|format(con.unit_price) }}"> |
||||
<td class="o3-consumable-cas"><span class="text-truncate">{{ con.cas_description }}</span></td> |
||||
<td class="text-nowrap text-right">{{ con.package_size }}</td> |
||||
{% endfor %} |
||||
</tbody> |
||||
</table> |
||||
</div> |
||||
|
||||
{% endblock content %} |
||||
|
||||
|
Loading…
Reference in new issue