 Holger Frey
					
					6 years ago
						Holger Frey
					
					6 years ago
					
				
				 14 changed files with 251 additions and 31 deletions
			
			
		| @ -0,0 +1,55 @@@@ -0,0 +1,55 @@ | ||||
| {% 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">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) }}</dd> | ||||
| 
 | ||||
|         <dt class="col-sm-4">Status</dt> | ||||
|         <dd class="col-sm-8">{{ macros.status_label(context.model.status) }}</dd> | ||||
|     </dl> | ||||
| 
 | ||||
|     <p class="font-weight-bold mt-4 mb-4">Deleting this order is permanent and cannot be undone!</p> | ||||
|     <form action="{{request.resource_url(context, 'delete')}}" method="POST"> | ||||
|         <p class="mt-4"> | ||||
|             <div class="custom-control custom-switch o3-confirmation"> | ||||
|                 <input type="checkbox" class="custom-control-input" id="confirmation" value="confirmed" name="confirmation"> | ||||
|                 <label class="custom-control-label" for="confirmation">I confirm that I want to delete this order.</label> | ||||
|             </div> | ||||
|         </p> | ||||
|         <p class="mt-4"> | ||||
|             <input type="hidden" name="csrf_token" value="{{csrf_token}}"> | ||||
|             <button class="btn btn-outline-danger o3-confirm-button" type="submit" name="delete" disabled="disabled">Delete Order</button> | ||||
|             <button class="btn btn-outline-secondary" type="submit" name="cancel">Cancel</button> | ||||
|         </p> | ||||
|     </form> | ||||
| </div> | ||||
| 
 | ||||
| <div class="col-5"></div> | ||||
| 
 | ||||
| {% endblock content %} | ||||
| 
 | ||||
| 
 | ||||
					Loading…
					
					
				
		Reference in new issue