{{ form_start(form,{'attr': {'id': 'edit_form_rdv'}}) }}
<div class="row">
{% include 'formErrors.html.twig' %}
<div class="col-md-6">
{{ form_row(form.client) }}
{% if rdv.client and not is_granted('ROLE_COIFFEUR') %}
<a href="{{ path('client_edit', {id: rdv.client.id}) }}" target="_blank">Voir fiche client</a>
{% endif %}
</div>
<div class="col-md-6">
{{ form_row(form.author) }}
</div>
<div class="col-md-6">
{{ form_row(form.intervenant) }}
</div>
<div class="col-md-6">
{{ form_row(form.salon) }}
</div>
<div class="col-md-6" style="font-size: 20px">
{{ form_row(form.products) }}
</div>
<div class="col-md-12">
{{ form_row(form.start) }}
</div>
<div class="col-md-6">
{{ form_row(form.end) }}
</div>
<div class="col-md-6">
{{ form_row(form.priorite) }}
</div>
<div class="col-md-6">
{{ form_row(form.hasAddService) }}
</div>
<div class="col-md-6">
{{ form_row(form.recurrence) }}
</div>
<div class="col-md-6" style="{% if rdv.status == 'validated' or rdv.status == 'billing' %}color:green;{% endif %}{% if rdv.status == 'cancel' %}color:gray{% endif %}" >
{% if rdv.status == 'billing' %}
RDV Facturé
<div>
{{ form_row(form.status) }}
</div>
{% else %}
{{ form_row(form.status) }}
{% endif %}
</div>
{#<div class="col-md-6">#}
{#{{ form_row(form.validate) }}#}
{#</div>#}
<div class="col-md-6">
{{ form_row(form.comment) }}
</div>
<div class="col-md-6">
{{ form_row(form.chequeReception) }}
</div>
<div class="col-md-6">
{{ form_row(form.codePromo) }}
</div>
<div class="col-md-6">
{{ form_row(form.infoCheque) }}
</div>
<div class="col-md-6"></div>
<div class="col-md-6">
{{ form_row(form.consignesClient) }}
{{ form_row(form.roomNumber) }}
</div>
<div class="col-md-6">
{{ form_row(form.cancelReason) }}
</div>
<div class="col-md-12">
{% include 'requiredFields.html.twig' %}
</div>
<div class="col-md-12" style="padding:25px;">
<h4>Produits récapitulatif (Prix indicatifs)</h4>
<table class="product-table product-planning">
<thead>
<th>Produit</th>
<th style="text-align: right">Prix de vente TTC</th>
</thead>
{% for rdvProduct in rdvProducts %}
<tr>
<td>
{{ rdvProduct.product.name }}
</td>
<td style="text-align: right">
{{ rdvProduct.product.priceSellTTCByGrid(rdv.salon and rdv.salon.gridPrice ? rdv.salon.gridPrice.id : 1 ) }} €
</td>
</tr>
{% endfor %}
<tr>
<td></td>
<td style="text-align: right">----</td>
</tr>
<tr>
<td></td>
<td style="text-align: right">{{ total }} €</td>
</tr>
</table>
</div>
</div>
<div class="row">
<div class="col-md-12">
{% if is_granted('ROLE_COIFFEUR') and rdv.status == 'billing' %}
{% else %}
<button id="save-edit" class="btn btn-success btn-block" type="submit">
Enregistrer <i class="fa fa-arrow-circle-right"></i>
</button>
{% endif %}
</div>
</div>
{{ form_end(form) }}