Reapply current djlint

This commit is contained in:
Adam Goldsmith 2023-04-14 01:07:35 -04:00
parent 74a5289dd8
commit 52fad7ccb0
5 changed files with 18 additions and 15 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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) => {

View File

@ -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">