templates/planning/_form.html.twig line 1

Open in your IDE?
  1. {{ form_start(form,{'attr': {'id': 'edit_form_rdv'}}) }}
  2.     <div class="row">
  3.        {% include 'formErrors.html.twig' %}
  4.         <div class="col-md-6">
  5.             {{ form_row(form.client) }}
  6.             {% if rdv.client and not is_granted('ROLE_COIFFEUR')   %}
  7.             <a href="{{ path('client_edit', {id: rdv.client.id}) }}" target="_blank">Voir fiche client</a>
  8.             {% endif %}
  9.         </div>
  10.         <div class="col-md-6">
  11.             {{ form_row(form.author) }}
  12.         </div>
  13.         <div class="col-md-6">
  14.             {{ form_row(form.intervenant) }}
  15.         </div>
  16.         <div class="col-md-6">
  17.             {{ form_row(form.salon) }}
  18.         </div>
  19.         <div class="col-md-6" style="font-size: 20px">
  20.             {{ form_row(form.products) }}
  21.         </div>
  22.         <div class="col-md-12">
  23.             {{ form_row(form.start) }}
  24.         </div>
  25.         <div class="col-md-6">
  26.             {{ form_row(form.end) }}
  27.         </div>
  28.         <div class="col-md-6">
  29.             {{ form_row(form.priorite) }}
  30.         </div>
  31.         <div class="col-md-6">
  32.             {{ form_row(form.hasAddService) }}
  33.         </div>
  34.         <div class="col-md-6">
  35.             {{ form_row(form.recurrence) }}
  36.         </div>
  37.         <div class="col-md-6" style="{% if rdv.status == 'validated' or rdv.status == 'billing' %}color:green;{% endif %}{% if rdv.status == 'cancel' %}color:gray{% endif %}" >
  38.             {% if rdv.status == 'billing' %}
  39.                 RDV Facturé
  40.                 <div>
  41.                     {{ form_row(form.status) }}
  42.                 </div>
  43.             {% else %}
  44.             {{ form_row(form.status) }}
  45.             {% endif %}
  46.         </div>
  47.         {#<div class="col-md-6">#}
  48.             {#{{ form_row(form.validate) }}#}
  49.         {#</div>#}
  50.         <div class="col-md-6">
  51.             {{ form_row(form.comment) }}
  52.         </div>
  53.         <div class="col-md-6">
  54.             {{ form_row(form.consignesClient) }}
  55.             {{ form_row(form.roomNumber) }}
  56.         </div>
  57.         <div class="col-md-6">
  58.             {{ form_row(form.cancelReason) }}
  59.         </div>
  60.         <div class="col-md-12">
  61.             {% include 'requiredFields.html.twig' %}
  62.         </div>
  63.         <div class="col-md-12" style="padding:25px;">
  64.             <h4>Produits récapitulatif (Prix indicatifs)</h4>
  65.             <table  class="product-table product-planning">
  66.                 <thead>
  67.                 <th>Produit</th>
  68.                 <th  style="text-align: right">Prix de vente TTC</th>
  69.                 </thead>
  70.                 {% for rdvProduct in rdvProducts %}
  71.                     <tr>
  72.                         <td>
  73.                             {{ rdvProduct.product.name }}
  74.                         </td>
  75.                         <td style="text-align: right">
  76.                             {{ rdvProduct.product.priceSellTTCByGrid(rdv.salon and rdv.salon.gridPrice ? rdv.salon.gridPrice.id : 1 ) }} €
  77.                         </td>
  78.                     </tr>
  79.                 {% endfor %}
  80.                 <tr>
  81.                     <td></td>
  82.                     <td  style="text-align: right">----</td>
  83.                 </tr>
  84.                 <tr>
  85.                     <td></td>
  86.                     <td  style="text-align: right">{{ total }} €</td>
  87.                 </tr>
  88.             </table>
  89.         </div>
  90.     </div>
  91.     <div class="row">
  92.         <div class="col-md-12">
  93.             {% if is_granted('ROLE_COIFFEUR') and rdv.status == 'billing'   %}
  94.             {% else %}
  95.                 <button  id="save-edit" class="btn btn-success btn-block" type="submit">
  96.                     Enregistrer <i class="fa fa-arrow-circle-right"></i>
  97.                 </button>
  98.             {% endif %}
  99.         </div>
  100.     </div>
  101. {{ form_end(form) }}