ZuluPro/myblog

View on GitHub
myblog/myapp/templates/bio/plantitems.html

Summary

Maintainability
Test Coverage
{% extends "zinnia/base.html" %}
{% load i18n %}

{% block title %}{% trans "Bio inventory" %}{% endblock title %}

{% block content %}
<section class="body-head">
 <div class="content">
  <h2>
   <a href="{% url "directories" %}">{% trans "Bio directory" %}</a>
   / {% trans "Inventory" %}
  </h2>
 </div>
</section>

<section>
 <div class="content">
  <div class="pure-g">
  {% for set in plantsets %}
   <div class="pure-u-1-2 pure-u-sm-1-3 pure-u-md-1-4 pure-u-lg-1-5">
    <h3>{{ set }}</h3>
    <p>
    {% for plant in set.plantitem_set.all %}
    <a href="{{ plant.get_absolute_url }}">{{ forloop.counter }}</a>
    {% endfor %}
    </p>
   </div>
  {% endfor %}
  </div>
 </div>
</section>
{% endblock content %}