examen MVC (model view controller)
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

customers.html.twig 836B

123456789101112131415161718192021222324252627282930313233
  1. {% extends "base.html.twig"%} {% block main%}
  2. <h1>CUSTOMERS LIST</h1>
  3. <hr/>
  4. <table>
  5. <tr>
  6. <th>Id</th>
  7. <th>Firstname</th>
  8. <th>Lastname</th>
  9. <th>Company</th>
  10. <th>VAT Number</th>
  11. <th>Street</th>
  12. <th>2nd Street</th>
  13. <th>Zipcode</th>
  14. <th>City</th>
  15. <th>State</th>
  16. <th>Country</th>
  17. </tr>
  18. {% for customer in customerList%}
  19. <tr>
  20. <td><a href="/orders/{{customer.id}}">{{customer.id}}</td>
  21. <td>{{customer.firstname}}</td>
  22. <td>{{customer.lastname}}</td>
  23. <td>{{customer.company}}</td>
  24. <td>>{{customer.vatnumber}}</td>
  25. <td>{{customer.street}}</td>
  26. <td>{{customer.street2nd}}</td>
  27. <td>{{customer.zipcode}}</td>
  28. <td>{{customer.city}}</td>
  29. <td>{{customer.state}}</td>
  30. <td>{{customer.country}}</td>
  31. {% endfor%}
  32. </table>
  33. {% endblock%}