{** * templates/subscription/individualSubscriptions.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. * * Display list of individual subscriptions in journal management. * *} {strip} {assign var="pageTitle" value="manager.individualSubscriptions"} {assign var="pageId" value="manager.individualSubscriptions"} {include file="common/header.tpl"} {/strip}
{if !$dateFrom} {assign var="dateFrom" value="--"} {/if} {if !$dateTo} {assign var="dateTo" value="--"} {/if}

{translate key="common.between"} {html_select_date prefix="dateFrom" time=$dateFrom all_extra="class=\"selectMenu\"" year_empty="" month_empty="" day_empty="" start_year="-5" end_year="+5"} {translate key="common.and"} {html_select_date prefix="dateTo" time=$dateTo all_extra="class=\"selectMenu\"" year_empty="" month_empty="" day_empty="" start_year="-5" end_year="+5"}

{iterate from=subscriptions item=subscription} {assign var=isNonExpiring value=$subscription->isNonExpiring()} {/iterate} {if $subscriptions->wasEmpty()} {else} {/if}
 
{translate key="manager.subscriptions.user"} {translate key="manager.subscriptions.subscriptionType"} {translate key="subscriptions.status"} {translate key="manager.subscriptions.dateStart"} {translate key="manager.subscriptions.dateEnd"} {translate key="common.action"}
 
{assign var=emailString value=$subscription->getUserFullName()|concat:" <":$subscription->getUserEmail():">"} {url|assign:"redirectUrl" op="subscriptions" path="individual" escape=false} {url|assign:"url" page="user" op="email" to=$emailString|to_array redirectUrl=$redirectUrl} {$subscription->getUserFullName()|escape} {icon name="mail" url=$url} {$subscription->getSubscriptionTypeName()|escape} {$subscription->getStatusString()|escape} {if $isNonExpiring} {else}{if $subscription->isExpired()}{$subscription->getDateStart()|date_format:$dateFormatShort}{else}{$subscription->getDateStart()|date_format:$dateFormatShort}{/if}{/if} {if $isNonExpiring}{translate key="subscriptionTypes.nonExpiring"}{else}{if $subscription->isExpired()}{$subscription->getDateEnd()|date_format:$dateFormatShort}{else}{$subscription->getDateEnd()|date_format:$dateFormatShort}{/if}{/if} getId()}" class="action">{translate key="common.edit"}{if !$isNonExpiring} | getId()}" class="action">{translate key="manager.subscriptions.renew"}{/if} | getId()}" onclick="return confirm('{translate|escape:"jsparam" key="manager.subscriptions.confirmDelete"}')" class="action">{translate key="common.delete"}
 
{translate key="manager.subscriptions.noneCreated"}
 
{page_info iterator=$subscriptions} {page_links anchor="subscriptions" name="subscriptions" iterator=$subscriptions searchField=$searchField searchMatch=$searchMatch search=$search dateSearchField=$dateSearchField dateFromDay=$dateFromDay dateFromYear=$dateFromYear dateFromMonth=$dateFromMonth dateToDay=$dateToDay dateToYear=$dateToYear dateToMonth=$dateToMonth filterStatus=$filterStatus}
{translate key="manager.subscriptions.create"}
{include file="common/footer.tpl"}