|
Last change
on this file since 1eb7a55 was 1eb7a55, checked in by Elena Markovska <elena.elenamarkovska@…>, 11 days ago |
|
Initial commit - Scholaris project code
|
-
Property mode
set to
100644
|
|
File size:
2.0 KB
|
| Rev | Line | |
|---|
| [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 | <link rel="stylesheet"
|
|---|
| 6 | href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
|
|---|
| 7 | integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
|
|---|
| 8 | crossorigin="anonymous">
|
|---|
| 9 | <title>List of Faculties</title>
|
|---|
| 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 | <!-- Button to Add New Faculty -->
|
|---|
| 17 | <div class="mb-3">
|
|---|
| 18 | <a href="<%=request.getContextPath()%>/faculty/new" class="btn btn-success">Add New Faculty</a>
|
|---|
| 19 | </div>
|
|---|
| 20 |
|
|---|
| 21 | <!-- Table for Listing Faculties -->
|
|---|
| 22 | <table class="table table-bordered table-striped">
|
|---|
| 23 | <thead class="thead-dark">
|
|---|
| 24 | <tr>
|
|---|
| 25 | <th>ID</th>
|
|---|
| 26 | <th>Name</th>
|
|---|
| 27 | <th>Location</th>
|
|---|
| 28 | <th>Study Field</th>
|
|---|
| 29 | <th>Actions</th>
|
|---|
| 30 | </tr>
|
|---|
| 31 | </thead>
|
|---|
| 32 | <tbody>
|
|---|
| 33 | <!-- Loop through listFaculty -->
|
|---|
| 34 | <c:forEach var="faculty" items="${listFaculty}">
|
|---|
| 35 | <tr>
|
|---|
| 36 | <td><c:out value="${faculty.id}" /></td>
|
|---|
| 37 | <td><c:out value="${faculty.name}" /></td>
|
|---|
| 38 | <td><c:out value="${faculty.location}" /></td>
|
|---|
| 39 | <td><c:out value="${faculty.studyField}" /></td>
|
|---|
| 40 | <td>
|
|---|
| 41 | <a href="${pageContext.request.contextPath}/faculty/edit?id=<c:out value='${faculty.id}' />" class="btn btn-warning btn-sm">Edit</a>
|
|---|
| 42 | <a href="${pageContext.request.contextPath}/faculty/delete?id=<c:out value='${faculty.id}' />" class="btn btn-danger btn-sm">Delete</a>
|
|---|
| 43 | </td>
|
|---|
| 44 | </tr>
|
|---|
| 45 | </c:forEach>
|
|---|
| 46 | </tbody>
|
|---|
| 47 | </table>
|
|---|
| 48 | </div>
|
|---|
| 49 | </div>
|
|---|
| 50 | </body>
|
|---|
| 51 | </html>
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.