-
Notifications
You must be signed in to change notification settings - Fork 2
/
restaurantReservation.xhtml
74 lines (65 loc) · 3.17 KB
/
restaurantReservation.xhtml
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
69
70
71
72
73
74
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:jsf="http://xmlns.jcp.org/jsf"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<head jsf:id="head"></head>
<body jsf:id="body">
<ui:composition template="/acmeWorldTemplate.xhtml">
<ui:define name="content">
<form jsf:id="restaruantReservationForm" jsf:prependId="false">
<h1>Create Restaurant Reservation</h1>
<br/>
<table>
<tr>
<td>
<label for="restaurant">Restaurant:</label>
</td>
<td>
<select jsf:id="restaurant"
jsf:value="#{restaurantReservationController.current.restaurantId}">
<f:selectItems value="#{restaurantController.restaurantList()}"/>
</select>
</td>
</tr>
<tr>
<td>
<label for="numberOfPeople"># People</label>
</td>
<td>
<input type="number" jsf:id="numberOfPeople" min="1" max="10"
placeholder="# People"
jsf:value="#{restaurantReservationController.current.numberOfPeople}"/>
</td>
</tr>
<tr>
<td>
<label for="reservationId">Park Reservation Id</label>
</td>
<td>
<input type="text" jsf:id="reservationId"
placeholder="Reservation Id"
jsf:value="#{restaurantReservationController.current.reservationId}"/>
</td>
</tr>
<tr>
<td>
<label for="reservationDate">Reservation Date:</label>
</td>
<td>
<input type="datetime-local" jsf:id="reservationDate"
jsf:value="#{restaurantReservationController.current.reservationDate}">
<f:convertDateTime pattern="YYYY-MM-dd hh:mm"/>
</input>
</td>
</tr>
</table>
<input type="button" jsf:id="restaurantReservation"
jsf:action="#{restaurantReservationController.createReservation}"
jsf:value="Create Restaurant Reservation"/>
</form>
</ui:define>
</ui:composition>
</body>
</html>