mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-26 09:52:16 +00:00
Compare commits
2 Commits
subhire
...
b1a2859f1b
| Author | SHA1 | Date | |
|---|---|---|---|
|
b1a2859f1b
|
|||
|
dc71c2de62
|
@@ -22,7 +22,7 @@
|
|||||||
<br><small>{{ item.description }}</small>
|
<br><small>{{ item.description }}</small>
|
||||||
{% if item.prerequisites.exists %}
|
{% if item.prerequisites.exists %}
|
||||||
<div class="ml-3 font-italic">
|
<div class="ml-3 font-italic">
|
||||||
<p class="text-info mb-0">Passed Out Prerequisites:</p>
|
<p class="text-info mb-0">Competency Assessment Prerequisites:</p>
|
||||||
<ul>
|
<ul>
|
||||||
{% for p in item.prerequisites.all %}
|
{% for p in item.prerequisites.all %}
|
||||||
<li>{{p}}</li>
|
<li>{{p}}</li>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<spacer length="4" />
|
<spacer length="4" />
|
||||||
<para>{{ item.description }}</para>
|
<para>{{ item.description }}</para>
|
||||||
{% if item.prerequisites.exists %}
|
{% if item.prerequisites.exists %}
|
||||||
<h4>Prerequisites:</h4>
|
<h4>Competency Assessment Prerequisites:</h4>
|
||||||
<ul bulletFontSize="5">
|
<ul bulletFontSize="5">
|
||||||
{% for p in item.prerequisites.all %}
|
{% for p in item.prerequisites.all %}
|
||||||
<li><para>{{p}}</para></li>
|
<li><para>{{p}}</para></li>
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ class ItemListExport(PrintListView):
|
|||||||
model = models.TrainingItem
|
model = models.TrainingItem
|
||||||
template_name = 'item_list.xml'
|
template_name = 'item_list.xml'
|
||||||
|
|
||||||
|
def get_queryset(self):
|
||||||
|
return self.model.objects.filter(active=True)
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
context = super().get_context_data(**kwargs)
|
context = super().get_context_data(**kwargs)
|
||||||
context['filename'] = "TrainingItemList.pdf"
|
context['filename'] = "TrainingItemList.pdf"
|
||||||
|
|||||||
Reference in New Issue
Block a user