46 lines
1.9 KiB
HTML
46 lines
1.9 KiB
HTML
{% extends "module_base.html" %}
|
|
{% load static %}
|
|
|
|
{% block title %}Delete Bill of Material{% 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 Bill of Material
|
|
</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<p>Are you sure you want to delete the following Bill of Material?</p>
|
|
|
|
<div class="alert alert-warning">
|
|
<strong>BOM Code:</strong> {{ bom.bom_code }}<br>
|
|
<strong>Product:</strong> {{ bom.product.name }}<br>
|
|
<strong>Version:</strong> {{ bom.version }}
|
|
</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 manufacturing orders may be affected.
|
|
</div>
|
|
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
<div class="d-flex justify-content-end">
|
|
<a href="{% url 'manufacturing:bom_detail' bom.id %}" 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 BOM
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |