Newer
Older
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<#macro searchTextAndButton search>
<div class="row no-margin-bottom valign-wrapper">
<div class="col s10 m7 offset-m1 l6 offset-l2">
<div class="input-field">
<input id="searchText" type="text" name="searchText" value="${search.getSearchText()}">
<label for="searchText">${locale.getString("search")}</label>
</div>
</div>
<div class="col s2 m3 l4">
<div class="hide-on-small-only">
<button class="btn waves-effect waves-light budgetmaster-blue" type="submit" name="action">
<i class="material-icons left">search</i>${locale.getString("search.submit")}
</button>
</div>
<div class="hide-on-med-and-up">
<button class="btn waves-effect waves-light budgetmaster-blue" type="submit" name="action">
<i class="material-icons">search</i>
</button>
</div>
</div>
</div>
</#macro>
<#macro checkboxes search>
<div class="row">
<div class="col s8 offset-s2 m4 offset-m2 l3 offset-l3">
<div class="search-checkbox-container">
<label>
<input type="checkbox" name="searchName" <#if search.isSearchName()>checked="checked"</#if>>
<span class="text-color">${locale.getString('search.in.name')}</span>
</label>
</div>
</div>
<div class="col s8 offset-s2 m6 l6">
<div class="search-checkbox-container">
<label>
<input type="checkbox" name="searchDescription" <#if search.isSearchDescription()>checked="checked"</#if>>
<span class="text-color">${locale.getString('search.in.description')}</span>
</label>
</div>
</div>
<div class="col s8 offset-s2 m4 offset-m2 l3 offset-l3">
<div class="search-checkbox-container">
<label>
<input type="checkbox" name="searchCategory" <#if search.isSearchCategory()>checked="checked"</#if>>
<span class="text-color">${locale.getString('search.in.category')}</span>
</label>
</div>
</div>
<div class="col s8 offset-s2 m6 l6">
<div class="search-checkbox-container">
<label>
<input type="checkbox" name="searchTags" <#if search.isSearchTags()>checked="checked"</#if>>
<span class="text-color">${locale.getString('search.in.tags')}</span>
</label>
</div>
</div>
</div>
</#macro>
<#macro pagination page>
<div class="row">
<div class="col s12 center-align">
<ul class="pagination">
<li class="text-color <#if page.getNumber() == 0>disabled</#if>"><a class="page-link" data-page="${page.getNumber()-1}"><i class="material-icons">chevron_left</i></a></li>
<#list 0..page.getTotalPages()-1 as i>
<li class="waves-effect text-color <#if page.getNumber() == i>active</#if>"><a class="page-link" data-page="${i}">${i+1}</a></li>
</#list>
<li class="text-color <#if page.getNumber() == page.getTotalPages()-1>disabled</#if>"><a class="page-link" data-page="${page.getNumber()+1}"><i class="material-icons">chevron_right</i></a></li>
</ul>
</div>
</div>