-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
1,217 additions
and
1,207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,6 @@ select = [ | |
"I", | ||
"W" | ||
] | ||
|
||
[tool.djlint] | ||
profile = "django" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{% extends "base_error.html" %} | ||
{% load i18n %} | ||
|
||
{% block error_title %}{% trans "Bad request (400)" %}{% endblock %} | ||
{% block error_message %}{% trans "The server cannot process the request due to client error." %}{% endblock %} | ||
{% block error_title %} | ||
{% trans "Bad request (400)" %} | ||
{% endblock %} | ||
{% block error_message %} | ||
{% trans "The server cannot process the request due to client error." %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{% extends "base_error.html" %} | ||
{% load i18n %} | ||
|
||
{% block error_title %}{% trans "Forbidden (403)" %}{% endblock %} | ||
{% block error_message %}{% trans "You do not have permission to access on this server." %}{% endblock %} | ||
{% block error_title %} | ||
{% trans "Forbidden (403)" %} | ||
{% endblock %} | ||
{% block error_message %} | ||
{% trans "You do not have permission to access on this server." %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{% extends "base_error.html" %} | ||
{% load i18n %} | ||
|
||
{% block error_title %}{% trans "Not found (404)" %}{% endblock %} | ||
{% block error_message %}{% trans "The requested page was not found on this server." %}{% endblock %} | ||
{% block error_title %} | ||
{% trans "Not found (404)" %} | ||
{% endblock %} | ||
{% block error_message %} | ||
{% trans "The requested page was not found on this server." %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
{% extends "base_error.html" %} | ||
{% load i18n %} | ||
|
||
{% block error_title %}{% trans "Internal Server Error (500)" %}{% endblock %} | ||
{% block error_title %} | ||
{% trans "Internal Server Error (500)" %} | ||
{% endblock %} | ||
{% block error_message %} | ||
{% trans "The server encountered an unexpected condition that prevented it from fulfilling the request." %} | ||
{% trans "The server encountered an unexpected condition that prevented it from fulfilling the request." %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
<li class="nav-item me-1"> | ||
<a href="{% url view %}" | ||
{% if current_page == view %} class="nav-link active px-3" aria-current="page" | ||
{% else %} class="nav-link px-3" | ||
{% endif %}> | ||
{% if current_page == view %} class="nav-link active px-3" aria-current="page" {% else %} class="nav-link px-3" {% endif %}> | ||
{{ label }} | ||
</a> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{% load i18n %} | ||
{% spaceless %} | ||
<div class="collapse navbar-collapse" id="navbarPills" hx-swap-oob="true"> | ||
<ul class="nav-pills navbar-nav me-auto mb-2 mb-lg-0"> | ||
{% include "app/_nav_item.html" with view="home" label=_("Home") %} | ||
{% include "app/_nav_item.html" with view="search" label=_("Search") %} | ||
{% include "app/_nav_item.html" with view="institutions" label=_("Institutions") %} | ||
{% include "app/_nav_item.html" with view="projects" label=_("Projects") %} | ||
{% include "app/_nav_item.html" with view="documents" label=_("Documents") %} | ||
{% include "app/_nav_item.html" with view="languages" label=_("Languages") %} | ||
{% include "app/_nav_item.html" with view="subjects" label=_("Subjects") %} | ||
</ul> | ||
</div> | ||
<div class="collapse navbar-collapse" id="navbarPills" hx-swap-oob="true"> | ||
<ul class="nav-pills navbar-nav me-auto mb-2 mb-lg-0"> | ||
{% include "app/_nav_item.html" with view="home" label=_("Home") %} | ||
{% include "app/_nav_item.html" with view="search" label=_("Search") %} | ||
{% include "app/_nav_item.html" with view="institutions" label=_("Institutions") %} | ||
{% include "app/_nav_item.html" with view="projects" label=_("Projects") %} | ||
{% include "app/_nav_item.html" with view="documents" label=_("Documents") %} | ||
{% include "app/_nav_item.html" with view="languages" label=_("Languages") %} | ||
{% include "app/_nav_item.html" with view="subjects" label=_("Subjects") %} | ||
</ul> | ||
</div> | ||
{% endspaceless %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
{% spaceless %} | ||
<fieldset class="checkbox-container form-control mb-4"> | ||
<legend>{{ field.label }}</legend> | ||
<details {% if field.value %}open{% endif%}>{# open if currently filtering on this field #} | ||
<summary>{{ summary }}</summary> | ||
{% for checkbox in field %} | ||
<div class="form-check"> | ||
<label>{{ checkbox.tag }}{{ checkbox.choice_label }}</label> | ||
</div> | ||
{% endfor %} | ||
</details> | ||
</fieldset> | ||
<fieldset class="checkbox-container form-control mb-4"> | ||
<legend>{{ field.label }}</legend> | ||
<details {% if field.value %}open{% endif %}> | ||
{# open if currently filtering on this field #} | ||
<summary>{{ summary }}</summary> | ||
{% for checkbox in field %} | ||
<div class="form-check"> | ||
<label>{{ checkbox.tag }}{{ checkbox.choice_label }}</label> | ||
</div> | ||
{% endfor %} | ||
</details> | ||
</fieldset> | ||
{% endspaceless %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
{% load i18n %} | ||
{% spaceless %} | ||
<form method="GET" action="{% url view %}" class="mb-3"> | ||
<div class="d-flex flex-wrap gap-2"> | ||
<div class="form-group flex-fill mb-2"> | ||
<label for="subject">{% trans "Subject" %}</label> | ||
<select id="subject" name="subject" class="form-select"> | ||
<option value="">{% trans "All Subjects" %}</option> | ||
{% for subject in subjects %} | ||
<option value="{{ subject.id }}" | ||
{% if request.GET.subject == subject.id|stringformat:"s" %}selected{% endif %}> | ||
{{ subject.name }} | ||
</option> | ||
{% endfor %} | ||
</select> | ||
<form method="GET" action="{% url view %}" class="mb-3"> | ||
<div class="d-flex flex-wrap gap-2"> | ||
<div class="form-group flex-fill mb-2"> | ||
<label for="subject">{% trans "Subject" %}</label> | ||
<select id="subject" name="subject" class="form-select"> | ||
<option value="">{% trans "All Subjects" %}</option> | ||
{% for subject in subjects %} | ||
<option value="{{ subject.id }}" | ||
{% if request.GET.subject == subject.id|stringformat:"s" %}selected{% endif %}> | ||
{{ subject.name }} | ||
</option> | ||
{% endfor %} | ||
</select> | ||
</div> | ||
<div class="form-group flex-fill mb-2"> | ||
<label for="language">{% trans "Language" %}</label> | ||
<select id="language" name="language" class="form-select"> | ||
<option value="">{% trans "All Languages" %}</option> | ||
{% for language in languages %} | ||
<option value="{{ language.id }}" | ||
{% if request.GET.language == language.id|stringformat:"s" %}selected{% endif %}> | ||
{{ language.name }} | ||
</option> | ||
{% endfor %} | ||
</select> | ||
</div> | ||
<div class="form-group flex-fill mb-2"> | ||
<label for="institution">{% trans "Institution" %}</label> | ||
<select id="institution" name="institution" class="form-select"> | ||
<option value="">{% trans "All Institutions" %}</option> | ||
{% for institution in institutions %} | ||
<option value="{{ institution.id }}" | ||
{% if request.GET.institution == institution.id|stringformat:"s" %}selected{% endif %}> | ||
{{ institution }} | ||
</option> | ||
{% endfor %} | ||
</select> | ||
</div> | ||
</div> | ||
<div class="form-group flex-fill mb-2"> | ||
<label for="language">{% trans "Language" %}</label> | ||
<select id="language" name="language" class="form-select"> | ||
<option value="">{% trans "All Languages" %}</option> | ||
{% for language in languages %} | ||
<option value="{{ language.id }}" | ||
{% if request.GET.language == language.id|stringformat:"s" %}selected{% endif %}> | ||
{{ language.name }} | ||
</option> | ||
{% endfor %} | ||
</select> | ||
<div class="d-flex flex-wrap"> | ||
<button type="submit" class="btn btn-primary mt-2 me-2">{% trans "Filter" %}</button> | ||
<a href="{% url view %}" class="btn btn-secondary mt-2">{% trans "Reset" %}</a> | ||
</div> | ||
<div class="form-group flex-fill mb-2"> | ||
<label for="institution">{% trans "Institution" %}</label> | ||
<select id="institution" name="institution" class="form-select"> | ||
<option value="">{% trans "All Institutions" %}</option> | ||
{% for institution in institutions %} | ||
<option value="{{ institution.id }}" | ||
{% if request.GET.institution == institution.id|stringformat:"s" %}selected{% endif %}> | ||
{{ institution }} | ||
</option> | ||
{% endfor %} | ||
</select> | ||
</div> | ||
</div> | ||
<div class="d-flex flex-wrap"> | ||
<button type="submit" class="btn btn-primary mt-2 me-2">{% trans "Filter" %}</button> | ||
<a href="{% url view %}" class="btn btn-secondary mt-2">{% trans "Reset" %}</a> | ||
</div> | ||
</form> | ||
</form> | ||
{% endspaceless %} |
Oops, something went wrong.