{% extends 'base_backend_admin.html.twig' %} {% block title %} Service {% endblock %} {% block content %}

Service

{% include 'backend_admin/basic/notice.html.twig' %}
Détail service
{{ 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.adress, 'Adresse', {'attr': {'class': 'form-label'}}) }}
{{ form_widget(form.adress, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.adress) }}
{{ form_label(form.marque, 'Marque', {'attr': {'class': 'form-label'}}) }}
{{ form_widget(form.marque, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.marque) }}
{{ 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.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.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.duree, 'Durée du service (en minute)', {'attr': {'class': 'form-label'}}) }}
{{ form_widget(form.duree, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.duree) }}
{{ form_label(form.limit_type, 'Limitation par', {'attr': {'class': 'form-check-input'}}) }} {% for key,child in form.limit_type %}
{{ form_widget(child, {'attr': {'class': 'form-check-input'}} ) }} {{ form_label(child) }}
{% endfor %}
{{ 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 %} {% block javascripts %} {{ parent() }} {{ encore_entry_script_tags('app_backend_article_service') }} {% endblock %}