File tree Expand file tree Collapse file tree 4 files changed +70
-7
lines changed Expand file tree Collapse file tree 4 files changed +70
-7
lines changed Original file line number Diff line number Diff line change 1
- package com .kafkastream .web ;
1
+ package com .kafkastream .archived ;
2
2
3
3
import com .kafkastream .dto .CustomerOrderDTO ;
4
4
import com .kafkastream .model .Customer ;
Original file line number Diff line number Diff line change @@ -70,10 +70,10 @@ public String getAllOrders(Model model)
70
70
return "orders" ;
71
71
}
72
72
73
- @ GetMapping ("/customer-orders/ all" )
73
+ @ GetMapping (value = { "/customer-orders" , "/customer-orders/ all"} )
74
74
public String getAllCustomersOrders (Model model )
75
75
{
76
- model .addAttribute ("customer-orders " ,customRestTemplateService .getAllCustomersOrders ());
76
+ model .addAttribute ("customerorders " ,customRestTemplateService .getAllCustomersOrders ());
77
77
return "customer-orders" ;
78
78
}
79
79
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en " xmlns:th ="http://www.w3.org/1999/xhtml ">
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < title > Customer Orders List</ title >
6
+
7
+ <!-- Bootstrap CSS -->
8
+ < link href ="css/bootstrap.min.css " rel ="stylesheet ">
9
+
10
+ <!-- Bootstrap JS -->
11
+ < script src ="js/jquery.slim.min.js "> </ script >
12
+ < script src ="js/popper.min.js "> </ script >
13
+ < script src ="js/bootstrap.min.js "> </ script >
14
+ </ head >
15
+ < body >
16
+ < div class ="container container-fluid ">
17
+ < h1 > Customer Orders List</ h1 >
18
+ < br /> < br />
19
+ < table class ="table table-bordered ">
20
+ < thead class ="font-weight-bold ">
21
+ < tr >
22
+ < td > Customer Id</ td >
23
+ < td > First Name</ td >
24
+ < td > Last Name</ td >
25
+ < td > Email</ td >
26
+ < td > Phone</ td >
27
+ < td > Order Id</ td >
28
+ < td > Item Name</ td >
29
+ < td > Order Place</ td >
30
+ < td > Purchase Time</ td >
31
+ </ tr >
32
+ </ thead >
33
+ < tbody >
34
+ < tr th:if ="${customerorders.empty} ">
35
+ < td colspan ="2 "> No Customers Available </ td >
36
+ </ tr >
37
+ < tr th:each ="customerorder: ${customerorders} ">
38
+ < td th:text ="${customerorder.customerId} "> </ td >
39
+ < td th:text ="${customerorder.firstName} "> /td>
40
+ < td th:text ="${customerorder.lastName} "> </ td >
41
+ < td th:text ="${customerorder.email} "> </ td >
42
+ < td th:text ="${customerorder.phone} "> </ td >
43
+ < td th:text ="${customerorder.orderId} "> /td>
44
+ < td th:text ="${customerorder.orderItemName} "> </ td >
45
+ < td th:text ="${customerorder.orderPlace} "> </ td >
46
+ < td th:text ="${customerorder.orderPurchaseTime} "> </ td >
47
+ </ tr >
48
+ </ tbody >
49
+ </ table >
50
+
51
+ < br /> < br />
52
+ < p >
53
+ < a href ="/home " th:href ="@{/} "> Home</ a >
54
+ </ p >
55
+ </ div >
56
+ </ body >
57
+ </ html >
Original file line number Diff line number Diff line change 13
13
< script src ="js/bootstrap.min.js "> </ script >
14
14
</ head >
15
15
< body >
16
- < br /> < br />
16
+
17
17
< div class ="container container-fluid " style ="margin-bottom: 50px ">
18
18
< h1 > Home</ h1 >
19
19
20
+ < br />
21
+ < h4 > Customer Orders</ h4 >
22
+ < div class ="card ">
23
+ < div class ="card-body "> < a href ="customer-orders "> Customer Orders</ a > </ div >
24
+ </ div >
25
+
20
26
< br /> < br />
21
- < h4 > Customer Management </ h4 >
27
+ < h4 > Customers </ h4 >
22
28
< div class ="card ">
23
29
< div class ="card-body "> < a href ="customers "> Customers</ a > </ div >
24
30
< div class ="card-footer "> < a href ="create-customer "> Create New Customer</ a > </ div >
25
31
</ div >
26
32
27
33
< br /> < br />
28
- < h4 > Order Management </ h4 >
34
+ < h4 > Orders </ h4 >
29
35
< div class ="card ">
30
36
< div class ="card-body "> < a href ="orders "> Orders</ a > </ div >
31
37
< div class ="card-footer "> < a href ="create-order "> Create New Order</ a > </ div >
32
38
</ div >
33
39
34
40
35
41
< br /> < br />
36
- < h4 > Greetings Management </ h4 >
42
+ < h4 > Greetings</ h4 >
37
43
< div class ="card ">
38
44
< div class ="card-body "> < a href ="greetings "> Greetings</ a > </ div >
39
45
< div class ="card-footer "> < a href ="create-greeting "> Create New Greeting</ a > </ div >
You can’t perform that action at this time.
0 commit comments