Reapply current djlint
This commit is contained in:
parent
74a5289dd8
commit
52fad7ccb0
@ -1,15 +1,12 @@
|
|||||||
{% extends "base.dj.html" %}
|
{% extends "base.dj.html" %}
|
||||||
|
|
||||||
{% block title %}{{ selected_report }} | Door Controls | CMS{% endblock %}
|
{% block title %}{{ selected_report }} | Door Controls | CMS{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
{% for report_name, report_url in report_types %}
|
{% for report_name, report_url in report_types %}
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link{% if report_name == selected_report %} active{% endif %}"
|
<a class="nav-link{% if report_name == selected_report %} active{% endif %}"
|
||||||
href="{{ report_url }}?{{ query_params }}">
|
href="{{ report_url }}?{{ query_params }}">{{ report_name }}</a>
|
||||||
{{ report_name }}
|
|
||||||
</a>
|
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
@ -70,13 +67,12 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<nav aria-label="Page navigation">
|
<nav aria-label="Page navigation">
|
||||||
<div class="text-center mb-2">
|
<div class="text-center mb-2">Showing {{ page_obj.object_list|length }} of {{ paginator.count }} results.</div>
|
||||||
Showing {{ page_obj.object_list|length }} of {{ paginator.count }} results.
|
|
||||||
</div>
|
|
||||||
<ul class="pagination justify-content-center">
|
<ul class="pagination justify-content-center">
|
||||||
{% if page_obj.has_previous %}
|
{% if page_obj.has_previous %}
|
||||||
<li class="page-item">
|
<li class="page-item">
|
||||||
<a class="page-link" href="?{{ query_params }}&page={{ page_obj.previous_page_number }}">Previous</a>
|
<a class="page-link"
|
||||||
|
href="?{{ query_params }}&page={{ page_obj.previous_page_number }}">Previous</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for page_num in paginator_range %}
|
{% for page_num in paginator_range %}
|
||||||
@ -86,7 +82,8 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if page_obj.has_next %}
|
{% if page_obj.has_next %}
|
||||||
<li class="page-item">
|
<li class="page-item">
|
||||||
<a class="page-link" href="?{{ query_params }}&page={{ page_obj.next_page_number }}">Next</a>
|
<a class="page-link"
|
||||||
|
href="?{{ query_params }}&page={{ page_obj.next_page_number }}">Next</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -16,7 +16,11 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>{{ department.name }}</td>
|
<td>{{ department.name }}</td>
|
||||||
<td>{{ department.shop_lead_flag.members.all|join:", " }}</td>
|
<td>{{ department.shop_lead_flag.members.all|join:", " }}</td>
|
||||||
<td>{% if department.list_address is not none %}<a href="mailto:{{ department.list_address }}">{{ department.list_address }}</a>{% endif %}</td>
|
<td>
|
||||||
|
{% if department.list_address is not none %}
|
||||||
|
<a href="mailto:{{ department.list_address }}">{{ department.list_address }}</a>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -25,8 +25,8 @@
|
|||||||
{% for certification in certifications %}
|
{% for certification in certifications %}
|
||||||
{% with current=certification.certification_version.is_current %}
|
{% with current=certification.certification_version.is_current %}
|
||||||
{% if current or show_outdated %}
|
{% if current or show_outdated %}
|
||||||
<tr {% if not current %} class="table-warning"{% endif %}>
|
<tr {% if not current %}class="table-warning"{% endif %}>
|
||||||
<td {% if not current %} class="text-decoration-line-through"{% endif %}>
|
<td {% if not current %}class="text-decoration-line-through"{% endif %}>
|
||||||
{{ certification.certification_version.definition.name }}
|
{{ certification.certification_version.definition.name }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -127,7 +127,8 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block footer %}
|
{% block footer %}
|
||||||
<script type="text/javascript" src="{% static 'admin/js/vendor/jquery/jquery.js' %}"></script>
|
<script type="text/javascript"
|
||||||
|
src="{% static 'admin/js/vendor/jquery/jquery.js' %}"></script>
|
||||||
<script>
|
<script>
|
||||||
// reset form when dropdown menu is closed
|
// reset form when dropdown menu is closed
|
||||||
document.addEventListener('hide.bs.dropdown', (e) => {
|
document.addEventListener('hide.bs.dropdown', (e) => {
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
<!doctype html>
|
|
||||||
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
@ -51,7 +52,7 @@
|
|||||||
{% for message in messages %}
|
{% for message in messages %}
|
||||||
{# TODO: should use tags correctly for bootstrap alerts #}
|
{# TODO: should use tags correctly for bootstrap alerts #}
|
||||||
<div role="alert"
|
<div role="alert"
|
||||||
class="alert alert-info alert-dismissible fade show {% if message.tags %} {{ message.tags }}{% endif %}">
|
class="alert alert-info alert-dismissible fade show {% if message.tags %}{{ message.tags }}{% endif %}">
|
||||||
{{ message }}
|
{{ message }}
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="btn-close"
|
class="btn-close"
|
||||||
|
Loading…
Reference in New Issue
Block a user