#* @vtlvariable name="action" type="com.atlassian.confluence.user.actions.UserPickerAction" *# $action.getText("title.search.entities") #requireResource('confluence.admin.user:entitypicker') #parse ( "/template/includes/actionerrors.vm" ) #parse ("/spaces/permissions/userpicker-form.vm") #if (!$action.hasErrors())
#if($stringUtils.isNotEmpty($memberGroups))

$action.getText("userpicker.group.listing") $action.memberGroups

#end
#set( $users = $action.pageResponse.results ) #set( $usersExist = $users && !$users.isEmpty() ) #if( $usersExist) #if ($usersExist) #foreach ($user in $users) #end #end
$action.getText("check.all") $action.getText("user.name") $action.getText("user.fullname") $action.getText("email")
$!htmlUtil.htmlEncode($user.name) $!htmlUtil.htmlEncode($user.fullName) $!htmlUtil.htmlEncode($generalUtil.maskEmail($user.email))
#else $soyTemplateRendererHelper.getRenderedTemplateHtml("com.atlassian.auiplugin:aui-experimental-soy-templates", "aui.message.info.soy", {"content" : $action.getText('no.users.found').toString()}) #end #if ($usersExist) #set ($paginationUrlHtml = "userpicker.action?searchTerm=$!htmlUtil.urlEncode($!{searchTerm})&userSearch=$userSearch&groupTerm=$!htmlUtil.urlEncode($!{groupTerm})&onPopupSubmit=$!htmlUtil.urlEncode($!{onPopupSubmit})&") #set ($currentIndex = $action.pageResponse.pageRequest.start) #if ($action.showUnlicensedUsers) #set ($paginationUrlHtml = "${paginationUrlHtml}showUnlicensedUsers=$action.showUnlicensedUsers&") #end #requireResource("confluence.web.resources:pagination-styles") #requireResource("com.atlassian.auiplugin:aui-navigation") #set ($limit = $action.pageResponse.pageRequest.limit) #set ($nextStartIndex = $currentIndex + $limit) ## round up #set ($currentPageNum = ($currentIndex + $limit - 1)/$limit + 1) #set ($prevPageIndex = $currentPageNum - 2) #set ($previousStartIndex = $prevPageIndex * $limit) #if( $action.pageResponse.size() > 0 || $currentIndex > 0)
    ## #if($previousStartIndex >= 0) ##
  1. $action.getText('aui.first.name')
  2. ## #else ##
  3. $action.getText('aui.first.name')
  4. ## #end
  5. #if($currentIndex > 0) $action.getText('aui.prev.name') #else $action.getText('aui.prev.name') #end
  6. ## add pagination links for pages 1 through the current page #if ($currentIndex > 0) #foreach($i in [0..$prevPageIndex]) #set ($pageNum = $i + 1) #set ($startIndex = $i * $limit)
  7. $pageNum
  8. #end #end
  9. $currentPageNum
  10. ## add pagination links for pages current to the end, although we don't have the full list... #if($action.pageResponse.hasMore()) #foreach($i in [$currentPageNum..$currentPageNum]) #set ($pageNum = $i + 1) #set ($pageIndex = $i * $limit)
  11. $pageNum
  12. #end #end ## add the next page
  13. #if($action.pageResponse.hasMore()) $action.getText('aui.next.name') #else $action.getText('aui.next.name') #end
#end
#end
#end