Remove ID from model list templates.

This commit is contained in:
Christopher Charbonneau Wells 2017-08-19 15:00:29 -04:00
parent f30ef88d1b
commit 22fbdf2868
6 changed files with 12 additions and 24 deletions

View File

@ -9,7 +9,6 @@
<table class="table table-striped table-hover"> <table class="table table-striped table-hover">
<thead class="thead-inverse"> <thead class="thead-inverse">
<tr> <tr>
<th>#</th>
<th>First Name</th> <th>First Name</th>
<th>Last Name</th> <th>Last Name</th>
<th>Birth Date</th> <th>Birth Date</th>
@ -19,8 +18,7 @@
<tbody> <tbody>
{% for child in object_list %} {% for child in object_list %}
<tr> <tr>
<th scope="row">{{ child.id }}</th> <th scope="row">{{ child.first_name }}</th>
<td>{{ child.first_name }}</td>
<td>{{ child.last_name }}</td> <td>{{ child.last_name }}</td>
<td>{{ child.birth_date }}</td> <td>{{ child.birth_date }}</td>
<td class="text-center"> <td class="text-center">
@ -49,7 +47,7 @@
</tr> </tr>
{% empty %} {% empty %}
<tr> <tr>
<th colspan="5">No children found.</th> <th colspan="4">No children found.</th>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>

View File

@ -9,7 +9,6 @@
<table class="table table-striped table-hover"> <table class="table table-striped table-hover">
<thead class="thead-inverse"> <thead class="thead-inverse">
<tr> <tr>
<th>#</th>
<th>Child</th> <th>Child</th>
<th>Time</th> <th>Time</th>
<th>Wet</th> <th>Wet</th>
@ -21,8 +20,7 @@
<tbody> <tbody>
{% for change in object_list %} {% for change in object_list %}
<tr> <tr>
<th scope="row">{{ change.id }}</th> <th scope="row">{{ change.child }}</th>
<td>{{ change.child }}</td>
<td>{{ change.time }}</td> <td>{{ change.time }}</td>
<td>{{ change.wet }}</td> <td>{{ change.wet }}</td>
<td>{{ change.solid }}</td> <td>{{ change.solid }}</td>
@ -47,7 +45,7 @@
</tr> </tr>
{% empty %} {% empty %}
<tr> <tr>
<th colspan="7">No diaper changes found.</th> <th colspan="6">No diaper changes found.</th>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>

View File

@ -9,7 +9,6 @@
<table class="table table-striped table-hover"> <table class="table table-striped table-hover">
<thead class="thead-inverse"> <thead class="thead-inverse">
<tr> <tr>
<th>#</th>
<th>Child</th> <th>Child</th>
<th>Date</th> <th>Date</th>
<th>Duration</th> <th>Duration</th>
@ -22,8 +21,7 @@
<tbody> <tbody>
{% for feeding in object_list %} {% for feeding in object_list %}
<tr> <tr>
<th scope="row">{{ feeding.id }}</th> <th scope="row">{{ feeding.child }}</th>
<td>{{ feeding.child }}</td>
<td>{{ feeding.start }}</td> <td>{{ feeding.start }}</td>
<td>{{ feeding.duration }}</td> <td>{{ feeding.duration }}</td>
<td>{{ feeding.type }}</td> <td>{{ feeding.type }}</td>
@ -49,7 +47,7 @@
</tr> </tr>
{% empty %} {% empty %}
<tr> <tr>
<th colspan="8">No feedings found.</th> <th colspan="7">No feedings found.</th>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>

View File

@ -9,7 +9,6 @@
<table class="table table-striped table-hover"> <table class="table table-striped table-hover">
<thead class="thead-inverse"> <thead class="thead-inverse">
<tr> <tr>
<th>#</th>
<th>Child</th> <th>Child</th>
<th>Note</th> <th>Note</th>
<th>Time</th> <th>Time</th>
@ -19,8 +18,7 @@
<tbody> <tbody>
{% for note in object_list %} {% for note in object_list %}
<tr> <tr>
<th scope="row">{{ note.id }}</th> <th scope="row">{{ note.child }}</th>
<td>{{ note.child }}</td>
<td>{{ note.note }}</td> <td>{{ note.note }}</td>
<td>{{ note.time }}</td> <td>{{ note.time }}</td>
<td class="text-center"> <td class="text-center">
@ -43,7 +41,7 @@
</tr> </tr>
{% empty %} {% empty %}
<tr> <tr>
<th colspan="5">No notes found.</th> <th colspan="4">No notes found.</th>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>

View File

@ -9,7 +9,6 @@
<table class="table table-striped table-hover"> <table class="table table-striped table-hover">
<thead class="thead-inverse"> <thead class="thead-inverse">
<tr> <tr>
<th>#</th>
<th>Child</th> <th>Child</th>
<th>Start</th> <th>Start</th>
<th>End</th> <th>End</th>
@ -20,8 +19,7 @@
<tbody> <tbody>
{% for sleep in object_list %} {% for sleep in object_list %}
<tr> <tr>
<th scope="row">{{ sleep.id }}</th> <th scope="row">{{ sleep.child }}</th>
<td>{{ sleep.child }}</td>
<td>{{ sleep.start }}</td> <td>{{ sleep.start }}</td>
<td>{{ sleep.end }}</td> <td>{{ sleep.end }}</td>
<td>{{ sleep.duration }}</td> <td>{{ sleep.duration }}</td>
@ -45,7 +43,7 @@
</tr> </tr>
{% empty %} {% empty %}
<tr> <tr>
<th colspan="6">No sleep entries found.</th> <th colspan="5">No sleep entries found.</th>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>

View File

@ -9,7 +9,6 @@
<table class="table table-striped table-hover"> <table class="table table-striped table-hover">
<thead class="thead-inverse"> <thead class="thead-inverse">
<tr> <tr>
<th>#</th>
<th>Child</th> <th>Child</th>
<th>Start</th> <th>Start</th>
<th>End</th> <th>End</th>
@ -21,8 +20,7 @@
<tbody> <tbody>
{% for tummytime in object_list %} {% for tummytime in object_list %}
<tr> <tr>
<th scope="row">{{ tummytime.id }}</th> <th scope="row">{{ tummytime.child }}</th>
<td>{{ tummytime.child }}</td>
<td>{{ tummytime.start }}</td> <td>{{ tummytime.start }}</td>
<td>{{ tummytime.end }}</td> <td>{{ tummytime.end }}</td>
<td>{{ tummytime.duration }}</td> <td>{{ tummytime.duration }}</td>
@ -47,7 +45,7 @@
</tr> </tr>
{% empty %} {% empty %}
<tr> <tr>
<th colspan="7">No tummy time entries found.</th> <th colspan="6">No tummy time entries found.</th>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>