File tree Expand file tree Collapse file tree 7 files changed +42
-28
lines changed
2-reactive/src/main/resources/templates
2b-reactive/src/main/resources/templates
3-reactive/src/main/resources/templates
4-reactive/src/main/resources/templates
5-reactive/src/main/resources/templates
9-reactive-quick/src/main/resources/templates
9-reactive-repository/src/main/resources/templates Expand file tree Collapse file tree 7 files changed +42
-28
lines changed Original file line number Diff line number Diff line change @@ -10,33 +10,30 @@ <h1>Welcome to Hacking with Spring Boot!</h1>
10
10
<!-- tag::1[] -->
11
11
< h2 > Inventory Management</ h2 >
12
12
< table >
13
- < th > Id</ th > < th > Name</ th > < th > Price</ th >
13
+ < thead > < tr > < th > Id</ th > < th > Name</ th > < th > Price</ th > </ tr > </ thead >
14
+ < tbody >
14
15
< tr th:each ="item : ${items} ">
15
16
< td th:text ="${item.id} "> </ td >
16
17
< td th:text ="${item.name} "> </ td >
17
18
< td th:text ="${item.price} "> </ td >
18
19
< td > < a th:href ="@{'/add/' + ${item.id}} "> Add to Cart</ a > </ td >
19
20
< td > < a th:href ="@{'/delete/' + ${item.id}} "> Delete</ a > </ td >
20
21
</ tr >
22
+ </ tbody >
21
23
</ table >
22
24
<!-- end::1[] -->
23
25
24
- <!--<h3>Add New Inventory</h3>-->
25
- <!--<form method="post" action="/">-->
26
- <!--<input name="name" type="text" />-->
27
- <!--<input name="price" type="text" />-->
28
- <!--<input type="submit" />-->
29
- <!--</form>-->
30
-
31
26
<!-- tag::2[] -->
32
27
< h2 > My Cart</ h2 >
33
28
< table >
34
- < th > Id</ th > < th > Name</ th > < th > Quantity</ th >
29
+ < thead > < tr > < th > Id</ th > < th > Name</ th > < th > Quantity</ th > </ tr > </ thead >
30
+ < tbody >
35
31
< tr th:each ="cartItem : ${cart.cartItems} ">
36
32
< td th:text ="${cartItem.item.id} "> </ td >
37
33
< td th:text ="${cartItem.item.name} "> </ td >
38
34
< td th:text ="${cartItem.quantity} "> </ td >
39
35
</ tr >
36
+ </ tbody >
40
37
</ table >
41
38
<!-- end::2[] -->
42
39
Original file line number Diff line number Diff line change @@ -10,33 +10,30 @@ <h1>Welcome to Hacking with Spring Boot!</h1>
10
10
<!-- tag::1[] -->
11
11
< h2 > Inventory Management</ h2 >
12
12
< table >
13
- < th > Id</ th > < th > Name</ th > < th > Price</ th >
13
+ < thead > < tr > < th > Id</ th > < th > Name</ th > < th > Price</ th > </ tr > </ thead >
14
+ < tbody >
14
15
< tr th:each ="item : ${items} ">
15
16
< td th:text ="${item.id} "> </ td >
16
17
< td th:text ="${item.name} "> </ td >
17
18
< td th:text ="${item.price} "> </ td >
18
19
< td > < a th:href ="@{'/add/' + ${item.id}} "> Add to Cart</ a > </ td >
19
20
< td > < a th:href ="@{'/delete/' + ${item.id}} "> Delete</ a > </ td >
20
21
</ tr >
22
+ </ tbody >
21
23
</ table >
22
24
<!-- end::1[] -->
23
25
24
- <!--<h3>Add New Inventory</h3>-->
25
- <!--<form method="post" action="/">-->
26
- <!--<input name="name" type="text" />-->
27
- <!--<input name="price" type="text" />-->
28
- <!--<input type="submit" />-->
29
- <!--</form>-->
30
-
31
26
<!-- tag::2[] -->
32
27
< h2 > My Cart</ h2 >
33
28
< table >
34
- < th > Id</ th > < th > Name</ th > < th > Quantity</ th >
29
+ < thead > < tr > < th > Id</ th > < th > Name</ th > < th > Quantity</ th > </ tr > </ thead >
30
+ < tbody >
35
31
< tr th:each ="cartItem : ${cart.cartItems} ">
36
32
< td th:text ="${cartItem.item.id} "> </ td >
37
33
< td th:text ="${cartItem.item.name} "> </ td >
38
34
< td th:text ="${cartItem.quantity} "> </ td >
39
35
</ tr >
36
+ </ tbody >
40
37
</ table >
41
38
<!-- end::2[] -->
42
39
Original file line number Diff line number Diff line change @@ -10,27 +10,31 @@ <h1>Welcome to Hacking with Spring Boot!</h1>
10
10
<!-- tag::1[] -->
11
11
< h2 > Inventory Management</ h2 >
12
12
< table >
13
- < th > Id</ th > < th > Name</ th > < th > Price</ th >
13
+ < thead > < tr > < th > Id</ th > < th > Name</ th > < th > Price</ th > </ tr > </ thead >
14
+ < tbody >
14
15
< tr th:each ="item : ${items} ">
15
16
< td th:text ="${item.id} "> </ td >
16
17
< td th:text ="${item.name} "> </ td >
17
18
< td th:text ="${item.price} "> </ td >
18
19
< td > < a th:href ="@{'/add/' + ${item.id}} "> Add to Cart</ a > </ td >
19
20
< td > < a th:href ="@{'/delete/' + ${item.id}} "> Delete</ a > </ td >
20
21
</ tr >
22
+ </ tbody >
21
23
</ table >
22
24
<!-- end::1[] -->
23
25
24
26
<!-- tag::2[] -->
25
27
< h2 > My Cart</ h2 >
26
28
< table >
27
- < th > Id</ th > < th > Name</ th > < th > Quantity</ th >
29
+ < thead > < tr > < th > Id</ th > < th > Name</ th > < th > Quantity</ th > </ tr > </ thead >
30
+ < tbody >
28
31
< tr th:each ="cartItem : ${cart.cartItems} ">
29
32
< td th:text ="${cartItem.item.id} "> </ td >
30
33
< td th:text ="${cartItem.item.name} "> </ td >
31
34
< td th:text ="${cartItem.quantity} "> </ td >
32
35
< td > < a th:href ="@{'/remove/' + ${cartItem.item.id}} "> -1</ a > </ td >
33
36
</ tr >
37
+ </ tbody >
34
38
</ table >
35
39
<!-- end::2[] -->
36
40
Original file line number Diff line number Diff line change @@ -10,27 +10,31 @@ <h1>Welcome to Hacking with Spring Boot!</h1>
10
10
<!-- tag::1[] -->
11
11
< h2 > Inventory Management</ h2 >
12
12
< table >
13
- < th > Id</ th > < th > Name</ th > < th > Price</ th >
13
+ < thead > < tr > < th > Id</ th > < th > Name</ th > < th > Price</ th > </ tr > </ thead >
14
+ < tbody >
14
15
< tr th:each ="item : ${items} ">
15
16
< td th:text ="${item.id} "> </ td >
16
17
< td th:text ="${item.name} "> </ td >
17
18
< td th:text ="${item.price} "> </ td >
18
19
< td > < a th:href ="@{'/add/' + ${item.id}} "> Add to Cart</ a > </ td >
19
20
< td > < a th:href ="@{'/delete/' + ${item.id}} "> Delete</ a > </ td >
20
21
</ tr >
22
+ </ tbody >
21
23
</ table >
22
24
<!-- end::1[] -->
23
25
24
26
<!-- tag::2[] -->
25
27
< h2 > My Cart</ h2 >
26
28
< table >
27
- < th > Id</ th > < th > Name</ th > < th > Quantity</ th >
29
+ < thead > < tr > < th > Id</ th > < th > Name</ th > < th > Quantity</ th > </ tr > </ thead >
30
+ < tbody >
28
31
< tr th:each ="cartItem : ${cart.cartItems} ">
29
32
< td th:text ="${cartItem.item.id} "> </ td >
30
33
< td th:text ="${cartItem.item.name} "> </ td >
31
34
< td th:text ="${cartItem.quantity} "> </ td >
32
35
< td > < a th:href ="@{'/remove/' + ${cartItem.item.id}} "> -1</ a > </ td >
33
36
</ tr >
37
+ </ tbody >
34
38
</ table >
35
39
<!-- end::2[] -->
36
40
Original file line number Diff line number Diff line change @@ -10,27 +10,31 @@ <h1>Welcome to Hacking with Spring Boot!</h1>
10
10
<!-- tag::1[] -->
11
11
< h2 > Inventory Management</ h2 >
12
12
< table >
13
- < th > Id</ th > < th > Name</ th > < th > Price</ th >
13
+ < thead > < tr > < th > Id</ th > < th > Name</ th > < th > Price</ th > </ tr > </ thead >
14
+ < tbody >
14
15
< tr th:each ="item : ${items} ">
15
16
< td th:text ="${item.id} "> </ td >
16
17
< td th:text ="${item.name} "> </ td >
17
18
< td th:text ="${item.price} "> </ td >
18
19
< td > < a th:href ="@{'/add/' + ${item.id}} "> Add to Cart</ a > </ td >
19
20
< td > < a th:href ="@{'/delete/' + ${item.id}} "> Delete</ a > </ td >
20
21
</ tr >
22
+ </ tbody >
21
23
</ table >
22
24
<!-- end::1[] -->
23
25
24
26
<!-- tag::2[] -->
25
27
< h2 > My Cart</ h2 >
26
28
< table >
27
- < th > Id</ th > < th > Name</ th > < th > Quantity</ th >
29
+ < thead > < tr > < th > Id</ th > < th > Name</ th > < th > Quantity</ th > </ tr > </ thead >
30
+ < tbody >
28
31
< tr th:each ="cartItem : ${cart.cartItems} ">
29
32
< td th:text ="${cartItem.item.id} "> </ td >
30
33
< td th:text ="${cartItem.item.name} "> </ td >
31
34
< td th:text ="${cartItem.quantity} "> </ td >
32
35
< td > < a th:href ="@{'/remove/' + ${cartItem.item.id}} "> -1</ a > </ td >
33
36
</ tr >
37
+ </ tbody >
34
38
</ table >
35
39
<!-- end::2[] -->
36
40
Original file line number Diff line number Diff line change @@ -10,27 +10,31 @@ <h1>Welcome to Hacking with Spring Boot!</h1>
10
10
<!-- tag::1[] -->
11
11
< h2 > Inventory Management</ h2 >
12
12
< table >
13
- < th > Id</ th > < th > Name</ th > < th > Price</ th >
13
+ < thead > < tr > < th > Id</ th > < th > Name</ th > < th > Price</ th > </ tr > </ thead >
14
+ < tbody >
14
15
< tr th:each ="item : ${items} ">
15
16
< td th:text ="${item.id} "> </ td >
16
17
< td th:text ="${item.name} "> </ td >
17
18
< td th:text ="${item.price} "> </ td >
18
19
< td > < a th:href ="@{'/add/' + ${item.id}} "> Add to Cart</ a > </ td >
19
20
< td > < a th:href ="@{'/delete/' + ${item.id}} "> Delete</ a > </ td >
20
21
</ tr >
22
+ </ tbody >
21
23
</ table >
22
24
<!-- end::1[] -->
23
25
24
26
<!-- tag::2[] -->
25
27
< h2 > My Cart</ h2 >
26
28
< table >
27
- < th > Id</ th > < th > Name</ th > < th > Quantity</ th >
29
+ < thead > < tr > < th > Id</ th > < th > Name</ th > < th > Quantity</ th > </ tr > </ thead >
30
+ < tbody >
28
31
< tr th:each ="cartItem : ${cart.cartItems} ">
29
32
< td th:text ="${cartItem.item.id} "> </ td >
30
33
< td th:text ="${cartItem.item.name} "> </ td >
31
34
< td th:text ="${cartItem.quantity} "> </ td >
32
35
< td > < a th:href ="@{'/remove/' + ${cartItem.item.id}} "> -1</ a > </ td >
33
36
</ tr >
37
+ </ tbody >
34
38
</ table >
35
39
<!-- end::2[] -->
36
40
Original file line number Diff line number Diff line change @@ -10,27 +10,31 @@ <h1>Welcome to Hacking with Spring Boot!</h1>
10
10
<!-- tag::1[] -->
11
11
< h2 > Inventory Management</ h2 >
12
12
< table >
13
- < th > Id</ th > < th > Name</ th > < th > Price</ th >
13
+ < thead > < tr > < th > Id</ th > < th > Name</ th > < th > Price</ th > </ tr > </ thead >
14
+ < tbody >
14
15
< tr th:each ="item : ${items} ">
15
16
< td th:text ="${item.id} "> </ td >
16
17
< td th:text ="${item.name} "> </ td >
17
18
< td th:text ="${item.price} "> </ td >
18
19
< td > < a th:href ="@{'/add/' + ${item.id}} "> Add to Cart</ a > </ td >
19
20
< td > < a th:href ="@{'/delete/' + ${item.id}} "> Delete</ a > </ td >
20
21
</ tr >
22
+ </ tbody >
21
23
</ table >
22
24
<!-- end::1[] -->
23
25
24
26
<!-- tag::2[] -->
25
27
< h2 > My Cart</ h2 >
26
28
< table >
27
- < th > Id</ th > < th > Name</ th > < th > Quantity</ th >
29
+ < thead > < tr > < th > Id</ th > < th > Name</ th > < th > Quantity</ th > </ tr > </ thead >
30
+ < tbody >
28
31
< tr th:each ="cartItem : ${cart.cartItems} ">
29
32
< td th:text ="${cartItem.item.id} "> </ td >
30
33
< td th:text ="${cartItem.item.name} "> </ td >
31
34
< td th:text ="${cartItem.quantity} "> </ td >
32
35
< td > < a th:href ="@{'/remove/' + ${cartItem.item.id}} "> -1</ a > </ td >
33
36
</ tr >
37
+ </ tbody >
34
38
</ table >
35
39
<!-- end::2[] -->
36
40
You can’t perform that action at this time.
0 commit comments