Skip to content

Commit 4b80731

Browse files
committed
show field
1 parent cec09fc commit 4b80731

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/main/javascript/series/add.js

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ function initPage(suggestCountryUrl) {
1010
return CatalogUtils.expandNumbers(val);
1111
});
1212
});
13+
14+
$(".collapse").collapse('hide');
1315

1416
$('.collapse').on('show.bs.collapse hide.bs.collapse', function toggleChevron() {
1517
$(this)

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ <h3 th:text="${#strings.capitalize(add_series)}">
283283
</div>
284284
</div>
285285

286-
<div class="form-group form-group-sm collapse js-issue-date" th:classappend="|${issueDateHasErrors ? 'has-error in' : ''} ${issueDateHasValues ? 'in' : ''}|">
286+
<div class="form-group form-group-sm collapse js-issue-date in" th:classappend="|${issueDateHasErrors ? 'has-error in' : ''} ${issueDateHasValues ? 'in' : ''}|">
287287
<label for="year" class="control-label col-sm-3">
288288
<span class="field-label" th:text="#{t_issue_date}">
289289
Date of release
@@ -375,7 +375,7 @@ <h3 th:text="${#strings.capitalize(add_series)}">
375375
</div>
376376
</div>
377377

378-
<div class="form-group form-group-sm collapse js-catalogs-info" th:classappend="|${michelHasErrors ? 'has-error' : ''} ${showCatalogsInfo ? 'in' : ''}|">
378+
<div class="form-group form-group-sm collapse js-catalogs-info in" th:classappend="|${michelHasErrors ? 'has-error' : ''} ${showCatalogsInfo ? 'in' : ''}|">
379379
<label for="michelNumbers" class="control-label col-sm-3">
380380
<span class="field-label" th:text="#{t_michel}">
381381
Michel
@@ -400,7 +400,7 @@ <h3 th:text="${#strings.capitalize(add_series)}">
400400
</div>
401401
</div>
402402

403-
<div class="form-group form-group-sm collapse js-catalogs-info" th:classappend="|${scottHasErrors ? 'has-error' : ''} ${showCatalogsInfo ? 'in' : ''}|">
403+
<div class="form-group form-group-sm collapse js-catalogs-info in" th:classappend="|${scottHasErrors ? 'has-error' : ''} ${showCatalogsInfo ? 'in' : ''}|">
404404
<label for="scottNumbers" class="control-label col-sm-3">
405405
<span class="field-label" th:text="#{t_scott}">
406406
Scott
@@ -425,7 +425,7 @@ <h3 th:text="${#strings.capitalize(add_series)}">
425425
</div>
426426
</div>
427427

428-
<div class="form-group form-group-sm collapse js-catalogs-info" th:classappend="|${yvertHasErrors ? 'has-error' : ''} ${showCatalogsInfo ? 'in' : ''}|">
428+
<div class="form-group form-group-sm collapse js-catalogs-info in" th:classappend="|${yvertHasErrors ? 'has-error' : ''} ${showCatalogsInfo ? 'in' : ''}|">
429429
<label for="yvertNumbers" class="control-label col-sm-3">
430430
<span class="field-label" th:text="#{t_yvert}">
431431
Yvert
@@ -450,7 +450,7 @@ <h3 th:text="${#strings.capitalize(add_series)}">
450450
</div>
451451
</div>
452452

453-
<div class="form-group form-group-sm collapse js-catalogs-info" th:classappend="|${gibbonsHasErrors ? 'has-error' : ''} ${showCatalogsInfo ? 'in' : ''}|">
453+
<div class="form-group form-group-sm collapse js-catalogs-info in" th:classappend="|${gibbonsHasErrors ? 'has-error' : ''} ${showCatalogsInfo ? 'in' : ''}|">
454454
<label for="gibbonsNumbers" class="control-label col-sm-3">
455455
<span class="field-label" th:text="#{t_sg}">
456456
Gibbons
@@ -481,7 +481,7 @@ <h3 th:text="${#strings.capitalize(add_series)}">
481481
</div>
482482
</div>
483483

484-
<div class="form-group collapse js-comment" th:classappend="|${#fields.hasErrors('comment') ? 'has-error in' : ''} ${addSeriesForm.comment != null ? 'in' : ''}|" sec:authorize="hasAuthority('ADD_COMMENTS_TO_SERIES')">
484+
<div class="form-group collapse js-comment in" th:classappend="|${#fields.hasErrors('comment') ? 'has-error in' : ''} ${addSeriesForm.comment != null ? 'in' : ''}|" sec:authorize="hasAuthority('ADD_COMMENTS_TO_SERIES')">
485485
<label for="comment" class="control-label col-sm-3">
486486
<span class="field-label" th:text="#{t_comment}">
487487
Comment

0 commit comments

Comments
 (0)