{% extends "base.html" %}

{% block title %}New Job - AIS Portal{% endblock %}

{% block content %}
<div class="row justify-content-center">
    <div class="col-lg-6">
        <div class="card p-5">
            <h1 class="h3 mb-4">Register New Industrial Job</h1>
            <form method="post">
                {% csrf_token %}
                <div class="mb-3">
                    <label for="client_name" class="form-label">Client / Organization Name</label>
                    <input type="text" class="form-control form-control-lg" id="client_name" name="client_name" required placeholder="e.g. Colombo Port Authority">
                </div>
                <div class="mb-4">
                    <label for="description" class="form-label">Scope Description</label>
                    <textarea class="form-control" id="description" name="description" rows="4" placeholder="Briefly describe the industrial services required..."></textarea>
                </div>
                <div class="d-grid gap-2">
                    <button type="submit" class="btn btn-primary btn-lg">Create Job Entry</button>
                    <a href="{% url 'job_list' %}" class="btn btn-link text-muted">Cancel</a>
                </div>
            </form>
            <div class="mt-4 p-3 bg-light rounded small">
                <p class="mb-0 text-muted">Note: Job Number (AISXXXX) will be automatically generated upon submission.</p>
            </div>
        </div>
    </div>
</div>
{% endblock %}
