File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
src/main/webapp/WEB-INF/views Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -102,27 +102,27 @@ <h3 th:text="${#strings.capitalize(create_category)} ">
102
102
< form method ="post " class ="form-horizontal " action ="info.html " th:action ="@{${ADD_CATEGORY_PAGE}} " th:object ="${addCategoryForm} ">
103
103
104
104
< div class ="form-group " th:classappend ="${#fields.hasErrors('name') ? 'has-error' : ''} ">
105
- < label path ="name " class ="control-label col-sm-4 ">
105
+ < label for ="name " class ="control-label col-sm-4 ">
106
106
< span class ="field-label " th:text ="#{t_name_on_english} ">
107
107
Name (in English)
108
108
</ span >
109
109
< span id ="name.required " class ="required_field "> *</ span >
110
110
</ label >
111
111
< div class ="col-sm-5 ">
112
- < input type ="text " class ="form-control " required ="required " th:field ="*{name} " />
112
+ < input id =" name " type ="text " class ="form-control " required ="required " th:field ="*{name} " />
113
113
< span id ="name.errors " class ="help-block " th:if ="${#fields.hasErrors('name')} " th:each ="error : ${#fields.errors('name')} " th:text ="${error} "> </ span >
114
114
</ div >
115
115
</ div >
116
116
117
117
< div class ="form-group " th:classappend ="${#fields.hasErrors('nameRu') ? 'has-error' : ''} ">
118
- < label path ="nameRu " class ="control-label col-sm-4 ">
118
+ < label for ="nameRu " class ="control-label col-sm-4 ">
119
119
< span class ="field-label " th:text ="#{t_name_on_russian} ">
120
120
Name (in Russian)
121
121
</ span >
122
122
< span id ="nameRu.required " class ="required_field "> *</ span >
123
123
</ label >
124
124
< div class ="col-sm-5 ">
125
- < input type ="text " class ="form-control " required ="required " th:field ="*{nameRu} " />
125
+ < input id =" nameRu " type ="text " class ="form-control " required ="required " th:field ="*{nameRu} " />
126
126
< span id ="nameRu.errors " class ="help-block " th:if ="${#fields.hasErrors('nameRu')} " th:each ="error : ${#fields.errors('nameRu')} " th:text ="${error} "> </ span >
127
127
</ div >
128
128
</ div >
Original file line number Diff line number Diff line change @@ -102,27 +102,27 @@ <h3 th:text="${#strings.capitalize(add_country)}">
102
102
< form method ="post " class ="form-horizontal " action ="info.html " th:action ="@{${ADD_COUNTRY_PAGE}} " th:object ="${addCountryForm} ">
103
103
104
104
< div class ="form-group " th:classappend ="${#fields.hasErrors('name') ? 'has-error' : ''} ">
105
- < label path ="name " class ="control-label col-sm-4 ">
105
+ < label for ="name " class ="control-label col-sm-4 ">
106
106
< span class ="field-label " th:text ="#{t_name_on_english} ">
107
107
Name (in English)
108
108
</ span >
109
109
< span id ="name.required " class ="required_field "> *</ span >
110
110
</ label >
111
111
< div class ="col-sm-5 ">
112
- < input type ="text " class ="form-control " required ="required " th:field ="*{name} " />
112
+ < input id =" name " type ="text " class ="form-control " required ="required " th:field ="*{name} " />
113
113
< span id ="name.errors " class ="help-block " th:if ="${#fields.hasErrors('name')} " th:each ="error : ${#fields.errors('name')} " th:text ="${error} "> </ span >
114
114
</ div >
115
115
</ div >
116
116
117
117
< div class ="form-group " th:classappend ="${#fields.hasErrors('nameRu') ? 'has-error' : ''} ">
118
- < label path ="nameRu " class ="control-label col-sm-4 ">
118
+ < label for ="nameRu " class ="control-label col-sm-4 ">
119
119
< span class ="field-label " th:text ="#{t_name_on_russian} ">
120
120
Name (in Russian)
121
121
</ span >
122
122
< span id ="nameRu.required " class ="required_field "> *</ span >
123
123
</ label >
124
124
< div class ="col-sm-5 ">
125
- < input type ="text " class ="form-control " required ="required " th:field ="*{nameRu} " />
125
+ < input id =" nameRu " type ="text " class ="form-control " required ="required " th:field ="*{nameRu} " />
126
126
< span id ="nameRu.errors " class ="help-block " th:if ="${#fields.hasErrors('nameRu')} " th:each ="error : ${#fields.errors('nameRu')} " th:text ="${error} "> </ span >
127
127
</ div >
128
128
</ div >
You can’t perform that action at this time.
0 commit comments