{# -*- engine:django -*- #} {% extends "core/base.html" %} {% load i18n rules material_form %} {% block browser_title %}{% blocktrans %}Instructions{% endblocktrans %}{% endblock %} {% block page_title %}{% blocktrans %}Instructions{% endblocktrans %}{% endblock %} {% block nav_content %} {% endblock %} {% block content %}
{% has_perm "alsijil.add_instruction_rule" user as can_add %} {% if can_add %} add {% trans "Create instruction" %} {% endif %}
{% trans "Filter instructions" %}
{% form form=filter.form %}{% endform %}
cancel {% trans "Reset filter" %}
{% for instruction in instruction_list %}
{{ instruction.name }} {% has_perm "alsijil.edit_instruction_rule" user as can_edit %} {% has_perm "alsijil.delete_instruction_rule" user as can_delete %} {% if can_edit %} edit {% trans "Edit" %} {% endif %} {% if can_delete %} delete {% trans "Delete" %} {% endif %}
{% endfor %}
{% has_perm "alsijil.view_done_instructions_rule" user as can_view_done %} {% if can_view_done %}
{% for instruction in object_list %} {% endfor %} {% for group, instructions in done_instructions.items %} {% for instruction, el in instructions.items %} {% with done=el.0 docs=el.1 %} {% endwith %} {% endfor %} {% endfor %}
{{ instruction.name }}
{{ group.name }} {% if done %}check{% else %}clear{% endif %} {% for doc in docs %} {{ doc.date }}, {{ doc.register_object.teacher_short_names }}{% if not forloop.last %};{% endif %} {% endfor %}
{% endif %} {% endblock %}