{** * templates/manager/people/enrollment.tpl * * Copyright (c) 2013-2015 Simon Fraser University Library * Copyright (c) 2003-2015 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * List enrolled users. * *} {strip} {assign var="pageTitle" value="manager.people.enrollment"} {include file="common/header.tpl"} {/strip}

{translate key=$roleName}

 

{foreach from=$alphaList item=letter}{if $letter == $searchInitial}{$letter|escape}{else}{$letter|escape}{/if} {/foreach}{if $searchInitial==''}{translate key="common.all"}{else}{translate key="common.all"}{/if}

{if not $roleId}
{else}

{translate key="manager.people.allUsers"}

{/if}
{iterate from=users item=user} {assign var=userExists value=1} {/iterate} {if $users->wasEmpty()} {else} {/if}
 
  {sort_heading key="user.username" sort="username"} {sort_heading key="user.name" sort="name"} {sort_heading key="user.email" sort="email"} {translate key="common.action"}
 
getId()}">{$user->getUsername()|escape|wordwrap:15:" ":true} {$user->getFullName()|escape} {assign var=emailString value=$user->getFullName()|concat:" <":$user->getEmail():">"} {url|assign:"redirectUrl" path=$roleSymbolic escape=false} {url|assign:"url" page="user" op="email" to=$emailString|to_array redirectUrl=$redirectUrl} {$user->getEmail()|truncate:15:"..."|escape} {icon name="mail" url=$url} {if $roleId} getId() journalId=$currentJournal->getId()}" onclick="return confirm('{translate|escape:"jsparam" key="manager.people.confirmUnenroll"}')" class="action">{translate key="manager.people.unenroll"} | {/if} getId()}" class="action">{translate key="common.edit"} {if $thisUser->getId() != $user->getId()} | getId()}" class="action">{translate key="manager.people.signInAs"} {if !$roleId}| getId()}" onclick="return confirm('{translate|escape:"jsparam" key="manager.people.confirmRemove"}')" class="action">{translate key="manager.people.remove"}{/if} {if $user->getDisabled()} | getId()}" class="action">{translate key="manager.people.enable"} {else} | {translate key="manager.people.disable"} {/if} {/if}
 
{translate key="manager.people.noneEnrolled"}
 
{page_info iterator=$users} {page_links anchor="users" name="users" iterator=$users searchField=$searchField searchMatch=$searchMatch search=$search dateFromDay=$dateFromDay dateFromYear=$dateFromYear dateFromMonth=$dateFromMonth dateToDay=$dateToDay dateToYear=$dateToYear dateToMonth=$dateToMonth roleSymbolic=$roleSymbolic searchInitial=$searchInitial sort=$sort sortDirection=$sortDirection}
{if $userExists}

 

{/if}
{translate key="manager.people.enrollExistingUser"} | {url|assign:"enrollmentUrl" path=$roleSymbolic searchInitial=$searchInitial searchField=$searchField searchMatch=$searchMatch search=$search dateFromDay=$dateFromDay dateFromYear=$dateFromYear dateFromMonth=$dateFromMonth dateToDay=$dateToDay dateToYear=$dateToYear dateToMonth=$dateToMonth searchInitial=$searchInitial} {translate key="manager.people.createUser"} | {translate key="manager.people.enrollSync"} {include file="common/footer.tpl"}