Advertisement
sole4tech

view.html

Jun 16th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.23 KB | None | 0 0
  1. {% extends "base_generic.html" %}
  2. {% block view %}
  3. <table class="table table-striped">
  4.     <thead class="thead-dark">
  5.         <tr>
  6.             <th>Date</th>
  7.             <th>Time</th>
  8.             <th>Client name</th>
  9.             <th>Car model</th>
  10.             <th>VIN</th>
  11.             <th>Registration number</th>
  12.             <th>Service campaign</th>
  13.             <th>Phone number</th>
  14.         </tr>
  15.     </thead>
  16.     <tbody>
  17.         {% for appointment in appointments %}
  18.         <tr>
  19.             <td>{{ appointment.date }}</td>
  20.             <td>{{ appointment.time }}</td>
  21.             <td>{{ appointment.clientName }}</td>
  22.             <td>{{ appointment.carType }}</td>
  23.             <td>{{ appointment.VIN }}</td>
  24.             <td>{{ appointment.registrationNumber }}</td>
  25.             <td>{{ appointment.serviceAction }}</td>
  26.             <td>{{ appointment.phoneNumber }}</td>
  27.             <td>
  28.                 <a href="/edit/{{ appointment.id }}"><span class="glyphicon glyphicon-pencil">Edit</span></a>
  29.                 <a href="/delete/{{ appointment.id }}">Delete</a>
  30.             </td>
  31.         </tr>
  32.         {% endfor %}
  33.     </tbody>
  34. </table>
  35. <br>
  36. <br>
  37. <a href="show" class="btn btn-primary">Add New Record</a>
  38. {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement