|
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.4 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>List of Professors</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-fluid mt-4">
|
|---|
| 10 | <div class="container">
|
|---|
| 11 | <h3 class="text-center">List of Professors</h3>
|
|---|
| 12 | <hr>
|
|---|
| 13 |
|
|---|
| 14 | <div class="mb-3">
|
|---|
| 15 | <a href="${pageContext.request.contextPath}/professor/new" class="btn btn-success">Add New Professor</a>
|
|---|
| 16 | <a href="${pageContext.request.contextPath}/" class="btn btn-outline-secondary">Back to Home</a>
|
|---|
| 17 | </div>
|
|---|
| 18 |
|
|---|
| 19 | <table class="table table-bordered table-striped">
|
|---|
| 20 | <thead class="thead-dark">
|
|---|
| 21 | <tr>
|
|---|
| 22 | <th>ID</th>
|
|---|
| 23 | <th>Name</th>
|
|---|
| 24 | <th>Surname</th>
|
|---|
| 25 | <th>Age</th>
|
|---|
| 26 | <th>Faculty ID</th>
|
|---|
| 27 | <th>Affiliated University ID</th> <%-- Added this column --%>
|
|---|
| 28 | <th>Actions</th>
|
|---|
| 29 | </tr>
|
|---|
| 30 | </thead>
|
|---|
| 31 | <tbody>
|
|---|
| 32 | <c:forEach var="professor" items="${listProfessor}">
|
|---|
| 33 | <tr>
|
|---|
| 34 | <td>${professor.id}</td>
|
|---|
| 35 | <td>${professor.name}</td>
|
|---|
| 36 | <td>${professor.surname}</td>
|
|---|
| 37 | <td>${professor.age}</td>
|
|---|
| 38 | <td>${professor.facultyid}</td>
|
|---|
| 39 | <td>
|
|---|
| 40 | <c:choose>
|
|---|
| 41 | <c:when test="${professor.university != null}">
|
|---|
| 42 | <span class="badge badge-info">Uni ID: ${professor.university.id}</span>
|
|---|
| 43 | </c:when>
|
|---|
| 44 | <c:otherwise>
|
|---|
| 45 | <span class="text-muted">None</span>
|
|---|
| 46 | </c:otherwise>
|
|---|
| 47 | </c:choose>
|
|---|
| 48 | </td>
|
|---|
| 49 | <td>
|
|---|
| 50 | <a href="${pageContext.request.contextPath}/professor/edit?id=${professor.id}" class="btn btn-warning btn-sm">Edit</a>
|
|---|
| 51 | <a href="${pageContext.request.contextPath}/professor/delete?id=${professor.id}" class="btn btn-danger btn-sm"
|
|---|
| 52 | onclick="return confirm('Are you sure?');">Delete</a>
|
|---|
| 53 | </td>
|
|---|
| 54 | </tr>
|
|---|
| 55 | </c:forEach>
|
|---|
| 56 | </tbody>
|
|---|
| 57 | </table>
|
|---|
| 58 | </div>
|
|---|
| 59 | </div>
|
|---|
| 60 | </body>
|
|---|
| 61 | </html> |
|---|
Note:
See
TracBrowser
for help on using the repository browser.