source:
src/main/webapp/pages/enrollment-list.jsp
| Last change on this file was 1eb7a55, checked in by , 11 days ago | |
|---|---|
|
|
| File size: 2.1 KB | |
| Line | |
|---|---|
| 1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> |
| 2 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
| 3 | <html> |
| 4 | <head> |
| 5 | <title>Student Enrollments</title> |
| 6 | <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> |
| 7 | </head> |
| 8 | <body> |
| 9 | <div class="container mt-4"> |
| 10 | <h3 class="text-center">Student Subject Enrollments</h3> |
| 11 | <hr> |
| 12 | <div class="mb-3"> |
| 13 | <a href="${pageContext.request.contextPath}/enrollment/new" class="btn btn-success">New Enrollment</a> |
| 14 | <a href="${pageContext.request.contextPath}/" class="btn btn-secondary">Home</a> |
| 15 | </div> |
| 16 | |
| 17 | <table class="table table-bordered table-striped"> |
| 18 | <thead class="thead-dark"> |
| 19 | <tr> |
| 20 | <th>ID</th> |
| 21 | <th>Student ID</th> |
| 22 | <th>Subject ID</th> |
| 23 | <th>Enrollment Date</th> |
| 24 | <th>Status</th> |
| 25 | <th>Grade</th> |
| 26 | <th>Absences</th> |
| 27 | <th>Actions</th> |
| 28 | </tr> |
| 29 | </thead> |
| 30 | <tbody> |
| 31 | <c:forEach var="enrollment" items="${enrollments}"> |
| 32 | <tr> |
| 33 | <td>${enrollment.ss_id}</td> |
| 34 | <td>${enrollment.student_id}</td> |
| 35 | <td>${enrollment.subject_id}</td> |
| 36 | <td>${enrollment.enrollment_date}</td> |
| 37 | <td> |
| 38 | <span class="badge ${enrollment.status == 'PASSED' ? 'badge-success' : 'badge-primary'}"> |
| 39 | ${enrollment.status} |
| 40 | </span> |
| 41 | </td> |
| 42 | <td>${enrollment.final_grade != null ? enrollment.final_grade : '-'}</td> |
| 43 | <td>${enrollment.absences_count}</td> |
| 44 | <td> |
| 45 | <a href="${pageContext.request.contextPath}/enrollment/edit?ss_id=${enrollment.ss_id}" class="btn btn-warning btn-sm">Edit</a> |
| 46 | <a href="${pageContext.request.contextPath}/enrollment/delete?ss_id=${enrollment.ss_id}" class="btn btn-danger btn-sm" |
| 47 | onclick="return confirm('Remove this enrollment?');">Delete</a> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </c:forEach> |
| 51 | </tbody> |
| 52 | </table> |
| 53 | </div> |
| 54 | </body> |
| 55 | </html> |
Note:
See TracBrowser
for help on using the repository browser.
