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
!109
Resolve "Add "Are you sure?" page for register absence form"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Add "Are you sure?" page for register absence form"
105-add-are-you-sure-page-for-register-absence-form
into
master
Overview
1
Commits
1
Pipelines
2
Changes
3
Merged
Jonathan Weth
requested to merge
105-add-are-you-sure-page-for-register-absence-form
into
master
4 years ago
Overview
1
Commits
1
Pipelines
2
Changes
3
Expand
Closes
#105 (closed)
Edited
4 years ago
by
Jonathan Weth
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
57dbd3db
1 commit,
4 years ago
3 files
+
145
−
29
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
aleksis/apps/alsijil/templates/alsijil/absences/register_confirm.html
0 → 100644
+
84
−
0
Options
{# -*- engine:django -*- #}
{% extends "core/base.html" %}
{% load material_form i18n static %}
{% block browser_title %}{% blocktrans %}Confirm: Register absence{% endblocktrans %}{% endblock %}
{% block page_title %}{% blocktrans %}Confirm: Register absence{% endblocktrans %}{% endblock %}
{% block content %}
<p
class=
"flow-text"
>
{% blocktrans %}
Do you really want to register the following absence?
{% endblocktrans %}
</p>
<div
class=
"card"
>
<div
class=
"card-content"
>
<div
class=
"card-title"
>
{{ person }}
</div>
<div
class=
"collection"
>
<div
class=
"collection-item"
>
<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>
{% endif %}
</div>
<div
class=
"collection-item"
>
<i
class=
"material-icons left"
>
list
</i>
{% blocktrans with count=affected_lessons %} {{ count }} affected lessons {% endblocktrans %}
{% if affected_lessons == 0 %}
<div
class=
"alert error"
>
<div>
<i
class=
"material-icons left"
>
error
</i>
{% blocktrans %}
There are no affected lessons. Registering this absence won't have any effect.
{% endblocktrans %}
</div>
</div>
{% endif %}
</div>
<div
class=
"collection-item"
>
<i
class=
"material-icons left"
>
label
</i>
{% if form_data.absent %}
<span
class=
"chip red white-text"
>
{% trans "Absent" %}
</span>
{% if form_data.excused and form_data.excuse_type %}
<span
class=
"chip green white-text"
>
{{ form_data.excuse_type.name }}
</span>
{% elif form_data.excused %}
<span
class=
"chip green white-text"
>
{% trans "Excused" %}
</span>
{% endif %}
{% else %}
{% trans "Reset status to 'not absent'" %}
{% endif %}
</div>
{% if form_data.remarks %}
<div
class=
"collection-item"
>
<i
class=
"material-icons left"
>
edit
</i>
{{ form_data.remarks }}
</div>
{% endif %}
</div>
</div>
</div>
<form
method=
"post"
>
{% csrf_token %}
<div
class=
"hide"
>
{% form form=form %}{% endform %}
</div>
<input
type=
"hidden"
name=
"confirmed"
value=
"1"
>
{% include "core/partials/save_button.html" %}
<a
class=
"btn red waves-effect waves-light"
href=
"{% url "
register_absence
"
person.pk
%}"
>
<i
class=
"material-icons left"
>
cancel
</i>
{% trans "Cancel" %}
</a>
</form>
{% endblock %}
Loading