{% load i18n %}
<div class="modal-header">
    <h5 class="modal-title">{% trans "Edit Gland Label" %}</h5>
    <button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<form hx-post="{{ post_url }}" hx-swap="none">
    {% csrf_token %}
    <div class="modal-body">
        <input type="hidden" name="fiber_cable_id" value="{{ fiber_cable.pk }}">
        <div class="mb-3">
            <label class="form-label">{% trans "Fiber Cable" %}</label>
            <input type="text" class="form-control" value="{{ fiber_cable }}" disabled>
        </div>
        <div class="mb-3">
            <label for="id_entrance_label" class="form-label">{% trans "Entrance Label" %}</label>
            <input type="text" class="form-control" id="id_entrance_label"
                   name="entrance_label" value="{{ current_label }}" maxlength="100"
                   placeholder="e.g. Gland A">
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">{% trans "Cancel" %}</button>
        <button type="submit" class="btn btn-primary">{% trans "Save" %}</button>
    </div>
</form>
