Php - Symfony application Application with Symfony to display and save a PDF file generated from HTML code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
my_dompdf_project/templates/facture/_form.html.twig

58 lines
2.0 KiB

<!-- elements du formulaire -->
{{ form_start(form) }}
<!-- debut des champs pour la saisie -->
<div class="col-sm-8 mx-auto">
<!-- numero identifiant du client -->
<div class="mb-4">
{{ form_label(form.client_id, 'N° identifiant du client') }}
{{ form_widget(form.client_id, {'attr': {'class': 'form-control'}}) }}
{{ form_help(form.client_id, {
'help_attr': {'class': 'small text-muted font-italic'}
}) }}
</div>
<!-- /numero identifiant du client -->
<!-- adresse IP du client -->
<div class="mb-4">
{{ form_label(form.client_adresse_ip, 'Adresse IP du paiement') }}
{{ form_widget(form.client_adresse_ip, {'attr': {'class': 'form-control'}}) }}
{{ form_help(form.client_adresse_ip, {
'help_attr': {'class': 'small text-muted font-italic'}
}) }}
</div>
<!-- /adresse IP du client -->
<!-- montant hors-taxe de la facture -->
<div class="mb-4">
{{ form_label(form.montant_ht, 'Montant Hors-Taxe') }}
{{ form_widget(form.montant_ht, {'attr': {'class': 'form-control'}}) }}
</div>
<!-- /montant hors-taxe de la facture -->
<!-- montant de la TVA -->
<div class="mb-4">
{{ form_label(form.montant_tva, 'Montant de la TVA') }}
{{ form_widget(form.montant_tva, {'attr': {'class': 'form-control'}}) }}
{{ form_help(form.montant_tva, {
'help_attr': {'class': 'small text-muted font-italic'}
}) }}
</div>
<!-- /montant de la TVA -->
<!-- date de la facture -->
<div class="mb-4">
{{ form_label(form.facture_createAt, 'Date du paiement') }}
{{ form_widget(form.facture_createAt, {'attr': {'class': 'form-control'}}) }}
</div>
<!-- /date de la facture -->
<!-- bouton de validation du formulaire-->
<button class="btn btn-primary btn-block mb-5">{{ save_button | default('Save') }}</button>
<!-- /bouton de validation du formulaire-->
</div>
<!-- /debut des champs pour la saisie -->
{{ form_end(form) }}
<!-- /elements du formulaire -->