{% extends "learning/activity/detail.html" %} {% load i18n django_bootstrap_breadcrumbs %} {% block title %}{{ block.super }} − {% blocktrans with name=activity.name %}Associate a resource on “{{ name }}”{% endblocktrans %} {% endblock %} {% block breadcrumbs %} {{ block.super }} {% breadcrumb "Associate resource" "learning:activity/detail/resource/attach" %} {% endblock %} {% block learning_content %}
{{ form.query }}
{% if search_has_obj == False %}
{% trans "No resources match your search…" %}
{% else %} {% if search_nb_per_page > 0 %}

{% trans "Search results" %}

{% for resource in search_page_obj %} {% include "learning/resource/_includes/block/resource_block.html" with resource=resource add=True %} {% endfor %}
{% include 'learning/_includes/paginator_buttons.html' with current_page=search_page_obj prefix="search" nb_per_page=search_nb_per_page %} {% endif %} {% endif %} {% if reusable_has_obj %}

{% trans "All usable resources" %}

{% for resource in reusable_page_obj %} {% include "learning/resource/_includes/block/resource_block.html" with resource=resource add=True %} {% endfor %}
{% include 'learning/_includes/paginator_buttons.html' with current_page=reusable_page_obj prefix="reusable" nb_per_page=reusable_nb_per_page %} {% else %}
{% endif %} {% endblock %}