{% extends 'base.html' %}
{% block title %}{{ title }}{% endblock %}
{% block content %}
<div class="container py-5">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card shadow-sm">
                <div class="card-body p-4">
                    <h2 class="h4 mb-4">{{ title }}</h2>
                    <form method="post">
                        {% csrf_token %}
                        <div class="mb-3">
                            <label class="form-label fw-medium">Status Name</label>
                            {{ form.name }}
                        </div>
                        <div class="mb-4">
                            <div class="form-check">
                                {{ form.is_starting_status }}
                                <label class="form-check-label fw-medium">Set as Starting Status</label>
                            </div>
                            <small class="text-muted">New jobs will be automatically assigned this status.</small>
                        </div>
                        <button type="submit" class="btn btn-primary w-100">Save Status</button>
                        <a href="{% url 'settings' %}" class="btn btn-link w-100 text-muted mt-2 text-decoration-none">Cancel</a>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
