{% extends 'base.html' %}

{% block title %}
  Issue Book - {{ project_name }}
{% endblock title %}

{% block content %}
<div class="container mt-5">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">
                    <h3 class="card-title">Issue Book: {{ book.title }}</h3>
                </div>
                <div class="card-body">
                    <form method="post">
                        {% csrf_token %}
                        <div class="mb-3">
                            <label for="id_borrower_name" class="form-label">Borrower Name</label>
                            {{ form.borrower_name }}
                        </div>
                        <button type="submit" class="btn btn-primary">Issue Book</button>
                        <a href="{% url 'index' %}" class="btn btn-secondary">Cancel</a>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock content %}
