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.chequeReception) }}
  55.         </div>
  56.         <div class="col-md-6">
  57.             {{ form_row(form.codePromo) }}
  58.         </div>
  59.         <div class="col-md-6">
  60.             {{ form_row(form.infoCheque) }}
  61.         </div>
  62.         <div class="col-md-6"></div>
  63.         <div class="col-md-6">
  64.             {{ form_row(form.consignesClient) }}
  65.             {{ form_row(form.roomNumber) }}
  66.         </div>
  67.         <div class="col-md-6">
  68.             {{ form_row(form.cancelReason) }}
  69.         </div>
  70.         <div class="col-md-12">
  71.             {% include 'requiredFields.html.twig' %}
  72.         </div>
  73.         <div class="col-md-12" style="padding:25px;">
  74.             <h4>Produits récapitulatif (Prix indicatifs)</h4>
  75.             <table  class="product-table product-planning">
  76.                 <thead>
  77.                 <th>Produit</th>
  78.                 <th  style="text-align: right">Prix de vente TTC</th>
  79.                 </thead>
  80.                 {% for rdvProduct in rdvProducts %}
  81.                     <tr>
  82.                         <td>
  83.                             {{ rdvProduct.product.name }}
  84.                         </td>
  85.                         <td style="text-align: right">
  86.                             {{ rdvProduct.product.priceSellTTCByGrid(rdv.salon and rdv.salon.gridPrice ? rdv.salon.gridPrice.id : 1 ) }} €
  87.                         </td>
  88.                     </tr>
  89.                 {% endfor %}
  90.                 <tr>
  91.                     <td></td>
  92.                     <td  style="text-align: right">----</td>
  93.                 </tr>
  94.                 <tr>
  95.                     <td></td>
  96.                     <td  style="text-align: right">{{ total }} €</td>
  97.                 </tr>
  98.             </table>
  99.         </div>
  100.     </div>
  101.     <div class="row">
  102.         <div class="col-md-12">
  103.             {% if is_granted('ROLE_COIFFEUR') and rdv.status == 'billing'   %}
  104.             {% else %}
  105.                 <button  id="save-edit" class="btn btn-success btn-block" type="submit">
  106.                     Enregistrer <i class="fa fa-arrow-circle-right"></i>
  107.                 </button>
  108.             {% endif %}
  109.         </div>
  110.     </div>
  111. {{ form_end(form) }}