mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
41 lines
1.0 KiB
Django/Jinja
41 lines
1.0 KiB
Django/Jinja
{% extends "base.html.j2" %}
|
|
|
|
{% block page_content %}
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col s12">
|
|
<h1 id="title">{{ title }}</h1>
|
|
</div>
|
|
<div class="col s12">
|
|
<div class="switch">
|
|
<label>
|
|
DE
|
|
<input type="checkbox" id="terms-of-use-page-switch">
|
|
<span class="lever"></span>
|
|
EN
|
|
</label>
|
|
</div>
|
|
<br>
|
|
</div>
|
|
<div class="terms-of-use-page-content hide">
|
|
{% include "main/terms_of_use_en.html.j2" %}
|
|
</div>
|
|
<div class="terms-of-use-page-content">
|
|
{% include "main/terms_of_use_de.html.j2" %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock page_content %}
|
|
|
|
{% block scripts %}
|
|
<script>
|
|
let languageSwitch = document.querySelector('#terms-of-use-page-switch');
|
|
let termsOfUseContent = document.querySelectorAll('.terms-of-use-page-content');
|
|
languageSwitch.addEventListener('change', function() {
|
|
termsOfUseContent.forEach(content => {
|
|
content.classList.toggle('hide');
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock scripts %}
|