Skip to content

Commit a2e1bd3

Browse files
committed
/series/add: extract variable.
No functional changes.
1 parent 4877c26 commit a2e1bd3

File tree

1 file changed

+4
-3
lines changed
  • src/main/webapp/WEB-INF/views/series

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ <h3 th:text="#{t_add_series_ucfirst}">
7171
scottHasErrors=${#fields.hasErrors('scottNumbers') or #fields.hasErrors('scottPrice')},
7272
yvertHasErrors=${#fields.hasErrors('yvertNumbers') or #fields.hasErrors('yvertPrice')},
7373
gibbonsHasErrors=${#fields.hasErrors('gibbonsNumbers') or #fields.hasErrors('gibbonsPrice')},
74-
showCatalogsInfo=${michelHasErrors or scottHasErrors or yvertHasErrors or gibbonsHasErrors}">
74+
showCatalogsInfo=${michelHasErrors or scottHasErrors or yvertHasErrors or gibbonsHasErrors},
75+
issueDateHasErrors=${#fields.hasErrors('day') or #fields.hasErrors('month') or #fields.hasErrors('year')}">
7576

7677
<div class="form-group form-group-sm" th:classappend="${#fields.hasErrors('category') ? 'has-error' : ''}">
7778
<label for="category" class="control-label col-sm-3">
@@ -171,13 +172,13 @@ <h3 th:text="#{t_add_series_ucfirst}">
171172

172173
<div class="form-group js-collapse-toggle-header">
173174
<div class="col-sm-offset-3 col-sm-5">
174-
<span class="glyphicon glyphicon-chevron-right" th:class="${#fields.hasErrors('day') or #fields.hasErrors('month') or #fields.hasErrors('year') ? 'glyphicon glyphicon-chevron-down' : 'glyphicon glyphicon-chevron-right'}"></span>&nbsp;<a href="javascript:void(0)" data-toggle="collapse" data-target=".js-issue-date" th:text="#{t_specify_issue_date}">
175+
<span class="glyphicon glyphicon-chevron-right" th:class="${issueDateHasErrors ? 'glyphicon glyphicon-chevron-down' : 'glyphicon glyphicon-chevron-right'}"></span>&nbsp;<a href="javascript:void(0)" data-toggle="collapse" data-target=".js-issue-date" th:text="#{t_specify_issue_date}">
175176
Specify date of release
176177
</a>
177178
</div>
178179
</div>
179180

180-
<div class="form-group form-group-sm collapse js-issue-date" th:classappend="${#fields.hasErrors('day') or #fields.hasErrors('month') or #fields.hasErrors('year') ? 'has-error in' : ''}">
181+
<div class="form-group form-group-sm collapse js-issue-date" th:classappend="${issueDateHasErrors ? 'has-error in' : ''}">
181182
<label for="year" class="control-label col-sm-3">
182183
<span class="field-label" th:text="#{t_issue_date}">
183184
Date of release

0 commit comments

Comments
 (0)