{% extends 'base.html' %} {% load i18n tz %} {% block title %}{% trans "記錄考勤" %} - 1218 Lab{% endblock %} {% block content %}

{% trans "記錄考勤" %}

{% blocktrans with count=students|length %}在學學生: {{ count }} 人{% endblocktrans %} {% now "Y-m-d H:i" %}
{% csrf_token %}
{% for student in students %} {% empty %} {% endfor %}
{% if student.degree_type == '博士生' %} {% trans "博士生" %} {% elif student.degree_type == '學士生' %} {% trans "學士生" %} {% else %} {% trans "碩士生" %} {% endif %} {% if student.student_category == '在職生' %} {% trans "在職生" %} {% elif student.student_category == '交換中' %} {% trans "交換中" %} {% else %} {% trans "一般生" %} {% endif %}
{% trans "無在學學生資料" %}
{% if point_records %}
{% trans "本次已成功紀錄考勤" %}
{% blocktrans with count=point_records|length %}共 {{ count }} 筆紀錄{% endblocktrans %}
{% for record in point_records %} {% endfor %}
# {% trans "姓名" %} {% trans "身分 / 學位" %} {% trans "考勤簽到時間" %}
{{ forloop.counter }} {% get_current_language as CURRENT_LANG %} {% if CURRENT_LANG == 'en' and record.student.foreign_alias %} {{ record.student.foreign_alias }} {% else %} {{ record.student.name }} {% endif %} {% if record.student.degree_type == '博士生' %} {% trans "博士生" %} {% elif record.student.degree_type == '學士生' %} {% trans "學士生" %} {% else %} {% trans "碩士生" %} {% endif %} {% if record.student.student_category == '在職生' %} {% trans "在職生" %} {% elif record.student.student_category == '交換中' %} {% trans "交換中" %} {% else %} {% trans "一般生" %} {% endif %} {{ record.datetime|timezone:"Asia/Taipei"|date:"Y-m-d H:i:s" }}
{% endif %} {% endblock %}