{% extends 'base.html' %}
{% load static %}

{% block title %}Add Project - webFirma{% endblock %}

{% block content %}
<div class="container mt-5">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card shadow-sm">
                <div class="card-header bg-primary text-white">
                    <h4 class="mb-0">Create a New Project</h4>
                </div>
                <div class="card-body">
                    <form method="post">
                        {% csrf_token %}
                        {% for field in form %}
                        <div class="form-floating mb-3">
                            {{ field }}
                            <label for="{{ field.id_for_label }}">{{ field.label }}</label>
                        </div>
                        {% endfor %}
                        <div class="d-flex justify-content-end">
                            <a href="{% url 'projects' %}" class="btn btn-secondary me-2">Cancel</a>
                            <button type="submit" class="btn btn-primary">Save Project</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<style>
    .form-floating .form-control, .form-floating .form-select {
        height: calc(3.5rem + 2px);
        padding: 1rem;
    }
    .form-floating > label {
        padding: 1rem;
    }
</style>
{% endblock %}