|
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:
2.3 KB
|
| Line | |
|---|
| 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
|
|---|
| 2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
|---|
| 3 |
|
|---|
| 4 | <!DOCTYPE html>
|
|---|
| 5 | <html lang="en">
|
|---|
| 6 | <head>
|
|---|
| 7 | <meta charset="UTF-8">
|
|---|
| 8 | <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|---|
| 9 | <title>Faculty Management</title>
|
|---|
| 10 | <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" crossorigin="anonymous">
|
|---|
| 11 | </head>
|
|---|
| 12 | <body>
|
|---|
| 13 |
|
|---|
| 14 | <header>
|
|---|
| 15 | <nav class="navbar navbar-expand-md navbar-dark" style="background-color: tomato;">
|
|---|
| 16 | <div>
|
|---|
| 17 | <a href="" class="navbar-brand">Faculty Management App</a>
|
|---|
| 18 | </div>
|
|---|
| 19 | <ul class="navbar-nav">
|
|---|
| 20 | <li><a href="${contextPath}/faculty/list" class="nav-link">Faculty List</a></li>
|
|---|
| 21 | </ul>
|
|---|
| 22 | </nav>
|
|---|
| 23 | </header>
|
|---|
| 24 |
|
|---|
| 25 | <br>
|
|---|
| 26 |
|
|---|
| 27 | <div class="container col-md-5">
|
|---|
| 28 | <div class="card">
|
|---|
| 29 | <div class="card-body">
|
|---|
| 30 | <form action="/faculty/insert" method="post">
|
|---|
| 31 |
|
|---|
| 32 | <h2 class="text-center">
|
|---|
| 33 | <c:choose>
|
|---|
| 34 | <c:when test="${faculty != null}">Edit Faculty</c:when>
|
|---|
| 35 | <c:otherwise>Add New Facutly</c:otherwise>
|
|---|
| 36 | </c:choose>
|
|---|
| 37 | </h2>
|
|---|
| 38 |
|
|---|
| 39 | <c:if test="${faculty != null}">
|
|---|
| 40 | <input type="hidden" name="id" value="${faculty.id}" />
|
|---|
| 41 | </c:if>
|
|---|
| 42 |
|
|---|
| 43 | <div class="form-group">
|
|---|
| 44 | <label for="name">Faculty Name</label>
|
|---|
| 45 | <input type="text" id="name" name="name" class="form-control" value="${faculty != null ? faculty.name : ''}" required>
|
|---|
| 46 | </div>
|
|---|
| 47 |
|
|---|
| 48 | <div class="form-group">
|
|---|
| 49 | <label for="location">Faculty Location</label>
|
|---|
| 50 | <input type="text" id="location" name="location" class="form-control" value="${faculty != null ? faculty.location : ''}">
|
|---|
| 51 | </div>
|
|---|
| 52 |
|
|---|
| 53 | <div class="form-group">
|
|---|
| 54 | <label for="studyField">Study Field</label>
|
|---|
| 55 | <input type="text" id="studyField" name="studyField" class="form-control" value="${faculty != null ? faculty.studyField : ''}">
|
|---|
| 56 | </div>
|
|---|
| 57 |
|
|---|
| 58 | <button type="submit" class="btn btn-success btn-block">Save</button>
|
|---|
| 59 | </form>
|
|---|
| 60 | </div>
|
|---|
| 61 | </div>
|
|---|
| 62 | </div>
|
|---|
| 63 |
|
|---|
| 64 | </body>
|
|---|
| 65 | </html> |
|---|
Note:
See
TracBrowser
for help on using the repository browser.