File tree 4 files changed +13
-2
lines changed
java/ru/mystamps/web/support/togglz
resources/ru/mystamps/i18n
webapp/WEB-INF/views/site
4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,10 @@ public enum Features implements Feature {
51
51
52
52
@ Label ("/series/add: show link with auto-suggestions" )
53
53
@ EnabledByDefault
54
- SHOW_SUGGESTION_LINK ;
54
+ SHOW_SUGGESTION_LINK ,
55
+
56
+ @ Label ("/site/index: search by catalog in collection" )
57
+ SEARCH_IN_COLLECTION ;
55
58
56
59
public boolean isActive () {
57
60
return FeatureContext .getFeatureManager ().isActive (this );
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ t_catalog = Catalog
77
77
t_search = Search
78
78
t_view_suspicious_activities = view suspicious activities
79
79
t_view_daily_statistics = view daily statistics
80
+ t_in_my_collection = In my collection
80
81
81
82
# account/register.html
82
83
t_registration_on_site = Register on site
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ t_catalog = Каталог
77
77
t_search = Найти
78
78
t_view_suspicious_activities = посмотреть подозрительные события
79
79
t_view_daily_statistics = посмотреть дневную статистику
80
+ t_in_my_collection = В моей коллекции
80
81
81
82
# account/register.html
82
83
t_registration_on_site = Регистрация на сайте
Original file line number Diff line number Diff line change 2
2
< html lang ="en " th:lang ="${#locale.language == 'ru' ? 'ru' : 'en'} "
3
3
xmlns ="http://www.w3.org/1999/xhtml "
4
4
xmlns:th ="http://www.thymeleaf.org "
5
- xmlns:sec ="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3 ">
5
+ xmlns:sec ="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3 "
6
+ xmlns:togglz ="https://github.com/heneke/thymeleaf-extras-togglz ">
6
7
< head >
7
8
< meta charset ="utf-8 " />
8
9
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
@@ -181,6 +182,11 @@ <h4 class="panel-title" th:text="#{t_search_by_catalog}">Search by catalog</h4>
181
182
< option value ="zagorski " th:text ="#{t_zagorski} "> Zagorski</ option >
182
183
</ select >
183
184
</ div >
185
+ <!-- @todo #673 Add integration tests for search by a catalog in user's collection -->
186
+ < div class ="form-group " sec:authorize ="isAuthenticated() " togglz:active ="SEARCH_IN_COLLECTION ">
187
+ < input id ="in-collection " name ="inCollection " type ="checkbox " />
188
+ < label for ="in-collection " th:text ="#{t_in_my_collection} "> In my collection</ label >
189
+ </ div >
184
190
< div class ="form-group ">
185
191
< input type ="submit " value ="Search " th:value ="#{t_search} " class ="btn btn-primary " />
186
192
</ div >
You can’t perform that action at this time.
0 commit comments