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

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

Initial commit - Scholaris project code

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[1eb7a55]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>List of Faculties</title>
6 <link rel="stylesheet"
7 href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
8 integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
9 crossorigin="anonymous">
10</head>
11<body>
12<div class="container-fluid mt-4">
13 <div class="container">
14 <h3 class="text-center">List of Faculties</h3>
15 <hr>
16
17 <!-- Add New Faculty Button -->
18 <div class="mb-3">
19 <a href="${pageContext.request.contextPath}/faculty/new" class="btn btn-success">Add New Faculty</a>
20 <a href="${pageContext.request.contextPath}/" class="btn btn-outline-secondary">Back to Home</a>
21
22 </div>
23
24 <!-- Table for Listing Faculties -->
25 <table class="table table-bordered table-striped">
26 <thead class="thead-dark">
27 <tr>
28 <th>ID</th>
29 <th>Name</th>
30 <th>Location</th>
31 <th>Study Field</th>
32 <th>Actions</th>
33 </tr>
34 </thead>
35 <tbody>
36 <c:forEach var="faculty" items="${listFaculty}">
37 <tr>
38 <td><c:out value="${faculty.id}" /></td>
39 <td><c:out value="${faculty.name}" /></td>
40 <td><c:out value="${faculty.location}" /></td>
41 <td><c:out value="${faculty.study_field}" /></td>
42 <td>
43 <a href="${pageContext.request.contextPath}/faculty/edit?id=${faculty.id}" class="btn btn-warning btn-sm">Edit</a>
44 <a href="${pageContext.request.contextPath}/faculty/delete?id=${faculty.id}" class="btn btn-danger btn-sm">Delete</a>
45 </td>
46 </tr>
47 </c:forEach>
48 </tbody>
49 </table>
50 </div>
51</div>
52</body>
53</html>
54
Note: See TracBrowser for help on using the repository browser.