-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathassignloc.html
68 lines (51 loc) · 1.61 KB
/
assignloc.html
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org"
xmlns:sec="http://www.thymeleaf.org">
<head>
<meta charset="ISO-8859-1">
<title>Building Assignment Form</title>
</head>
<body>
<!-- <div align="center">
<h1>Employee Location Assignment Form</h1>
<label class="form-label">Employee ID</label>
<select name="Employee">
<option value="">Select Employee</option>
<option
th:each="Employee : ${listEmployees}"
th:value="${Employee.firstname}"
th:text="${Employee.firstname}">
</option>
</select>
<tr>
<td>Building Name</td>
<td><input type="text" name="building_name"/></td>
</tr>
<tr>
<td>Address</td>
<td><input type="text" name="building_address"/></td>
</tr>
<button type="submit">Assign Location</button>
</div> -->
<div>
<form action="#" th:action="@{/assign/save/}" method= POST th:object="${BuildingAssignments}">
<label>Select Employee</label>
<select th:field="*{employeenumb}" class="form-control" name="employeenumb">
<option value="-1">Select Employee</option>
<option
th:each="Employee : ${listEmployees}"
th:value="${Employee.employeenum}"
th:text="${Employee.firstname}"
>
</option>
</select><br/>
<label>Building Name</Label>
<input type="text" class= "form-control" th:field="*{buildingname}"/><br/>
<label>Address</label>
<input type="text" class= "form-control" th:field="*{buildingadd}"/><br/>
<button type="submit" class= "btn btn-default">Assign Location</button>
</form>
</div>
</body>
</html>