NIHVIVO-2894: Updated account templates to enable search and account total. Working on filter by role,

This commit is contained in:
manolobevia 2011-07-14 03:21:01 +00:00
parent 3e30283d6b
commit 331e8c5bfa
2 changed files with 20 additions and 17 deletions

View file

@ -44,9 +44,9 @@
</p>
</section>
</#if>
<form method="POST" action="${formUrls.list}" class="customForm" role="filter by roles">
<section id="filter-roles">
<select name="roleFilterUri" id="">
<select name="roleFilterUri" id="roleFilterUri">
<option value="" <#if roleFilterUri = "">selected</#if> >Filter by roles</option>
<#list roles as role>
<option value="${role.uri}" <#if roleFilterUri = role.uri>selected</#if> >${role.label}</option>
@ -58,10 +58,11 @@
-->
</select>
</section>
</form>
<form method="POST" action="${formUrls.list}" class="customForm" role="search accounts">
<section id="search-accounts">
<input type="text" name="" />
<input type="text" name="searchTerm" />
<input class="submit" type="submit" value="Search accounts"/>
<!--
When searchTerm changes,

View file

@ -5,6 +5,7 @@
and delete function.
------------------------------------------------------------------------------>
<#assign counts=[25, 50, 100] /> <#-- accounts per page-->
<#macro accountsNav accountsCount=counts>
@ -17,12 +18,13 @@
-->
<nav class="display-tools">
<span>| n accounts | </span>
<span>| ${total} accounts | </span>
<select name="accountsPerPage" class="accounts-per-page">
<#list accountsCount as count>
<option value="${count}" <#if accountsPerPage=count>selected</#if> >${count}</option>
</#list>
<option value="${total}" <#if accountsPerPage=total>selected</#if> >All</option>
<!--
When accountsPerPage changes,
set pageIndex to 1