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

{% block title %}Ajukan Proposal - {{ block.super }}{% endblock %}

{% block content %}
<div class="container my-5">
    <div class="row justify-content-center">
        <div class="col-lg-8">
            <div class="card shadow-sm">
                <div class="card-body p-5">
                    <h1 class="card-title text-center mb-4">Formulir Pengajuan Proposal</h1>
                    <p class="text-center text-muted mb-5">Silakan isi detail proposal Anda di bawah ini. Tim kami akan segera meninjaunya.</p>
                    
                    <form method="post" enctype="multipart/form-data">
                        {% csrf_token %}
                        
                        <div class="mb-4">
                            <label for="{{ form.title.id_for_label }}" class="form-label">{{ form.title.label }}</label>
                            {{ form.title }}
                        </div>

                        <div class="mb-4">
                            <label for="{{ form.proposer_name.id_for_label }}" class="form-label">{{ form.proposer_name.label }}</label>
                            {{ form.proposer_name }}
                        </div>

                        <div class="mb-4">
                            <label for="{{ form.proposal_type.id_for_label }}" class="form-label">{{ form.proposal_type.label }}</label>
                            {{ form.proposal_type }}
                        </div>

                        <div class="mb-4">
                            <label for="{{ form.description.id_for_label }}" class="form-label">{{ form.description.label }}</label>
                            {{ form.description }}
                        </div>

                        <div class="mb-4">
                            <label for="{{ form.attachment.id_for_label }}" class="form-label">{{ form.attachment.label }}</label>
                            {{ form.attachment }}
                            {% if form.attachment.help_text %}
                            <div class="form-text">{{ form.attachment.help_text }}</div>
                            {% endif %}
                        </div>

                        <div class="d-grid gap-2">
                            <button type="submit" class="btn btn-primary btn-lg">Kirim Proposal</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
