{% extends "touchtechnology/admin/workbook/list.inc.html" %} {% load i18n %} {# The admin's stock list reverses its add link by nesting the child's namespace under the parent's. This component's URL namespaces are flat, so the add link is built here from the parent on the page. #} {% block actions %} {% if object.year_id %} {% url 'admin:enrolment:assessment:add' object.year_id object.pk as add_url %} {% include "touchtechnology/admin/workbook/_add.html" with url=add_url %} {% endif %} {% endblock actions %} {% block table-row-empty %}