47 lines
1.8 KiB
HTML
47 lines
1.8 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
{% block title %}Delete BOM Entry{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="d-flex justify-content-between align-items-center mb-4">
|
|
<h1 class="h3 mb-0">
|
|
<i class="bi bi-trash me-2"></i>
|
|
Delete BOM Entry
|
|
</h1>
|
|
<a href="{% url 'manufacture:bom_list' %}" class="btn btn-outline-secondary">
|
|
<i class="bi bi-arrow-left me-2"></i>
|
|
Back to BOM List
|
|
</a>
|
|
</div>
|
|
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-6">
|
|
<div class="card border-danger">
|
|
<div class="card-header bg-danger text-white">
|
|
<h5 class="card-title mb-0">
|
|
<i class="bi bi-exclamation-triangle me-2"></i>
|
|
Confirm Deletion
|
|
</h5>
|
|
</div>
|
|
<div class="card-body">
|
|
<p class="lead">Are you sure you want to delete the BOM entry for <strong>"{{ bom.manufactured_product.name }}"</strong> with component <strong>"{{ bom.component.name }}"</strong>?</p>
|
|
<p>This action cannot be undone.</p>
|
|
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
<div class="d-grid gap-2 d-md-flex justify-content-md-end">
|
|
<a href="{% url 'manufacture:bom_list' %}" class="btn btn-secondary me-md-2">
|
|
<i class="bi bi-x-circle me-2"></i>
|
|
Cancel
|
|
</a>
|
|
<button type="submit" class="btn btn-danger">
|
|
<i class="bi bi-trash me-2"></i>
|
|
Delete BOM Entry
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |