47 lines
2.0 KiB
HTML
47 lines
2.0 KiB
HTML
{% extends "module_base.html" %}
|
|
{% load static %}
|
|
|
|
{% block title %}Delete Manufacturing Order{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container-fluid">
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-6">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h4 class="card-title mb-0">
|
|
<i class="fas fa-exclamation-triangle text-danger me-2"></i>Delete Manufacturing Order
|
|
</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<p>Are you sure you want to delete the following Manufacturing Order?</p>
|
|
|
|
<div class="alert alert-warning">
|
|
<strong>MO Number:</strong> {{ mo.mo_number }}<br>
|
|
<strong>BOM:</strong> {{ mo.bom.bom_code }} - {{ mo.bom.product.name }}<br>
|
|
<strong>Quantity:</strong> {{ mo.quantity_to_produce|floatformat:2 }}<br>
|
|
<strong>Status:</strong> {{ mo.get_status_display }}
|
|
</div>
|
|
|
|
<div class="alert alert-danger">
|
|
<i class="fas fa-exclamation-triangle me-2"></i>
|
|
<strong>Warning:</strong> This action cannot be undone. All associated data will be permanently deleted.
|
|
</div>
|
|
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
<div class="d-flex justify-content-end">
|
|
<a href="{% url 'manufacturing:mo_detail' mo.mo_number %}" class="btn btn-secondary me-2">
|
|
<i class="fas fa-times me-2"></i>Cancel
|
|
</a>
|
|
<button type="submit" class="btn btn-danger">
|
|
<i class="fas fa-trash me-2"></i>Yes, Delete MO
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |