{% extends 'base.html.twig' %}

{% block title %}Créer une Annonce{% endblock %}

{% block body %}
        <div class="container mx-auto p-6">
                <h1 class="text-3xl font-bold mb-4">Créer une Annonce</h1>

                {{ form_start(form) }}
                <div class="mb-4">
                        {{ form_label(form.title) }}
                        {{ form_widget(form.title, {'attr': {'class': 'form-input w-full p-2 rounded border'}}) }}
                </div>
                <div class="mb-4">
                        {{ form_label(form.description) }}
                        {{ form_widget(form.description, {'attr': {'class': 'form-input w-full p-2 rounded border'}}) }}
                </div>
                <div class="mb-4">
                        {{ form_label(form.date) }}
                        {{ form_widget(form.date, {'attr': {'class': 'form-input w-full p-2 rounded border'}}) }}
                </div>
                <div class="mb-4">
                        {{ form_label(form.company) }}
                        {{ form_widget(form.company, {'attr': {'class': 'form-input w-full p-2 rounded border'}}) }}
                </div>
                <button type="submit" class="bg-teal-500 text-white px-4 py-2 rounded">
                        Créer l'annonce
                </button>
                {{ form_end(form) }}
        </div>
{% endblock %}
