{** * templates/subscription/institutionalSubscriptionForm.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. * * Individual subscription form under journal management. * *} {strip} {assign var="pageCrumbTitle" value="$subscriptionTitle"} {if $subscriptionId} {assign var="pageTitle" value="manager.subscriptions.edit"} {url|assign:"currentUrl" op="editSubscription" path="institutional"|to_array:$subscriptionId userId=$userId} {else} {assign var="pageTitle" value="manager.subscriptions.create"} {url|assign:"currentUrl" op="createSubscription" path="institutional" userId=$userId} {/if} {assign var="pageId" value="manager.subscriptions.institutionalSubscriptionForm"} {include file="common/header.tpl"} {/strip}
{if $subscriptionId} {/if} {include file="common/formErrors.tpl"} {if count($formLocales) > 1} {/if} {include file="subscription/subscriptionForm.tpl"} {* For new subscriptions, set end date for default subscription type *} {if !$subscriptionId && !$ipRanges} {/if}
{fieldLabel name="formLocale" key="form.formLanguage"} {if $subscriptionId} {url|assign:"formUrl" op="editSubscription" path="institutional"|to_array:$subscriptionId userId=$userId escape=false} {else} {url|assign:"formUrl" op="createSubscription" path="institutional" escape=false} {/if} {form_language_chooser form="subscriptionForm" url=$formUrl} {translate key="form.formLanguage.description"}


{fieldLabel name="institutionName" required="true" key="manager.subscriptions.form.institutionName"}
{fieldLabel name="institutionMailingAddress" key="manager.subscriptions.form.institutionMailingAddress"}
{fieldLabel name="domain" key="manager.subscriptions.form.domain"}
  {translate key="manager.subscriptions.form.domainInstructions"}
{foreach name=ipRanges from=$ipRanges key=ipRangeIndex item=ipRange} {if $ipRangeIndex == 0} {else} {/if} {else} {/if} {foreachelse} {/foreach}
{fieldLabel name="ipRanges" key="manager.subscriptions.form.ipRange"} {fieldLabel name="ipRanges[$ipRangeIndex]" key="manager.subscriptions.form.ipRangeItem} {if $smarty.foreach.ipRanges.total > 1}
{fieldLabel name="ipRanges" key="manager.subscriptions.form.ipRange"} {fieldLabel name="ipRanges[0]" key="manager.subscriptions.form.ipRangeItem}
   
    {translate key="manager.subscriptions.form.ipRangeInstructions"}

{include file="subscription/subscriptionFormUser.tpl"}
{fieldLabel name="userId" required="true" key="manager.subscriptions.form.userContact"} {assign var=emailString value="$userFullName <$userEmail>"} {url|assign:"url" page="user" op="email" to=$emailString|to_array redirectUrl=$currentUrl} {$username|escape}  {icon name="mail" url=$url}  {translate key="common.select"}


{fieldLabel name="notes" key="manager.subscriptions.form.notes"}

{if not $subscriptionId} {/if}

{translate key="common.requiredField"}

{include file="common/footer.tpl"}