@@ -391,6 +391,9 @@ <h5 th:text="#{t_hidden_images}">Hidden images</h5>
391
391
</ dl >
392
392
</ div >
393
393
</ div >
394
+
395
+ < div id ="add-comment " sec:authorize ="hasAuthority('ADD_COMMENTS_TO_SERIES') "> </ div >
396
+
394
397
< div id ="similar-series " class ="row " th:if ="${not #lists.isEmpty(similarSeries)} ">
395
398
< div class ="col-sm-10 col-sm-offset-2 ">
396
399
< h5 class ="text-center " th:text ="#{t_similar_series} ">
@@ -835,7 +838,7 @@ <h5 th:text="#{t_add_info_who_selling_series}">Add info about selling/buying thi
835
838
th:src ="${SERIES_INFO_JS} "> </ script >
836
839
837
840
<!--/*/
838
- <th:block sec:authorize="hasAnyAuthority('IMPORT_SERIES_SALES', 'MARK_SIMILAR_SERIES')">
841
+ <th:block sec:authorize="hasAnyAuthority('IMPORT_SERIES_SALES', 'MARK_SIMILAR_SERIES', 'ADD_COMMENTS_TO_SERIES' )">
839
842
/*/-->
840
843
< script src ="
https://unpkg.com/[email protected] /umd/react.development.js "
th:src ="
${REACT_JS} "
> </ script >
841
844
< script src ="
https://unpkg.com/[email protected] /umd/react-dom.development.js "
th:src ="
${REACT_DOM_JS} "
> </ script >
@@ -920,6 +923,33 @@ <h5 th:text="#{t_add_info_who_selling_series}">Add info about selling/buying thi
920
923
</th:block>
921
924
/*/-->
922
925
926
+ <!--/*/
927
+ <th:block sec:authorize="hasAuthority('ADD_COMMENTS_TO_SERIES')">
928
+ /*/-->
929
+ < script src ="../../../../../../target/classes/js/components/AddCommentForm.js " th:src ="${ADD_COMMENT_FORM_JS} "> </ script >
930
+ < script th:inline ="javascript ">
931
+ /*[+
932
+ var addCommentProps = {
933
+ 'csrfHeaderName': [[ ${_csrf.headerName} ]],
934
+ 'csrfTokenValue': [[ ${_csrf.token} ]],
935
+ 'l10n': {
936
+ }
937
+ };
938
+ +]*/
939
+
940
+ /*[- */
941
+ var addCommentProps = {
942
+ 'url' : '/series/100' ,
943
+ 'l10n' : { }
944
+ } ;
945
+ /* -]*/
946
+
947
+ renderComponent ( AddCommentForm , addCommentProps , 'add-comment' ) ;
948
+ </ script >
949
+ <!--/*/
950
+ </th:block>
951
+ /*/-->
952
+
923
953
<!--/* @todo #1280 Mark similar series: add integration tests */-->
924
954
<!--/*/
925
955
<th:block sec:authorize="hasAuthority('MARK_SIMILAR_SERIES')">
0 commit comments