@@ -436,11 +436,13 @@ <h5 th:text="#{t_hidden_images}">Hidden images</h5>
436436 < option value ="ZAGORSKI " th:text ="#{t_zagorski} "> Zagorski</ option >
437437 </ select >
438438 <!--/*/
439- <span id="price-catalog-name.errors"
440- class="help-block"
441- th:if="${isHtmx and #fields.hasErrors('catalogName')}"
442- th:each="error : ${#fields.errors('catalogName')}" th:text="${error}">
443- </span>
439+ <th:block th:if="${isHtmx}">
440+ <span id="price-catalog-name.errors"
441+ class="help-block"
442+ th:if="${#fields.hasErrors('catalogName')}"
443+ th:each="error : ${#fields.errors('catalogName')}" th:text="${error}">
444+ </span>
445+ </th:block>
444446 /*/-->
445447 </ div >
446448 </ div >
@@ -529,11 +531,13 @@ <h5 th:text="#{t_hidden_images}">Hidden images</h5>
529531 </ option >
530532 </ select >
531533 <!--/*/
532- <span id="catalog-name.errors"
533- class="help-block"
534- th:if="${isHtmx and #fields.hasErrors('catalogName')}"
535- th:each="error : ${#fields.errors('catalogName')}" th:text="${error}">
536- </span>
534+ <th:block th:if="${isHtmx}">
535+ <span id="catalog-name.errors"
536+ class="help-block"
537+ th:if="${#fields.hasErrors('catalogName')}"
538+ th:each="error : ${#fields.errors('catalogName')}" th:text="${error}">
539+ </span>
540+ </th:block>
537541 /*/-->
538542 </ div >
539543 </ div >
@@ -556,11 +560,13 @@ <h5 th:text="#{t_hidden_images}">Hidden images</h5>
556560 th:placeholder ="|#{t_example}: 90-92,117| "
557561 th:value ="${addCatalogNumbersForm != null ? addCatalogNumbersForm.catalogNumbers : ''} " />
558562 <!--/*/
559- <span id="catalog-numbers.errors"
560- class="help-block"
561- th:if="${isHtmx and #fields.hasErrors('catalogNumbers')}"
562- th:each="error : ${#fields.errors('catalogNumbers')}" th:text="${error}">
563- </span>
563+ <th:block th:if="${isHtmx}">
564+ <span id="catalog-numbers.errors"
565+ class="help-block"
566+ th:if="${#fields.hasErrors('catalogNumbers')}"
567+ th:each="error : ${#fields.errors('catalogNumbers')}" th:text="${error}">
568+ </span>
569+ </th:block>
564570 /*/-->
565571 </ div >
566572 </ div >
@@ -608,11 +614,13 @@ <h5 th:text="#{t_hidden_images}">Hidden images</h5>
608614 required ="required "
609615 th:text ="${addCommentForm != null ? addCommentForm.comment : ''} "> </ textarea >
610616 <!--/*/
611- <span id="new-comment.errors"
612- class="help-block"
613- th:if="${isHtmx and #fields.hasErrors('comment')}"
614- th:each="error : ${#fields.errors('comment')}" th:text="${error}">
615- </span>
617+ <th:block th:if="${isHtmx}">
618+ <span id="new-comment.errors"
619+ class="help-block"
620+ th:if="${#fields.hasErrors('comment')}"
621+ th:each="error : ${#fields.errors('comment')}" th:text="${error}">
622+ </span>
623+ </th:block>
616624 /*/-->
617625 </ div >
618626 </ div >
0 commit comments