Skip to content
Snippets Groups Projects
Commit 11ca8266 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch '168-use-correct-semantic-html-elements' into 'master'

Resolve "Use correct semantic html elements"

Closes #168

See merge request !203
parents aa977a07 e3e13fa0
No related branches found
No related tags found
1 merge request!203Resolve "Use correct semantic html elements"
Pipeline #19198 canceled
Showing with 74 additions and 76 deletions
...@@ -12,6 +12,7 @@ Unreleased ...@@ -12,6 +12,7 @@ Unreleased
Changed Changed
~~~~~~~ ~~~~~~~
* Show 'Lesson documentations' tab on person overview only if the person is a teacher. * Show 'Lesson documentations' tab on person overview only if the person is a teacher.
* Use semantically correct html elements for headings and alerts.
Fixed Fixed
~~~~~ ~~~~~
......
...@@ -93,3 +93,9 @@ td.material-icons { ...@@ -93,3 +93,9 @@ td.material-icons {
.overflow-x-scroll { .overflow-x-scroll {
overflow-x: scroll; overflow-x: scroll;
} }
figure.modal-content figcaption {
font-weight: 300;
font-size: 2.28rem;
line-height: 110%;
}
...@@ -21,15 +21,13 @@ ...@@ -21,15 +21,13 @@
<i class="material-icons left">date_range</i> <i class="material-icons left">date_range</i>
{{ form_data.date_start }}, {{ form_data.from_period }}. – {{ form_data.date_end }}, {{ form_data.to_period }}. {{ form_data.date_start }}, {{ form_data.from_period }}. – {{ form_data.date_end }}, {{ form_data.to_period }}.
{% if form_data.date_start != form_data.date_end %} {% if form_data.date_start != form_data.date_end %}
<div class="alert warning"> <figure class="alert warning">
<div> <i class="material-icons left">warning</i>
<i class="material-icons left">warning</i> {% blocktrans %}
{% blocktrans %} As the length of this absence is longer than one day,
As the length of this absence is longer than one day, please double check the correctness of your entry.
please double check the correctness of your entry. {% endblocktrans %}
{% endblocktrans %} </figure>
</div>
</div>
{% endif %} {% endif %}
</div> </div>
<div class="collection-item"> <div class="collection-item">
......
...@@ -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,12 +62,12 @@ ...@@ -62,12 +62,12 @@
<!-- 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">
<div class="modal-content"> <figure class="modal-content">
<h4>{% trans "Filter personal notes" %}</h4> <figcaption>{% trans "Filter personal notes" %}</figcaption>
{% form form=personal_note_filter_form %}{% endform %} {% form form=personal_note_filter_form %}{% endform %}
</div> </figure>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn-flat secondary-color-text waves-effect waves-ripple" id="remove-filters"> <button type="button" class="btn-flat secondary-color-text waves-effect waves-ripple" id="remove-filters">
<i class="material-icons left">clear</i>{% trans "Clear all filters" %} <i class="material-icons left">clear</i>{% trans "Clear all filters" %}
...@@ -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"
......
{% load i18n %} {% load i18n %}
<div class="alert warning"> <figure class="alert warning">
<p> <i class="material-icons left">warning</i>
<i class="material-icons left">warning</i> {% blocktrans %}
{% blocktrans %} This function should only be used to define alternatives to the default excuse which also will be counted extra.
This function should only be used to define alternatives to the default excuse which also will be counted extra. Don't use this to create a default excuse or if you don't divide between different types of excuse.
Don't use this to create a default excuse or if you don't divide between different types of excuse. {% endblocktrans %}
{% endblocktrans %} </figure>
</p>
</div>
...@@ -36,12 +36,10 @@ ...@@ -36,12 +36,10 @@
{% endfor %} {% endfor %}
</div> </div>
<div class="alert primary"> <figure class="alert primary">
<div> <i class="material-icons left">info</i>
<i class="material-icons left">info</i> {% blocktrans %}
{% blocktrans %} You can get some additional actions for each group role assignment if you click on the name of the
You can get some additional actions for each group role assignment if you click on the name of the corresponding person.
corresponding person. {% endblocktrans %}
{% endblocktrans %} </figure>
</div> \ No newline at end of file
</div>
\ No newline at end of file
{% load i18n %} {% load i18n %}
<div class="alert warning"> <figure class="alert warning">
<p> <i class="material-icons left">warning</i>
<i class="material-icons left">warning</i> {% blocktrans %}
{% blocktrans %} This function should only be used to define alternatives to the default excuse which also will be counted extra.
This function should only be used to define alternatives to the default excuse which also will be counted extra. Don't use this to create a default excuse or if you don't divide between different types of excuse.
Don't use this to create a default excuse or if you don't divide between different types of excuse. {% endblocktrans %}
{% endblocktrans %} </figure>
</p>
</div>
{% load data_helpers time_helpers i18n rules %} {% load data_helpers time_helpers i18n rules %}
{% if not persons %} {% if not persons %}
<div class="alert primary"> <figure class="alert primary">
<div> <i class="material-icons left">warning</i>
<i class="material-icons left">warning</i> {% blocktrans %}No students available.{% endblocktrans %}
{% blocktrans %}No students available.{% endblocktrans %} </figure>
</div>
</div>
{% else %} {% else %}
<table class="highlight responsive-table"> <table class="highlight responsive-table">
<thead> <thead>
......
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