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

Use semantically correct heading levels

parent 7f081188
No related branches found
No related tags found
1 merge request!203Resolve "Use correct semantic html elements"
...@@ -10,39 +10,40 @@ ...@@ -10,39 +10,40 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
{% if next_lesson_person or prev_lesson_person or lesson_documentation %} <h1>
<div class="row no-margin"> {% if next_lesson_person or prev_lesson_person or lesson_documentation %}
<div class="col s12 no-padding"> <div class="row no-margin">
{# Back to week view #} <div class="col s12 no-padding">
{% if back_to_week_url %} {# Back to week view #}
<a href="{{ back_to_week_url }}" {% if back_to_week_url %}
class="btn primary-color waves-light waves-effect alsijil-top-button"> <a href="{{ back_to_week_url }}"
<i class="material-icons left">chevron_left</i> {% trans "Back to week view" %} class="btn primary-color waves-light waves-effect alsijil-top-button">
</a> <i class="material-icons left">chevron_left</i> {% trans "Back to week view" %}
{% endif %} </a>
{% endif %}
{# Next lesson #}
{% if prev_lesson_person %} {# Next lesson #}
<a class="btn primary waves-effect waves-light alsijil-top-button" {% if prev_lesson_person %}
href="{% url "lesson_period" prev_lesson_person.week.year prev_lesson_person.week.week prev_lesson_person.id %}"> <a class="btn primary waves-effect waves-light alsijil-top-button"
href="{% url " lesson_period" prev_lesson_person.week.year prev_lesson_person.week.week prev_lesson_person.id %}">
<i class="material-icons left">arrow_back</i> <i class="material-icons left">arrow_back</i>
{% trans "My previous lesson" %} {% trans "My previous lesson" %}
</a> </a>
{% endif %} {% endif %}
{# Previous lesson #} {# Previous lesson #}
{% if next_lesson_person %} {% if next_lesson_person %}
<a class="btn primary right waves-effect waves-light alsijil-top-button" <a class="btn primary right waves-effect waves-light alsijil-top-button"
href="{% url "lesson_period" next_lesson_person.week.year next_lesson_person.week.week next_lesson_person.id %}"> href="{% url " lesson_period" next_lesson_person.week.year next_lesson_person.week.week next_lesson_person.id %}">
<i class="material-icons right">arrow_forward</i> <i class="material-icons right">arrow_forward</i>
{% trans "My next lesson" %} {% trans "My next lesson" %}
</a> </a>
{% endif %} {% endif %}
</div>
</div> </div>
</div> {% endif %}
{% endif %}
<h4>
{% if register_object.label_ == "event" %} {% if register_object.label_ == "event" %}
{{ register_object.date_start }} {{ register_object.period_from.period }}.–{{ register_object.date_end }} {{ register_object.date_start }} {{ register_object.period_from.period }}.–{{ register_object.date_end }}
{{ register_object.period_to.period }}., {{ register_object.period_to.period }}.,
...@@ -63,7 +64,7 @@ ...@@ -63,7 +64,7 @@
<span class="right"> <span class="right">
{% include "alsijil/partials/lesson_status_icon.html" with register_object=register_object css_class="medium" %} {% include "alsijil/partials/lesson_status_icon.html" with register_object=register_object css_class="medium" %}
</span> </span>
</h4> </h1>
<br/> <br/>
{% has_perm "alsijil.view_lessondocumentation_rule" user register_object as can_view_lesson_documentation %} {% has_perm "alsijil.view_lessondocumentation_rule" user register_object as can_view_lesson_documentation %}
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
<!-- Personal Note Tab --> <!-- Personal Note Tab -->
<div class="col s12" id="personal-notes"> <div class="col s12" id="personal-notes">
<div class="col s12" id="overview"> <div class="col s12" id="overview">
<h5>{% trans "Relevant personal notes" %}</h5> <h2>{% trans "Relevant personal notes" %}</h2>
<form class="modal" id="filter-modal"> <form class="modal" id="filter-modal">
<figure class="modal-content"> <figure class="modal-content">
<figcaption>{% trans "Filter personal notes" %}</figcaption> <figcaption>{% trans "Filter personal notes" %}</figcaption>
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
<!-- Statistics Tab --> <!-- Statistics Tab -->
{% if stats %} {% if stats %}
<div class="col s12" id="statistics"> <div class="col s12" id="statistics">
<h5>{% trans "Statistics on absences, tardiness and remarks" %}</h5> <h2>{% trans "Statistics on absences, tardiness and remarks" %}</h2>
<ul class="collapsible"> <ul class="collapsible">
{% for school_term, stat in stats %} {% for school_term, stat in stats %}
<li {% if forloop.first %}class="active"{% endif %}> <li {% if forloop.first %}class="active"{% endif %}>
......
...@@ -32,9 +32,9 @@ ...@@ -32,9 +32,9 @@
</a> </a>
</span> </span>
<h6>{{ group.name }} <h2>{{ group.name }}
<span class="chip">{{ group.school_term }}</span> <span class="chip">{{ group.school_term }}</span>
</h6> </h2>
<p class="show-on-active hide-on-med-and-up"> <p class="show-on-active hide-on-med-and-up">
<a class="btn primary-color waves-effect waves-light hundred-percent" <a class="btn primary-color waves-effect waves-light hundred-percent"
......
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