{% extends "base_list.html" %}
{% load static %}

{% block title %}Birds{% endblock %}

{% block lists %}
<div class="row">
    <div class="col-md">
        <div class="table-responsive">
            <table class="table table-striped table-sm">
                <thead>
                    <tr>
                        <th scope="col">Common Name</th>
                        <th scope="col">Scientific Name</th>
                    </tr>
                </thead>
                <tbody>
                    {% for bird in object_list %}
                    <tr>
                        <td><a href="{{bird.get_absolute_url}}">{{bird.common_name}}</a></td>
                        <td>{{bird.scientific_name|default:""}}</td>
                    </tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
</div>
{% endblock %}
