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

Merge branch 'prepare-release-2.0rc1' into 'release/2.0'

Prepare release 2.0rc1

See merge request !205
parents 180643ab 2bed8f95
No related branches found
No related tags found
1 merge request!205Prepare release 2.0rc1
Pipeline #18866 passed
Showing
with 3369 additions and 3016 deletions
......@@ -6,6 +6,20 @@ All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog`_,
and this project adheres to `Semantic Versioning`_.
`2.0rc1`_ - 2021-06-23
----------------------
Changed
~~~~~~~
* Show 'Lesson documentations' tab on person overview only if the person is a teacher.
* Use semantically correct html elements for headings and alerts.
Fixed
~~~~~
* Preference section verbose names were displayed in server language and not
user language (fixed by using gettext_lazy).
`2.0b0`_ - 2021-05-21
---------------------
......@@ -126,3 +140,4 @@ Fixed
.. _1.0a3: https://edugit.org/AlekSIS/Official/AlekSIS-App-Alsijil/-/tags/1.0a3
.. _2.0a1: https://edugit.org/AlekSIS/Official/AlekSIS-App-Alsijil/-/tags/2.0a1
.. _2.0b0: https://edugit.org/AlekSIS/Official/AlekSIS-App-Alsijil/-/tags/2.0b0
.. _2.0rc1: https://edugit.org/AlekSIS/Official/AlekSIS-App-Alsijil/-/tags/2.0rc1
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
from django.core.exceptions import ValidationError
from django.utils.translation import gettext as _
from django.utils.translation import gettext_lazy as _
from dynamic_preferences.preferences import Section
from dynamic_preferences.types import BooleanPreference, IntegerPreference
......
......@@ -93,3 +93,9 @@ td.material-icons {
.overflow-x-scroll {
overflow-x: scroll;
}
figure.modal-content figcaption {
font-weight: 300;
font-size: 2.28rem;
line-height: 110%;
}
......@@ -21,15 +21,13 @@
<i class="material-icons left">date_range</i>
{{ 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 %}
<div class="alert warning">
<div>
<i class="material-icons left">warning</i>
{% blocktrans %}
As the length of this absence is longer than one day,
please double check the correctness of your entry.
{% endblocktrans %}
</div>
</div>
<figure class="alert warning">
<i class="material-icons left">warning</i>
{% blocktrans %}
As the length of this absence is longer than one day,
please double check the correctness of your entry.
{% endblocktrans %}
</figure>
{% endif %}
</div>
<div class="collection-item">
......
......@@ -10,39 +10,40 @@
{% endblock %}
{% block content %}
{% if next_lesson_person or prev_lesson_person or lesson_documentation %}
<div class="row no-margin">
<div class="col s12 no-padding">
{# Back to week view #}
{% if back_to_week_url %}
<a href="{{ back_to_week_url }}"
class="btn primary-color waves-light waves-effect alsijil-top-button">
<i class="material-icons left">chevron_left</i> {% trans "Back to week view" %}
</a>
{% endif %}
{# Next lesson #}
{% if prev_lesson_person %}
<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 %}">
<h1>
{% if next_lesson_person or prev_lesson_person or lesson_documentation %}
<div class="row no-margin">
<div class="col s12 no-padding">
{# Back to week view #}
{% if back_to_week_url %}
<a href="{{ back_to_week_url }}"
class="btn primary-color waves-light waves-effect alsijil-top-button">
<i class="material-icons left">chevron_left</i> {% trans "Back to week view" %}
</a>
{% endif %}
{# Next lesson #}
{% if prev_lesson_person %}
<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>
{% trans "My previous lesson" %}
</a>
{% endif %}
</a>
{% endif %}
{# Previous lesson #}
{% if next_lesson_person %}
<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 %}">
{# Previous lesson #}
{% if next_lesson_person %}
<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 %}">
<i class="material-icons right">arrow_forward</i>
{% trans "My next lesson" %}
</a>
{% endif %}
</a>
{% endif %}
</div>
</div>
</div>
{% endif %}
{% endif %}
<h4>
{% if register_object.label_ == "event" %}
{{ register_object.date_start }} {{ register_object.period_from.period }}.–{{ register_object.date_end }}
{{ register_object.period_to.period }}.,
......@@ -63,7 +64,7 @@
<span class="right">
{% include "alsijil/partials/lesson_status_icon.html" with register_object=register_object css_class="medium" %}
</span>
</h4>
</h1>
<br/>
{% has_perm "alsijil.view_lessondocumentation_rule" user register_object as can_view_lesson_documentation %}
......
......@@ -62,12 +62,12 @@
<!-- Personal Note Tab -->
<div class="col s12" id="personal-notes">
<div class="col s12" id="overview">
<h5>{% trans "Relevant personal notes" %}</h5>
<h2>{% trans "Relevant personal notes" %}</h2>
<form class="modal" id="filter-modal">
<div class="modal-content">
<h4>{% trans "Filter personal notes" %}</h4>
<figure class="modal-content">
<figcaption>{% trans "Filter personal notes" %}</figcaption>
{% form form=personal_note_filter_form %}{% endform %}
</div>
</figure>
<div class="modal-footer">
<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" %}
......@@ -116,7 +116,7 @@
<!-- Statistics Tab -->
{% if stats %}
<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">
{% for school_term, stat in stats %}
<li {% if forloop.first %}class="active"{% endif %}>
......
......@@ -32,9 +32,9 @@
</a>
</span>
<h6>{{ group.name }}
<h2>{{ group.name }}
<span class="chip">{{ group.school_term }}</span>
</h6>
</h2>
<p class="show-on-active hide-on-med-and-up">
<a class="btn primary-color waves-effect waves-light hundred-percent"
......
{% load i18n %}
<div class="alert warning">
<p>
<i class="material-icons left">warning</i>
{% blocktrans %}
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.
{% endblocktrans %}
</p>
</div>
<figure class="alert warning">
<i class="material-icons left">warning</i>
{% blocktrans %}
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.
{% endblocktrans %}
</figure>
......@@ -36,12 +36,10 @@
{% endfor %}
</div>
<div class="alert primary">
<div>
<i class="material-icons left">info</i>
{% blocktrans %}
You can get some additional actions for each group role assignment if you click on the name of the
corresponding person.
{% endblocktrans %}
</div>
</div>
\ No newline at end of file
<figure class="alert primary">
<i class="material-icons left">info</i>
{% blocktrans %}
You can get some additional actions for each group role assignment if you click on the name of the
corresponding person.
{% endblocktrans %}
</figure>
\ No newline at end of file
{% load i18n %}
<div class="alert warning">
<p>
<i class="material-icons left">warning</i>
{% blocktrans %}
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.
{% endblocktrans %}
</p>
</div>
<figure class="alert warning">
<i class="material-icons left">warning</i>
{% blocktrans %}
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.
{% endblocktrans %}
</figure>
{% load data_helpers time_helpers i18n rules %}
{% if not persons %}
<div class="alert primary">
<div>
<i class="material-icons left">warning</i>
{% blocktrans %}No students available.{% endblocktrans %}
</div>
</div>
<figure class="alert primary">
<i class="material-icons left">warning</i>
{% blocktrans %}No students available.{% endblocktrans %}
</figure>
{% else %}
<table class="highlight responsive-table">
<thead>
......
......@@ -957,8 +957,8 @@ def overview_person(request: HttpRequest, id_: Optional[int] = None) -> HttpResp
filter_dict["person"] = person
context["filter_form"] = filter_form
register_objects = generate_list_of_all_register_objects(filter_dict)
if register_objects:
if request.user.person.is_teacher:
register_objects = generate_list_of_all_register_objects(filter_dict)
table = RegisterObjectTable(register_objects)
items_per_page = request.user.person.preferences[
"alsijil__register_objects_table_items_per_page"
......
This diff is collapsed.
[tool.poetry]
name = "AlekSIS-App-Alsijil"
version = "2.0b0"
version = "2.0rc1"
packages = [
{ include = "aleksis" }
]
......@@ -41,8 +41,8 @@ secondary = true
[tool.poetry.dependencies]
python = "^3.9"
aleksis-core = "^2.0b0"
aleksis-app-chronos = "^2.0b0"
aleksis-core = "^2.0rc"
aleksis-app-chronos = "^2.0rc"
[tool.poetry.dev-dependencies]
aleksis-builddeps = "*"
......
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