-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathupdate_employee.html
More file actions
28 lines (25 loc) · 1.08 KB
/
update_employee.html
File metadata and controls
28 lines (25 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!-- Use Bootstrap for styling -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<!-- Create a banner -->
<div class="jumbotron">
<h1 class="display-4">Employee Management System</h1>
<p class="lead">Update an employee record</p>
</div>
<!-- Use a container to center the form -->
<div class="container">
<form action="/api/update_employee/{{ employee[0] }}" method="post">
<div class="form-group">
<label for="name">Name:</label>
<input type="text" class="form-control" id="name" name="name" required value="{{ employee[1] }}">
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="text" class="form-control" id="email" name="email" required value="{{ employee[2] }}">
</div>
<div class="form-group">
<label for="department">Department:</label>
<input type="text" class="form-control" id="department" name="department" required value="{{ employee[3] }}">
</div>
<button type="submit" class="btn btn-primary">Update Employee</button>
</form>
</div>