-
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
32 changed files
with
1,023 additions
and
1,023 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
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,8 @@ | ||
<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,13 @@ | ||
{% 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 %} |
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 |
---|---|---|
|
@@ -3,58 +3,58 @@ | |
{% load i18n %} | ||
|
||
{% block content %} | ||
{% spaceless %} | ||
<div class="m-4"> | ||
<div class="card p-3"> | ||
<h1 id="main-heading" class="card-title">{% trans "Contact us" %}</h1> | ||
<div class="row"> | ||
<div class="col-md-4 contact-info"> | ||
<h2 class="fs-4">{% trans "Contact details for more information" %}</h2> | ||
<p> | ||
{% blocktrans trimmed %} | ||
Juan Steyn<br> | ||
South African Centre for Digital Language Resources (SADiLaR)<br> | ||
North-West University<br> | ||
South Africa | ||
{% endblocktrans %} | ||
</p> | ||
<p><a href="tel:+27182852750">+27 (0)18 285-2750</a></p> | ||
<p><a href="mailto:[email protected]">[email protected]</a></p> | ||
</div> | ||
{% spaceless %} | ||
<div class="m-4"> | ||
<div class="card p-3"> | ||
<h1 id="main-heading" class="card-title">{% trans "Contact us" %}</h1> | ||
<div class="row"> | ||
<div class="col-md-4 contact-info"> | ||
<h2 class="fs-4">{% trans "Contact details for more information" %}</h2> | ||
<p> | ||
{% blocktrans trimmed %} | ||
Juan Steyn<br> | ||
South African Centre for Digital Language Resources (SADiLaR)<br> | ||
North-West University<br> | ||
South Africa | ||
{% endblocktrans %} | ||
</p> | ||
<p><a href="tel:+27182852750">+27 (0)18 285-2750</a></p> | ||
<p><a href="mailto:[email protected]">[email protected]</a></p> | ||
</div> | ||
|
||
<div class="col-md-4 contact-info"> | ||
<h2 class="fs-4">{% trans "Physical address" %}</h2> | ||
<address> | ||
{% blocktrans trimmed %} | ||
Buildings F16 C & F16 D<br> | ||
North-West University<br> | ||
Potchefstroom Campus<br> | ||
Potchefstroom<br> | ||
South Africa | ||
{% endblocktrans %} | ||
</address> | ||
<p> | ||
<a href="https://www.google.com/maps/place/26%C2%B041'13.8%22S+27%C2%B005'41.4%22E/@-26.687157,27.094845,17z/data=!3m1!4b1!4m4!3m3!8m2!3d-26.687157!4d27.094845?entry=ttu"> | ||
{% trans "Directions" %} | ||
</a> | ||
</p> | ||
</div> | ||
<div class="col-md-4 contact-info"> | ||
<h2 class="fs-4">{% trans "Physical address" %}</h2> | ||
<address> | ||
{% blocktrans trimmed %} | ||
Buildings F16 C & F16 D<br> | ||
North-West University<br> | ||
Potchefstroom Campus<br> | ||
Potchefstroom<br> | ||
South Africa | ||
{% endblocktrans %} | ||
</address> | ||
<p> | ||
<a href="https://www.google.com/maps/place/26%C2%B041'13.8%22S+27%C2%B005'41.4%22E/@-26.687157,27.094845,17z/data=!3m1!4b1!4m4!3m3!8m2!3d-26.687157!4d27.094845?entry=ttu"> | ||
{% trans "Directions" %} | ||
</a> | ||
</p> | ||
</div> | ||
|
||
<div class="col-md-4 contact-info"> | ||
<h2 class="fs-4">{% trans "Postal address" %}</h2> | ||
<address> | ||
{% blocktrans trimmed %} | ||
SADiLaR<br> | ||
Internal Box 340<br> | ||
Private bag X6001<br> | ||
Potchefstroom<br> | ||
South Africa<br> | ||
2520 | ||
{% endblocktrans %} | ||
</address> | ||
<div class="col-md-4 contact-info"> | ||
<h2 class="fs-4">{% trans "Postal address" %}</h2> | ||
<address> | ||
{% blocktrans trimmed %} | ||
SADiLaR<br> | ||
Internal Box 340<br> | ||
Private bag X6001<br> | ||
Potchefstroom<br> | ||
South Africa<br> | ||
2520 | ||
{% endblocktrans %} | ||
</address> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endspaceless %} | ||
{% endspaceless %} | ||
{% endblock content %} |
Oops, something went wrong.