Clean-up templates

This commit is contained in:
Aarni Halinen
2022-08-03 22:57:19 +03:00
parent f51d71e045
commit 30f59c36fb
24 changed files with 28 additions and 419 deletions
+2 -1
View File
@@ -7,6 +7,7 @@
<link rel="stylesheet" href="{% static "ohlhafv/css/base.css" %}">
<link rel="stylesheet" href="{% static "ohlhafv/css/header.css" %}">
<link rel="stylesheet" href="{% static "ohlhafv/css/nav.css" %}">
<link rel="stylesheet" href="{% static "ohlhafv/css/footer.css" %}">
{% endblock styles %}
{% block body %}
@@ -22,7 +23,7 @@
{% endblock %}
{% block footer %}
{% include "ohlhafv/footer.html" %}
{% include "footer.html" %}
{% endblock footer %}
{% endblock body %}
-24
View File
@@ -1,24 +0,0 @@
{% load i18n %}
{% load static %}
<link rel="stylesheet" href="{% static "ohlhafv/css/footer.css" %}">
<footer style="text-align: center">
<div>
<form class="lang-form form" action="{% url 'set_language' %}" method="post">{% csrf_token %}
<span>
<input name="next" type="hidden" value="{{ redirect_to }}" />
<select onchange="this.form.submit()" class="lang-select form-control" name="language">
{% get_current_language as LANGUAGE_CODE %}
{% get_available_languages as LANGUAGES %}
{% get_language_info_list for LANGUAGES as languages %}
{% for language in languages %}
<option value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} selected="selected"{% endif %}>
{{ language.name_local }} ({{ language.code }})
</option>
{% endfor %}
</select>
</span>
</form>
<span>{% trans "Copyright Aalto-yliopiston Sähköinsinöörikilta ry" %} {% now 'Y' %}</span>
</div>
</footer>