mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-10-14 02:31:58 +00:00
enhance modals and terms of use html
This commit is contained in:
@@ -2,40 +2,19 @@
|
||||
|
||||
{% 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>
|
||||
<h1 id="title">{{ title }}</h1>
|
||||
|
||||
<ul class="tabs tabs-fixed-width z-depth-1">
|
||||
<li class="tab"><a class="active" href="#terms-of-use-page-content-german">German</a></li>
|
||||
<li class="tab"><a href="#terms-of-use-page-content-english">English</a></li>
|
||||
</ul>
|
||||
|
||||
<div id="terms-of-use-page-content-german">
|
||||
{% include "main/_terms_of_use/german.html.j2" %}
|
||||
</div>
|
||||
|
||||
<div id="terms-of-use-page-content-english">
|
||||
{% include "main/_terms_of_use/english.html.j2" %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock page_content %}
|
||||
|
||||
{% block scripts %}
|
||||
{{ super() }}
|
||||
<script>
|
||||
let languagePageSwitch = document.querySelector('#terms-of-use-page-switch');
|
||||
let termsOfUsePageContent = document.querySelectorAll('.terms-of-use-page-content');
|
||||
languagePageSwitch.addEventListener('change', function() {
|
||||
termsOfUsePageContent.forEach(content => {
|
||||
content.classList.toggle('hide');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock scripts %}
|
||||
|
Reference in New Issue
Block a user