diff --git a/attendance/templates/attendance/period_list.html b/attendance/templates/attendance/period_list.html new file mode 100644 index 0000000..865b067 --- /dev/null +++ b/attendance/templates/attendance/period_list.html @@ -0,0 +1,65 @@ +{% extends 'application.html' %} + +{% block content %} +
+
+

Attendance log

+ {% if user.instructor %} + Generate Reports → + {% endif %} + + + + {% if user.instructor %} + + {% endif %} + + + + + + + + + {% for period in page_obj %} + {% if period.clocked_out %} + + {% if user.instructor %} + + {% endif %} + + + + {% if period.clocked_out %} + + + {% else %} + + {% endif %} + + {% endif %} + {% empty %} + + {% endfor %} + +
StudentStationDateClocked inClocked outDuration
{{ period.student }}{{ period.station_number }}{{ period.clocked_in|date:"M d, y" }}{{ period.clocked_in|time:"P" }}{{ period.clocked_out|time:"P" }}{{ period.clocked_in|timesince:period.clocked_out }}Current sesson: {{ period.clocked_in|timesince }}
No periods yet.
+
+
+ + {% if page_obj.has_previous %} + « first + previous + {% endif %} + + + Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}. + + + {% if page_obj.has_next %} + next + last » + {% endif %} + +
+
+{% endblock %} diff --git a/static/scss/_home.scss b/static/scss/_home.scss new file mode 100644 index 0000000..9c2a554 --- /dev/null +++ b/static/scss/_home.scss @@ -0,0 +1,5 @@ +.home { + h1, h2 { + text-align: center; + } +}