Skip to content

Commit 8493f72

Browse files
committed
{category,country}/info.html: fix html5validator error about not allowed path attribute.
Should be in 8ec711f commit.
1 parent 8e1a4d4 commit 8493f72

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/main/webapp/WEB-INF/views/category/add.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,27 +102,27 @@ <h3 th:text="${#strings.capitalize(create_category)} ">
102102
<form method="post" class="form-horizontal" action="info.html" th:action="@{${ADD_CATEGORY_PAGE}}" th:object="${addCategoryForm}">
103103

104104
<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">
106106
<span class="field-label" th:text="#{t_name_on_english}">
107107
Name (in English)
108108
</span>
109109
<span id="name.required" class="required_field">*</span>
110110
</label>
111111
<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}" />
113113
<span id="name.errors" class="help-block" th:if="${#fields.hasErrors('name')}" th:each="error : ${#fields.errors('name')}" th:text="${error}"></span>
114114
</div>
115115
</div>
116116

117117
<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">
119119
<span class="field-label" th:text="#{t_name_on_russian}">
120120
Name (in Russian)
121121
</span>
122122
<span id="nameRu.required" class="required_field">*</span>
123123
</label>
124124
<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}" />
126126
<span id="nameRu.errors" class="help-block" th:if="${#fields.hasErrors('nameRu')}" th:each="error : ${#fields.errors('nameRu')}" th:text="${error}"></span>
127127
</div>
128128
</div>

src/main/webapp/WEB-INF/views/country/add.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,27 +102,27 @@ <h3 th:text="${#strings.capitalize(add_country)}">
102102
<form method="post" class="form-horizontal" action="info.html" th:action="@{${ADD_COUNTRY_PAGE}}" th:object="${addCountryForm}">
103103

104104
<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">
106106
<span class="field-label" th:text="#{t_name_on_english}">
107107
Name (in English)
108108
</span>
109109
<span id="name.required" class="required_field">*</span>
110110
</label>
111111
<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}" />
113113
<span id="name.errors" class="help-block" th:if="${#fields.hasErrors('name')}" th:each="error : ${#fields.errors('name')}" th:text="${error}"></span>
114114
</div>
115115
</div>
116116

117117
<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">
119119
<span class="field-label" th:text="#{t_name_on_russian}">
120120
Name (in Russian)
121121
</span>
122122
<span id="nameRu.required" class="required_field">*</span>
123123
</label>
124124
<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}" />
126126
<span id="nameRu.errors" class="help-block" th:if="${#fields.hasErrors('nameRu')}" th:each="error : ${#fields.errors('nameRu')}" th:text="${error}"></span>
127127
</div>
128128
</div>

0 commit comments

Comments
 (0)