templates/custom_invoice_detail/index.html.twig line 1

  1. {% extends '@EasyAdmin/page/content.html.twig' %}
  2. {% block content_title %}Ajout d'un service pour la facture : {% endblock %}
  3. {% block main %}
  4.     <form id="invoiceDetailForm">
  5.     <div class="form-group">
  6.         <label for="invoice">Facture:</label>
  7.         <select id="invoice" name="invoice" class="form-control">
  8.             <option value={{invoice.id}}>{{ invoice }}</option>
  9.         </select>
  10.     </div>
  11.     <div class="form-group">
  12.         <label for="categorie">Categorie:</label>
  13.         <select id="categorie" name="categorie" class="form-control">
  14.             {% for category in categories %}
  15.              <option value={{category.id}}> {{category}} </option>
  16.              {% endfor %}
  17.         </select>
  18.     </div>
  19.     <div class="form-group">
  20.         <label for="service">Service:</label>
  21.         <select id="service" name="service" class="form-control">
  22.             <!-- Render options for services -->
  23.         </select>
  24.     </div>
  25.     <div class="form-group">
  26.         <label for="quantity">Quantité:</label>
  27.         <input type="number" id="quantity" name="quantity" class="form-control">
  28.     </div>
  29.     <div class="form-group">
  30.         <label for="value">Valeur:</label>
  31.         <input type="number" step="0.01" id="value" name="value" class="form-control">
  32.     </div>
  33.     <button type="button" id='detail_submit'>Submit</button>
  34. </form>
  35. {% endblock %}