{% extends "base_menu.html" %}

{% block title %} BREEDS {% endblock %}

{% block content %}
  <h1>Breed List</h1>
  {% if object_list %}
  <ul>
    {% for breed in object_list %}
      <li>
          {{ breed.name }}
         (<a href="{% url 'cats:breed update' breed.id %}">Update</a> |
          <a href="{% url 'cats:breed delete' breed.id %}">Delete</a>)
      </li>
    {% endfor %}
  </ul>
  {% else %}
    <p>There are no breeds in the library.</p>
  {% endif %}
  <p><a href="{% url 'cats:breed create' %}">Add a breed</a></p>
  <p>
    <a href="{% url 'cats:index' %}">Back to cats</a>
  </p>
{% endblock %}