From 1aa136f0755f4b6740af55138ddcc66365c8fc78 Mon Sep 17 00:00:00 2001 From: manolobevia Date: Thu, 23 Jun 2011 19:21:05 +0000 Subject: [PATCH] NIHVIVO-2280: Created macro for generating number of accounts, pagination, accounts per page, and delete function. --- .../body/accounts/userAccounts-list.ftl | 72 ++----------------- .../account/userAccounts-accountsNav.ftl | 45 ++++++++++++ 2 files changed, 49 insertions(+), 68 deletions(-) create mode 100644 webapp/web/templates/freemarker/body/partials/account/userAccounts-accountsNav.ftl diff --git a/webapp/web/templates/freemarker/body/accounts/userAccounts-list.ftl b/webapp/web/templates/freemarker/body/accounts/userAccounts-list.ftl index 8211dfc16..10ec1d19c 100644 --- a/webapp/web/templates/freemarker/body/accounts/userAccounts-list.ftl +++ b/webapp/web/templates/freemarker/body/accounts/userAccounts-list.ftl @@ -2,6 +2,8 @@ <#-- Template for displaying list of user accounts --> +<#import "userAccounts-accountsNav.ftl" as p> +
<#--current page: @@ -108,41 +110,8 @@
-
- - + <@p.accountsNav /> - -
- @@ -216,40 +185,7 @@
Account Management
-
- - - - -
+ <@p.accountsNav />
${scripts.add('')} \ No newline at end of file diff --git a/webapp/web/templates/freemarker/body/partials/account/userAccounts-accountsNav.ftl b/webapp/web/templates/freemarker/body/partials/account/userAccounts-accountsNav.ftl new file mode 100644 index 000000000..9c69e7323 --- /dev/null +++ b/webapp/web/templates/freemarker/body/partials/account/userAccounts-accountsNav.ftl @@ -0,0 +1,45 @@ +<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> + +<#----------------------------------------------------------------------------- + Macro for generating number of accounts, pagination, accounts per page, + and delete function. +------------------------------------------------------------------------------> + +<#assign counts=[25, 50, 100] /> <#-- accounts per page--> + +<#macro accountsNav accountsCount=counts> + +
+ + + + +
+ + \ No newline at end of file