source: src/main/webapp/pages/student-list.jsp

Last change on this file was 1eb7a55, checked in by Elena Markovska <elena.elenamarkovska@…>, 11 days ago

Initial commit - Scholaris project code

  • Property mode set to 100644
File size: 1.8 KB
Line 
1<%@ page contentType="text/html;charset=UTF-8" language="java" %>
2<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
3
4<!DOCTYPE html>
5<html lang="en">
6<head>
7 <title>List of Students</title>
8 <link rel="stylesheet"
9 href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
10</head>
11<body>
12<div class="container mt-5">
13 <h3 class="text-center mb-4">List of Students</h3>
14
15 <div class="mb-3">
16 <a href="${pageContext.request.contextPath}/student/new" class="btn btn-success">Add New Student</a>
17 <a href="${pageContext.request.contextPath}/" class="btn btn-outline-secondary">Back to Home</a>
18
19 </div>
20
21 <table class="table table-bordered table-striped">
22 <thead class="thead-dark">
23 <tr>
24 <th>ID</th>
25 <th>Name</th>
26 <th>Surname</th>
27 <th>Location</th>
28 <th>Index Number</th>
29 <th>Faculty ID</th>
30 <th>Actions</th>
31 </tr>
32 </thead>
33 <tbody>
34 <c:forEach var="student" items="${listStudent}">
35 <tr>
36 <td>${student.id}</td>
37 <td>${student.name}</td>
38 <td>${student.surname}</td>
39 <td>${student.location}</td>
40 <td>${student.studentindex}</td> <td>${student.facultyid}</td> <td>
41 <a href="${pageContext.request.contextPath}/student/edit?id=${student.id}" class="btn btn-warning btn-sm">Edit</a>
42 <a href="${pageContext.request.contextPath}/student/delete?id=${student.id}" class="btn btn-danger btn-sm"
43 onclick="return confirm('Are you sure you want to delete this student?');">Delete</a>
44 </td>
45 </tr>
46 </c:forEach>
47 </tbody>
48 </table>
49</div>
50</body>
51</html>
Note: See TracBrowser for help on using the repository browser.