1+ <!DOCTYPE html>
2+ < html xmlns:th ="http://www.thymeleaf.org ">
3+ < head lang ="en ">
4+
5+ < title > Spring Framework Guru</ title >
6+
7+ <!--/*/ <th:block th:include="fragments/headerinc :: head"></th:block> /*/-->
8+ </ head >
9+ < body >
10+ < div class ="container ">
11+ <!--/*/ <th:block th:include="fragments/header :: header"></th:block> /*/-->
12+
13+ < h2 > Product Details</ h2 >
14+ < div >
15+ < form class ="form-horizontal " th:object ="${product} " th:action ="@{/product} " method ="post ">
16+ < input type ="hidden " th:field ="*{id} "/>
17+ < input type ="hidden " th:field ="*{version} "/>
18+ < div class ="form-group ">
19+ < label class ="col-sm-2 control-label "> Product Id:</ label >
20+ < div class ="col-sm-10 ">
21+ < input type ="text " class ="form-control " th:field ="*{productId} "/>
22+ </ div >
23+ </ div >
24+ < div class ="form-group ">
25+ < label class ="col-sm-2 control-label "> Description:</ label >
26+ < div class ="col-sm-10 ">
27+ < input type ="text " class ="form-control " th:field ="*{description} "/>
28+ </ div >
29+ </ div >
30+ < div class ="form-group ">
31+ < label class ="col-sm-2 control-label "> Price:</ label >
32+ < div class ="col-sm-10 ">
33+ < input type ="text " class ="form-control " th:field ="*{price} "/>
34+ </ div >
35+ </ div >
36+ < div class ="form-group ">
37+ < label class ="col-sm-2 control-label "> Image Url:</ label >
38+ < div class ="col-sm-10 ">
39+ < input type ="text " class ="form-control " th:field ="*{imageUrl} "/>
40+ </ div >
41+ </ div >
42+ < div class ="row ">
43+ < button type ="submit " class ="btn btn-default "> Submit</ button >
44+ </ div >
45+ </ form >
46+ </ div >
47+ </ div >
48+
49+ </ body >
50+ </ html >
0 commit comments