{% extends 'base.html.twig' %} {% block title %}Réservation {{ annonce.titre }} {% endblock %} {% block stylesheet %} {% endblock %} {% block body %}

Réservez pour l'annonce : {{ annonce.titre }}

Vous êtes sur le point de réserver chez de {{ annonce.host.user.nom }} {{ annonce.host.user.prenom }}

{{ form_start(form) }}

Date du séjour :

{{form_row(form.startAt)}}
{{form_row(form.endAt)}}

Montant du séjour : ... DA

0 nuit(s) à {{ annonce.price }} DA par nuit
{{ form_label(form.adults, 'Adultes', {'label_attr': {'for': 'adults'}}) }}
{{ form_widget(form.adults, { 'attr': {'min': 0, 'max': 9, 'class': 'form-control', 'type': 'number', 'id': 'adults'} }) }}
{{ form_errors(form.adults) }}
{{ form_label(form.children, 'Enfants') }}
{{ form_widget(form.children, { 'attr': {'min': 0, 'max': 9, 'class': 'form-control', 'type': 'number', 'id': 'form_children'} }) }}
{{ form_errors(form.children) }}
{{ form_label(form.infants, 'Nourrissons') }}
{{ form_widget(form.infants, { 'attr': {'min': 0, 'max': 9, 'class': 'form-control', 'type': 'number', 'id': 'form_infants'} }) }}
{{ form_errors(form.infants) }}
{{ form_label(form.pets, 'Animaux domestiques') }}
{{ form_widget(form.pets, { 'attr': {'min': 0, 'max': 9, 'class': 'form-control btn-outline-secondary', 'type': 'number', 'id': 'form_pets'} }) }}
{{ form_errors(form.pets) }}

Laisser un commentaire :

{{ form_row(form.comment) }}


{{form_end(form)}}
{% endblock %} {% block javascripts %} {% endblock %}