From d96a28b6973382919c84f957000d976ea8d54ec7 Mon Sep 17 00:00:00 2001 From: Leonardo Canessa Date: Tue, 17 Jan 2017 15:46:01 -0500 Subject: [PATCH] SAKAI-3187 Improve student view --- .../attendance/tool/Attendance.properties | 2 ++ .../attendance/tool/pages/EventView.java | 2 +- .../attendance/tool/pages/StudentView.html | 1 + .../attendance/tool/pages/StudentView.java | 9 ++++++++- .../tool/panels/AttendanceRecordFormDataPanel.html | 3 ++- .../tool/panels/AttendanceRecordFormDataPanel.java | 13 +++++++++---- tool/src/webapp/css/attendance.css | 3 ++- tool/src/webapp/javascript/attendanceRecordForm.js | 12 ++++++++++-- 8 files changed, 35 insertions(+), 10 deletions(-) diff --git a/tool/src/java/org/sakaiproject/attendance/tool/Attendance.properties b/tool/src/java/org/sakaiproject/attendance/tool/Attendance.properties index 3704b823..75e16b2e 100644 --- a/tool/src/java/org/sakaiproject/attendance/tool/Attendance.properties +++ b/tool/src/java/org/sakaiproject/attendance/tool/Attendance.properties @@ -100,6 +100,8 @@ attendance.record.form.cancel = Cancel attendance.record.form.add.comment = Add Comment attendance.record.form.view.comment = Comment +attendance.no.record = Unrecorded + attendance.icon.record.form.no_comment = Comment attendance.icon.record.form.yes_comment = Comment Present diff --git a/tool/src/java/org/sakaiproject/attendance/tool/pages/EventView.java b/tool/src/java/org/sakaiproject/attendance/tool/pages/EventView.java index 2c5c9488..87dfbc03 100644 --- a/tool/src/java/org/sakaiproject/attendance/tool/pages/EventView.java +++ b/tool/src/java/org/sakaiproject/attendance/tool/pages/EventView.java @@ -263,7 +263,7 @@ public void onClick() { }; studentLink.add(stuName); item.add(studentLink); - item.add(new AttendanceRecordFormDataPanel("record", item.getModel(), true, returnPage, feedbackPanel)); + item.add(new AttendanceRecordFormDataPanel("record", item.getModel(), returnPage, feedbackPanel)); } }); } diff --git a/tool/src/java/org/sakaiproject/attendance/tool/pages/StudentView.html b/tool/src/java/org/sakaiproject/attendance/tool/pages/StudentView.html index c0f58840..fbade203 100644 --- a/tool/src/java/org/sakaiproject/attendance/tool/pages/StudentView.html +++ b/tool/src/java/org/sakaiproject/attendance/tool/pages/StudentView.html @@ -94,6 +94,7 @@

}); +