Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Alsijil
Merge requests
!88
Resolve "Check (responsive) design"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Check (responsive) design"
94-check-responsive-design
into
master
Overview
4
Commits
27
Pipelines
6
Changes
1
Merged
Julian
requested to merge
94-check-responsive-design
into
master
4 years ago
Overview
4
Commits
27
Pipelines
6
Changes
1
Expand
Closes
#94 (closed)
Closes
#100 (closed)
Closes
#101 (closed)
Edited
4 years ago
by
Jonathan Weth
0
0
Merge request reports
Viewing commit
5e04e796
Prev
Next
Show latest version
1 file
+
56
−
42
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
5e04e796
Add a button to go to the week_view of a group of a certain lesson
· 5e04e796
Julian
authored
4 years ago
aleksis/apps/alsijil/templates/alsijil/class_register/lesson.html
+
56
−
42
Options
@@ -10,6 +10,13 @@
{% endblock %}
{% block page_title %}
{% with lesson_period.get_lesson_documentation as lesson_doc %}
<a
href=
"{% url "
week_view_by_week
"
lesson_doc.year
lesson_doc.week
"
group
"
lesson_period.lesson.groups.all.0.pk
%}"
class=
"btn-flat primary-color-text waves-light waves-effect btn-large"
>
<i
class=
"material-icons center"
>
chevron_left
</i>
</a>
{% endwith %}
{{ day }}, {% blocktrans with period=lesson_period.period.period %}{{ period }}. period{% endblocktrans %} –
{% for group in lesson_period.get_groups.all %}
@@ -70,6 +77,12 @@
<a
href=
"#personal-notes"
>
{% trans "Personal notes" %}
</a>
</li>
{% endif %}
{% has_perm "alsijil.view_lessondocumentation" user lesson_period.prev as can_view_prev_lesson_documentation %}
{% if lesson_period.prev.get_lesson_documentation and can_view_prev_lesson_documentation %}
<li
class=
"tab"
>
<a
href=
"#previous-lesson"
>
{% trans "Previous lesson" %}
</a>
</li>
{% endif %}
<li
class=
"tab"
>
<a
href=
"#version-history"
>
{% trans "Change history" %}
</a>
</li>
@@ -77,12 +90,52 @@
</div>
<div
class=
"col s12"
id=
"lesson-documentation"
>
{% with prev_lesson=lesson_period.prev prev_doc=prev_lesson.get_lesson_documentation %}
<div
class=
"card"
>
<div
class=
"card-content"
>
<span
class=
"card-title"
>
{% blocktrans %}Lesson documentation{% endblocktrans %}
</span>
{% if can_edit_lesson_documentation %}
{% form form=lesson_documentation_form %}{% endform %}
{% elif can_view_lesson_documentation %}
<table>
<tr>
<th>
{% trans "Lesson topic" %}
</th>
<td>
{{ lesson_documentation.topic }}
</td>
</tr>
<tr>
<th>
{% trans "Homework" %}
</th>
<td>
{{ lesson_documentation.homework }}
</td>
</tr>
<tr>
<th>
{% trans "Group note" %}
</th>
<td>
{{ lesson_documentation.group_note }}
</td>
</tr>
</table>
{% endif %}
</div>
</div>
</div>
{% with prev_lesson=lesson_period.prev prev_doc=prev_lesson.get_lesson_documentation %}
{% with prev_doc=prev_lesson.get_lesson_documentation absences=prev_lesson.get_absences tardinesses=prev_lesson.get_tardinesses extra_marks=prev_lesson.get_extra_marks %}
{% has_perm "alsijil.view_lessondocumentation" user prev_lesson as can_view_prev_lesson_documentation %}
{% if prev_doc and can_view_prev_lesson_documentation %}
{% weekday_to_date prev_lesson.week prev_lesson.period.weekday as prev_date %}
<div
class=
"col s12"
id=
"previous-lesson"
>
<div
class=
"card"
>
<div
class=
"card-content"
>
<span
class=
"card-title"
>
@@ -143,50 +196,11 @@
</table>
</div>
</div>
</div>
{% endif %}
{% endwith %}
{% endwith %}
<div
class=
"card"
>
<div
class=
"card-content"
>
<span
class=
"card-title"
>
{% blocktrans %}Lesson documentation{% endblocktrans %}
</span>
{% if can_edit_lesson_documentation %}
{% form form=lesson_documentation_form %}{% endform %}
{% elif can_view_lesson_documentation %}
<table>
<tr>
<th>
{% trans "Lesson topic" %}
</th>
<td>
{{ lesson_documentation.topic }}
</td>
</tr>
<tr>
<th>
{% trans "Homework" %}
</th>
<td>
{{ lesson_documentation.homework }}
</td>
</tr>
<tr>
<th>
{% trans "Group note" %}
</th>
<td>
{{ lesson_documentation.group_note }}
</td>
</tr>
</table>
{% endif %}
</div>
</div>
</div>
{% if not lesson_period.get_substitution.cancelled or not request.site.preferences.alsijil__block_personal_notes_for_cancelled %}
<div
class=
"col s12"
id=
"personal-notes"
>
<div
class=
"card"
>
Loading