File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
java/ru/mystamps/web/support/togglz
webapp/WEB-INF/views/series Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,11 @@ public enum Features implements Feature {
46
46
47
47
@ Label ("Possibility to user to add series to collection" )
48
48
@ EnabledByDefault
49
- ADD_SERIES_TO_COLLECTION ;
49
+ ADD_SERIES_TO_COLLECTION ,
50
+
51
+ @ Label ("Possibility of user to add additional images to series" )
52
+ @ EnabledByDefault
53
+ ADD_ADDITIONAL_IMAGES_TO_SERIES ;
50
54
51
55
public boolean isActive () {
52
56
return FeatureContext .getFeatureManager ().isActive (this );
Original file line number Diff line number Diff line change @@ -379,7 +379,7 @@ <h3 th:text="#{t_add_series_ucfirst}">
379
379
</ label >
380
380
< div class ="col-sm-7 ">
381
381
< input type ="file " id ="image " class ="form-control " style ="box-shadow: none; border: 0px; " required ="required " accept ="image/png,image/jpeg " th:field ="*{image} " />
382
- < small >
382
+ < small togglz:active =" ADD_ADDITIONAL_IMAGES_TO_SERIES " >
383
383
< span class ="hint-block " th:text ="#{t_add_more_images_hint} ">
384
384
You will be able to add additional images on the series page
385
385
</ span >
Original file line number Diff line number Diff line change 56
56
< img src ="../../../../../test/resources/test.png " class ="img-responsive series-images " th:src ="@{${GET_IMAGE_PAGE}(id=${image.id})} " />
57
57
</ div >
58
58
</ div >
59
- < div class ="row ">
59
+ < div class ="row " togglz:active =" ADD_ADDITIONAL_IMAGES_TO_SERIES " >
60
60
< div class ="col-sm-6 col-sm-offset-3 ">
61
61
< form method ="post " class ="form-horizontal " enctype ="multipart/form-data " th:action ="@{${INFO_SERIES_PAGE}(id=${series.id})} + '?' + ${_csrf.parameterName} + '=' + ${_csrf.token} " th:object ="${addImageForm} ">
62
62
< div class ="form-group " th:classappend ="${#fields.hasErrors('image') ? 'has-error' : ''} ">
You can’t perform that action at this time.
0 commit comments