Skip to content

Commit 7a1334b

Browse files
committed
series/add.html: fix html5validator error about empty <option> element.
1 parent 8493f72 commit 7a1334b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/main/resources/ru/mystamps/i18n/Messages.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ t_add_comment = Add comment
9999
t_comment = Comment
100100
t_image = Image
101101
t_add_more_images_hint = Later you will be able to add additional images
102+
t_not_chosen = Not chosen
102103

103104
# series/info.html
104105
t_series_info = Info about series

src/main/resources/ru/mystamps/i18n/Messages_ru.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ t_add_comment = Добавить комментарий
9999
t_comment = Комментарий
100100
t_image = Изображение
101101
t_add_more_images_hint = Вы сможете добавить дополнительные изображения позже
102+
t_not_chosen = Не выбрана
102103

103104
# series/info.html
104105
t_series_info = Информация о серии

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ <h3 th:text="${#strings.capitalize(add_series)}">
124124
</label>
125125
<div class="col-sm-5">
126126
<select id="category" class="form-control" required="required" th:field="*{category}">
127-
<option value=""></option>
127+
<option value="" th:text="#{t_not_chosen}">Not chosen</option>
128128
<!--/*/
129129
<option th:each="category : ${categories}" th:value="${category.id}" th:text="${category.name}"></option>
130130
/*/-->
@@ -146,7 +146,7 @@ <h3 th:text="${#strings.capitalize(add_series)}">
146146
</label>
147147
<div class="col-sm-5">
148148
<select id="country" class="form-control" th:field="*{country}">
149-
<option value=""></option>
149+
<option value="" th:text="#{t_not_chosen}">Not chosen</option>
150150
<!--/*/
151151
<option th:each="country : ${countries}" th:value="${country.id}" th:text="${country.name}"></option>
152152
/*/-->

0 commit comments

Comments
 (0)