2022-02-15 17:12:06 -05:00
|
|
|
{% extends "base.dj.html" %}
|
|
|
|
|
|
|
|
{% block content %}
|
2022-11-07 13:49:39 -05:00
|
|
|
<div class="d-flex flex-wrap justify-content-between">
|
|
|
|
<p>You have been issued the following Claremont MakerSpace Member Certifications:</p>
|
|
|
|
<div class="form-check form-switch">
|
|
|
|
<label class="form-check-label" for="flexSwitchCheckDefault">
|
|
|
|
<input class="form-check-input" type="checkbox" role="switch" {{ show_outdated|yesno:"checked," }} onchange="window.location.href='?show_outdated={{ show_outdated|yesno:"false,true" }}'">
|
|
|
|
Show Outdated
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-02-15 17:12:06 -05:00
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-bordered table-striped table-hover" border="1">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Certification</th>
|
|
|
|
<th>Version</th>
|
|
|
|
<th>Department</th>
|
|
|
|
<th>Certified By</th>
|
|
|
|
<th>Date</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for certification in certifications %}
|
2022-11-07 13:49:39 -05:00
|
|
|
{% with current=certification.certification_version.is_current %}
|
|
|
|
{% if current or show_outdated %}
|
2023-04-14 01:07:35 -04:00
|
|
|
<tr {% if not current %}class="table-warning"{% endif %}>
|
|
|
|
<td {% if not current %}class="text-decoration-line-through"{% endif %}>
|
2023-04-10 14:51:43 -04:00
|
|
|
{{ certification.certification_version.definition.name }}
|
2022-11-07 13:49:39 -05:00
|
|
|
</td>
|
|
|
|
<td>
|
2023-01-31 18:53:36 -05:00
|
|
|
{{ certification.certification_version.semantic_version }}
|
2022-11-07 13:49:39 -05:00
|
|
|
{% if not current %}<span class="fw-bold">OUTDATED</span>{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>{{ certification.certification_version.definition.department }}</td>
|
|
|
|
<td>{{ certification.certified_by }}</td>
|
|
|
|
<td>{{ certification.date }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
2022-02-15 17:12:06 -05:00
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|