templates/custom_invoice_detail/index.html.twig line 11
{% extends '@EasyAdmin/page/content.html.twig' %}
{% block content_title %}Ajout d'un service pour la facture : {% endblock %}
{% block main %}
<form id="invoiceDetailForm">
<div class="form-group">
<label for="invoice">Facture:</label>
<select id="invoice" name="invoice" class="form-control">
<option value={{invoice.id}}>{{ invoice }}</option>
</select>
</div>
<div class="form-group">
<label for="categorie">Categorie:</label>
<select id="categorie" name="categorie" class="form-control">
{% for category in categories %}
<option value={{category.id}}> {{category}} </option>
{% endfor %}
</select>
</div>
<div class="form-group">
<label for="service">Service:</label>
<select id="service" name="service" class="form-control">
<!-- Render options for services -->
</select>
</div>
<div class="form-group">
<label for="quantity">Quantité:</label>
<input type="number" id="quantity" name="quantity" class="form-control">
</div>
<div class="form-group">
<label for="value">Valeur:</label>
<input type="number" step="0.01" id="value" name="value" class="form-control">
</div>
<button type="button" id='detail_submit'>Submit</button>
</form>
{% endblock %}