Started using Bootstrap for styling, moved app factory, added tests, started work on login and registration templates, and more
This commit is contained in:
27
accounts/templates/users/my_dogs/dogs_panel.html
Normal file
27
accounts/templates/users/my_dogs/dogs_panel.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="colgroup" colspan="4" class="text-center h3">My dogs</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col">Name</th>
|
||||
<th scope="col">Breed size</th>
|
||||
<th scope="col">Birth date</th>
|
||||
<th scope="col">Age</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody class="table-group-divider">
|
||||
{% for dog in user_dogs %}
|
||||
<tr>
|
||||
<td>{{ dog.name }}</td>
|
||||
<td>{{ dog.breed_size.value }}</td>
|
||||
<td>{{ dog.birth_date.strftime('%Y-%m-%d') }}</td>
|
||||
<td>{{ dog.get_age() }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user