{% extends "base.html" %}

{% block title %}{{ title }} - FaturaYol{% endblock %}
{% block page_title %}{{ title }}{% endblock %}

{% block content %}
<div class="row justify-content-center">
    <div class="col-md-8">
        <div class="card border-0 shadow-sm">
            <div class="card-body p-4">
                <form method="post">
                    {% csrf_token %}
                    <div class="mb-4">
                        <h5 class="fw-bold mb-3">Firma Bilgileri</h5>
                        {% for field in form %}
                        <div class="mb-3">
                            <label class="form-label fw-medium">{{ field.label }}</label>
                            {{ field }}
                            {% if field.help_text %}
                            <div class="form-text">{{ field.help_text }}</div>
                            {% endif %}
                            {% for error in field.errors %}
                            <div class="text-danger small">{{ error }}</div>
                            {% endfor %}
                        </div>
                        {% endfor %}
                    </div>
                    <div class="d-flex justify-content-between align-items-center mt-4">
                        <a href="{% url 'fatura_arsivi' %}" class="btn btn-light rounded-pill px-4">İptal</a>
                        <button type="submit" class="btn btn-primary rounded-pill px-5">Kaydet</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %}
