mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
* Add 'description' field to TrainingItems Renamed existing field to name, removed the dummy property. * Initial version of training item export view * Fix line length issue and better spacing on exported PDF * Added export button to item list * pep8 * Implement code doctor tweaks * Attempt to fix odd deployment issue * Pad headers slightly * Fix page numbering
26 lines
823 B
XML
26 lines
823 B
XML
{% extends 'base_print.xml' %}
|
|
|
|
{% block content %}
|
|
<h1 style="page-head">TEC Training Item List</h1>
|
|
<spacer length="15" />
|
|
{% for category in categories %}
|
|
<h2 {% if not forloop.first %}style="breakbefore"{%else%}style="emheader"{%endif%}>{{category}}</h2>
|
|
<spacer length="10" />
|
|
{% for item in category.items.all %}
|
|
<h3>{{ item }}</h3>
|
|
<spacer length="4" />
|
|
<para>{{ item.description }}</para>
|
|
{% if item.prerequisites.exists %}
|
|
<h4>Prerequisites:</h4>
|
|
<ul bulletFontSize="5">
|
|
{% for p in item.prerequisites.all %}
|
|
<li><para>{{p}}</para></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
<spacer length="8" />
|
|
{% endfor %}
|
|
{% endfor %}
|
|
<namedString id="lastPage"><pageNumber/></namedString>
|
|
{% endblock %}
|