File tree 2 files changed +7
-4
lines changed
java/ru/mystamps/web/feature/series
webapp/WEB-INF/views/series
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -689,7 +689,6 @@ private static void addImageFormToModel(Model model) {
689
689
}
690
690
691
691
private static void addStampsToCollectionForm (Model model , SeriesDto series ) {
692
- // FIXME: only add when isSeriesInCollection
693
692
if (model .containsAttribute ("addToCollectionForm" )) {
694
693
return ;
695
694
}
Original file line number Diff line number Diff line change @@ -361,13 +361,17 @@ <h5 class="text-center" th:text="#{t_similar_series}">
361
361
< div class ="col-sm-4 ">
362
362
363
363
< div class ="row ">
364
- < div class ="col-sm-12 " th:if =" ${not isSeriesInCollection} " sec:authorize ="hasAuthority('UPDATE_COLLECTION') ">
364
+ < div class ="col-sm-12 " sec:authorize ="hasAuthority('UPDATE_COLLECTION') ">
365
365
< form id ="add-series-form " method ="post " action ="../collection/info.html "
366
366
th:action ="@{${INFO_SERIES_PAGE}(id=${series.id})} "
367
367
th:object ="${addToCollectionForm} ">
368
- < p th:text ="#{t_series_not_in_collection} ">
368
+
369
+ <!--/*/
370
+ <p th:if="${not isSeriesInCollection}" th:text="#{t_series_not_in_collection}">
369
371
Series isn't part of your collection
370
372
</p>
373
+ /*/-->
374
+
371
375
< p id ="number-of-stamps-block " th:if ="${series.quantity != 1} ">
372
376
< span th:text ="#{t_i_have} " th:remove ="tag "> I have</ span >
373
377
< input id ="number-of-stamps "
@@ -435,7 +439,6 @@ <h5 class="text-center" th:text="#{t_similar_series}">
435
439
</ form >
436
440
</ div >
437
441
438
- <!--/*/
439
442
< div class ="col-sm-12 " th:if ="${isSeriesInCollection} " sec:authorize ="hasAuthority('UPDATE_COLLECTION') ">
440
443
< form id ="remove-series-form " method ="post " action ="../collection/info.html " th:action ="@{${INFO_SERIES_PAGE}(id=${series.id})} ">
441
444
< p th:text ="#{t_series_in_collection} ">
@@ -448,6 +451,7 @@ <h5 class="text-center" th:text="#{t_similar_series}">
448
451
</ form >
449
452
</ div >
450
453
454
+ <!--/*/
451
455
<div class="col-sm-12" sec:authorize="isAnonymous()">
452
456
<p th:utext="#{t_need_authentication_to_add_series_to_collection(@{${REGISTRATION_PAGE}}, @{${AUTHENTICATION_PAGE}})}">
453
457
In order to add this series to your collection you should <a href="../account/register.html">register</a>
You can’t perform that action at this time.
0 commit comments