Skip to content
Snippets Groups Projects
Commit 568ffb77 authored by Julian's avatar Julian
Browse files

Move tabs into navbar

parent 2c8668e6
No related branches found
No related tags found
1 merge request!236Resolve "Improve week view for mobile devices (size s)"
......@@ -11,6 +11,35 @@
<link rel="stylesheet" href="{% static 'css/alsijil/week_view.css' %}"/>
{% endblock %}
{% block nav_content %}
{% if lesson_periods %}
<div class="">
<ul class="tabs tabs-transparent tabs-icons tabs-fixed-width">
<li class="tab col">
<a class="active" href="#week-overview">
<i class="material-icons">speaker_notes</i>
{% trans "Lesson documentations" %}
</a>
</li>
<li class="tab col">
<a href="#personal-notes">
<i class="material-icons">people</i>
{% trans "Persons" %}
</a>
</li>
{% if group_roles %}
<li class="tab col">
<a href="#group-roles">
<i class="material-icons">assignment_ind</i>
{% trans "Group roles" %}
</a>
</li>
{% endif %}
</ul>
</div>
{% endif %}
{% endblock %}
{% block content %}
<script type="text/javascript" src="{% static "js/helper.js" %}"></script>
{{ week_select|json_script:"week_select" }}
......@@ -63,21 +92,6 @@
{% if lesson_periods %}
<div class="row">
<div class="col s12">
<ul class="tabs">
<li class="tab col">
<a class="active" href="#week-overview">{% trans "Lesson documentations" %}</a>
</li>
<li class="tab col">
<a href="#personal-notes">{% trans "Personal notes" %}</a>
</li>
{% if group_roles %}
<li class="tab col">
<a href="#group-roles">{% trans "Group roles" %}</a>
</li>
{% endif %}
</ul>
</div>
<div class="col s12" id="week-overview">
{% for weekday, objects in regrouped_objects.items %}
{% with weekdays|get_dict:objects.0.weekday as advanced_weekday %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment