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

Remove second personal note form

parent 4e989049
No related branches found
No related tags found
Loading
...@@ -129,73 +129,6 @@ ...@@ -129,73 +129,6 @@
</table> </table>
</div> </div>
</div> </div>
<div class="hide-on-large-only">
<h2>{% trans "Personal Notes" %}</h2>
<div class="horizontal-scroll-container">
{% for form in personal_note_formset %}
<div class="card horizontal-scroll-card">
<div class="card-content">
<span class="card-title">{{ form.person_name.value }}</span>
{% if can_edit_register_object_personalnote %}
{% form form=form %}{% endform %}
{% else %}
<table>
{% if form.instance.person.group_roles.all %}
<tr>
<th>{% trans "Group roles" %}</th>
<td>
<p>
{% for assignment in form.instance.person.group_roles.all %}
{% include "alsijil/group_role/chip.html" with role=assignment.role %}
{% endfor %}
</p>
</td>
</tr>
{% endif %}
<tr>
<th>{% trans "Absent" %}</th>
<td><i class="material-icons center">{{ form.absent.value|yesno:"check,clear" }}</i></td>
</tr>
<tr>
<th>{% trans "Tardiness" %}</th>
<td>
<i class="material-icons center">{{ form.late.value|yesno:"check,clear" }}</i>
<span class="alsijil-tardiness-text">
{% if form.late.value %}{{ form.late.value|to_time|time:"i\m" }}{% endif %}
</span>
</td>
</tr>
<tr>
<th>{% trans "Excused" %}</th>
<td><i class="material-icons center">{{ form.excused.value|yesno:"check,clear" }}</i></td>
</tr>
<tr>
<th>{% trans "Excuse type" %}</th>
<td>{% firstof form.instance.excuse_type "–" %}</td>
</tr>
<tr>
<th>{% trans "Extra marks" %}</th>
<td>
{% for extra_mark in form.instance.extra_marks.all %}
{{ extra_mark }}{% if not forloop.last %},{% endif %}
{% empty %}
{% endfor %}
</td>
</tr>
<tr>
<th>{% trans "Remarks" %}</th>
<td>{% firstof form.remarks.value "–" %}</td>
</tr>
</table>
{% endif %}
</div>
</div>
{% endfor %}
</div>
</div>
{% if not blocked_because_holidays %} {% if not blocked_because_holidays %}
{% if can_edit_lesson_documentation or can_edit_register_object_personalnote %} {% if can_edit_lesson_documentation or can_edit_register_object_personalnote %}
<button type="submit" <button type="submit"
......
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