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

{% trans "Search results" %}

{% for activity in search_page_obj %} {% include "learning/activity/_includes/block/activity_block.html" with activity=activity 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 activities" %}

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