{% extends 'base_backend_admin.html.twig' %} {% block title %} Annonce {% endblock %} {% block content %} {% set titlePage = 'Ajouter' %} {% if app.request.attributes.get('_route') == 'backend_societe_update' %} {% set titlePage = 'Modifier' %} {% endif %}

Annonces

{% include 'backend_admin/basic/notice.html.twig' %}
{{ titlePage }} une nouvelle Annonce
{{ form_start(form) }}
{{ form_errors(form) }} {{ form_row(form._token) }}
{{ form_label(form.titre, 'Titre *', {'attr': {'class': 'form-label'}}) }}
{{ form_widget(form.titre, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.titre) }}
{{ form_label(form.categorie, 'Catégorie', {'attr': {'class': 'form-label'}}) }}
{{ form_widget(form.categorie, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.categorie) }}
{{ form_label(form.prix_promo, 'Prix promo *', {'attr': {'class': 'form-label'}}) }}
{{ form_widget(form.prix_promo, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.prix_promo) }}
{{ form_label(form.pourcentage_reduction, 'Pourcentage reduction', {'attr': {'class': 'form-label'}}) }}
{{ form_widget(form.pourcentage_reduction, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.pourcentage_reduction) }}
{{ form_label(form.societe, 'Société', {'attr': {'class': 'form-label'}}) }}
{{ form_widget(form.societe, {'attr': {'class': 'form-control select-filter select2bs4 select-filter-speaker'}}) }}
{{ form_errors(form.societe) }}
{{ form_label(form.prix_marche, 'Prix du marché', {'attr': {'class': 'form-label'}}) }}
{{ form_widget(form.prix_marche, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.prix_marche) }}
{{ form_label(form.largeur, 'Largeur Annonce', {'attr': {'class': 'form-label'}}) }}
{{ form_widget(form.largeur, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.largeur) }}
{{ form_label(form.description, 'Déscription *', {'attr': {'class': 'form-label'}}) }} {{ form_widget(form.description, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.description) }}

{{ form_widget(form.save, {'label': "Enregister", 'attr': {'class': 'w-90 btn btn-primary btn-lg'}}) }}
{{ form_end(form) }}
{% endblock %}