Browse Source

multiple selection in order list only for purchasers and admins

php2python
Holger Frey 7 years ago
parent
commit
c17e15ee6d
  1. 16
      ordr2/templates/orders/list.jinja2

16
ordr2/templates/orders/list.jinja2

@ -56,9 +56,11 @@
<table class="table"> <table class="table">
<thead> <thead>
<th class="center"> {% if request.has_permission('edit', context) or request.has_permission('delete', context) %}
<input type="checkbox" value="all" name="mark_all" id="mark_all"> <th class="center">
</th> <input type="checkbox" value="all" name="mark_all" id="mark_all">
</th>
{% endif %}
{{ macros.sortable_table_header('Date Created', 'created') }} {{ macros.sortable_table_header('Date Created', 'created') }}
{{ macros.sortable_table_header('CAS / Description', 'cas') }} {{ macros.sortable_table_header('CAS / Description', 'cas') }}
{{ macros.sortable_table_header('Vendor', 'vendor') }} {{ macros.sortable_table_header('Vendor', 'vendor') }}
@ -76,9 +78,11 @@
<tbody> <tbody>
{% for order in orders %} {% for order in orders %}
<tr> <tr>
<td class="center"> {% if request.has_permission('edit', context) or request.has_permission('delete', context) %}
<input type="checkbox" name="marked" value="{{ order.model.id }}"> <td class="center">
</td> <input type="checkbox" name="marked" value="{{ order.model.id }}">
</td>
{% endif %}
<td class="column-created">{{ order.model.created_date }}</td> <td class="column-created">{{ order.model.created_date }}</td>
<td class="column-cas">{{ order.model.cas_description }}</td> <td class="column-cas">{{ order.model.cas_description }}</td>
<td class="column-vendor">{{ order.model.vendor }}</td> <td class="column-vendor">{{ order.model.vendor }}</td>