Advertisement
Guest User

MobileSearch

a guest
Dec 21st, 2015
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.16 KB | None | 0 0
  1. <#macro mobileSearch >
  2.     <div class="open-filters"><b><@u.message "mobile.open.search.filters" /></b> <span class="arrow"></span> </br>
  3.         <@u.message "mobile.filters.selected"/>&nbsp;
  4.         <#if currentMunicipalities?? && currentMunicipalities.present && currentMunicipalities.value?size gt 0>
  5.             <@u.printMunicipalities currentMunicipalities.value />
  6.         <#else>
  7.             <@u.message "mobile.allMunicipalities" />
  8.         </#if>
  9.  
  10.         <#if currentSearch.type != "all">
  11.             <br/><@u.message "type."+ currentSearch.type + ".mobile.checkbox"/><#if currentSearch.show != "all">,</#if>
  12.         </#if>
  13.         <#if currentSearch.show != "all">
  14.             <#if currentSearch.type == "all">
  15.                 <br/>
  16.             </#if>
  17.             <@u.message "show."+ currentSearch.show + ".mobile.checkbox"/>
  18.         </#if>
  19.  
  20.  
  21.     </div>
  22.     <div class="search-options-mobile">
  23.         <div class="search-parameters-wrapper">
  24.             <form action="${springMacroRequestContext.requestUri}" method="get">
  25.                 <h3><@u.message "mobile.municipalities"/></h3>
  26.                 <@f.municipalitySelect path="currentSearch.municipalities" options=municipalities required="" cssClass="" showLabel=false defaultOption="currentSearch.municipality.all" allowSingleDeselect=true onlyActive=true multiple=true id="mobileSelection "/>
  27.                 <br/>
  28.  
  29.                 <h3><@u.message "mobile.type"/></h3>
  30.  
  31.                 <@f.mobileCheckBox path=currentSearch.type  prefix="type.all" name="type" value="all" id="all"  />
  32.                 <@f.mobileCheckBox path=currentSearch.type  prefix="type.normal" name="type" value="normal" id="normal"  />
  33.                 <@f.mobileCheckBox path=currentSearch.type  prefix="type.council" name="type" value="council" id="council"  />
  34.                 <@f.mobileCheckBox path=currentSearch.type  prefix="type.citizen" name="type" value="citizen" id="citizen"  />
  35.                 <br/>
  36.                 <h3><@u.message "mobile.show"/></h3>
  37.                 <@f.mobileCheckBox path=currentSearch.show  prefix="show.all" name="show" value="all" id="show-all"  />
  38.                 <@f.mobileCheckBox path=currentSearch.show  prefix="show.collecting" name="show" value="collecting" id="collecting"  />
  39.                 <@f.mobileCheckBox path=currentSearch.show  prefix="show.sent" name="show" value="sent" id="sent"  />
  40.  
  41.                 <br/>
  42.                 <h3><@u.message "mobile.sort" /></h3>
  43.                 <@f.mobileCheckBox path=currentSearch.orderBy prefix="orderBy.latest" name="orderBy" value="latest" id="latest"  />
  44.                 <@f.mobileCheckBox path=currentSearch.orderBy prefix="orderBy.oldest" name="orderBy" value="oldest" id="oldest"  />
  45.                 <@f.mobileCheckBox path=currentSearch.orderBy prefix="orderBy.mostParticipants" name="orderBy" value="mostParticipants" id="mostParticipants"  />
  46.                 <@f.mobileCheckBox path=currentSearch.orderBy prefix="orderBy.leastParticipants" name="orderBy" value="leastParticipants" id="leastParticipants"  />
  47.  
  48.                 <input class="run-search-mobile" type="submit" value="OK">
  49.  
  50.             </form>
  51.         </div>
  52.     </div>
  53.  
  54. </#macro>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement