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