]> git.0d.be Git - django-panik-matos.git/blobdiff - matos/templates/matos/piece_detail.html
add latest loans on piece details view
[django-panik-matos.git] / matos / templates / matos / piece_detail.html
index 3f5f7ce974d9024b4463f520feae06e3d19897ea..7feb069656859b7ead340bbdc3c26f5f5b884e93 100644 (file)
         {% if object.location_details %}<p>{{ object.location_details }}</p>{% endif %}
       </div>
     {% endif %}
+
+    {% if latest_loans %}
+      <h3>{% trans 'Latest loans' %}</h3>
+      <div>
+        {% include "matos/loan_table.html" with loan_list=latest_loans %}
+      </div>
+    {% endif %}
+
   </div>
 
 {% endblock %}