2011-06-29 15:36:14 +00:00
|
|
|
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
|
|
|
|
|
|
|
<#-- Template for setting the account reference field, which can also associate a profile with the user account -->
|
|
|
|
|
2011-07-08 20:47:31 +00:00
|
|
|
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/autocomplete.css" />',
|
|
|
|
'<link rel="stylesheet" href="${urls.base}/js/jquery-ui/css/smoothness/jquery-ui-1.8.9.custom.css" />')}
|
2011-07-07 20:25:20 +00:00
|
|
|
|
2011-07-08 20:47:31 +00:00
|
|
|
<div id="associateProfileBackgroundOne">
|
|
|
|
<div style="margin-left:8px">
|
|
|
|
<label for="externalAuthId">External Auth. ID / Matching ID</label>
|
|
|
|
<input type="text" name="externalAuthId" value="${externalAuthId}" id="externalAuthId" role="input "/>
|
2011-07-11 16:04:48 +00:00
|
|
|
<span id="externalAuthIdInUse" style="display: none;" >This Identifier is already in use.</span>
|
2011-07-08 20:47:31 +00:00
|
|
|
<p class="explanatoryText" style="margin-top:-8px">Can be used to associate the account with the user's profile via the matching property.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-07-07 20:25:20 +00:00
|
|
|
<#-- If there is an associated profile, show these -->
|
|
|
|
<div id="associated">
|
2011-07-08 20:47:31 +00:00
|
|
|
<div id="associateProfileBackgroundTwo">
|
|
|
|
<p>
|
|
|
|
<label for="associatedProfileName">Associated profile:</label>
|
|
|
|
<span class="acSelectionInfo" id="associatedProfileName"></span>
|
|
|
|
<a href="" id="verifyProfileLink">(verify this match)</a>
|
|
|
|
<a href="" id="changeProfileLink">(change profile)</a>
|
|
|
|
</p>
|
|
|
|
<input type="hidden" id="associatedProfileUri" name="associatedProfileUri" value="" />
|
|
|
|
</div>
|
2011-07-07 20:25:20 +00:00
|
|
|
</div>
|
2011-06-29 15:36:14 +00:00
|
|
|
|
2011-07-07 20:25:20 +00:00
|
|
|
<#-- If we haven't selected one, show these instead -->
|
|
|
|
<div id="associationOptions">
|
2011-07-08 20:47:31 +00:00
|
|
|
<div id="associateProfileBackgroundThree">
|
|
|
|
<p>
|
|
|
|
<label for="associateProfileName">Select the associated profile</label>
|
|
|
|
<input type="text" id="associateProfileName" name="associateProfileName" class="acSelector" size="35">
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div id="associateProfileBackgroundFour">
|
|
|
|
<p> - or - </p>
|
|
|
|
<p>
|
|
|
|
<label for="">Create the associated profile</label>
|
2011-07-12 14:23:34 +00:00
|
|
|
<select name="newProfileClassUri" id="newProfileClassUri" >
|
2011-07-08 20:47:31 +00:00
|
|
|
<option value="" selected="selected">Select one</option>
|
|
|
|
<#list profileTypes?keys as key>
|
2011-07-12 14:23:34 +00:00
|
|
|
<option value="${key}" <#if newProfileClassUri = key> selected </#if> >${profileTypes[key]}</option>
|
2011-07-08 20:47:31 +00:00
|
|
|
</#list>
|
|
|
|
</select>
|
|
|
|
</p>
|
|
|
|
</div>
|
2011-07-07 20:25:20 +00:00
|
|
|
</div>
|
2011-06-29 15:36:14 +00:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
var associateProfileFieldsData = {
|
2011-07-01 16:19:53 +00:00
|
|
|
<#if userUri??>
|
|
|
|
userUri: '${userUri}' ,
|
|
|
|
<#else>
|
|
|
|
userUri: '' ,
|
|
|
|
</#if>
|
|
|
|
|
2011-07-09 18:51:35 +00:00
|
|
|
<#if associationIsReset??>
|
|
|
|
associationIsReset: 'true' ,
|
|
|
|
</#if>
|
|
|
|
|
|
|
|
<#if associatedProfileInfo??>
|
|
|
|
associatedProfileInfo: {
|
|
|
|
label: '${associatedProfileInfo.label}',
|
|
|
|
uri: '${associatedProfileInfo.uri}',
|
|
|
|
url: '${associatedProfileInfo.url}'
|
|
|
|
},
|
|
|
|
</#if>
|
|
|
|
|
2011-07-01 16:19:53 +00:00
|
|
|
<#if showAssociation??>
|
|
|
|
associationEnabled: true ,
|
|
|
|
ajaxUrl: '${formUrls.accountsAjax}'
|
|
|
|
</#if>
|
2011-06-29 15:36:14 +00:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
2011-07-01 16:19:53 +00:00
|
|
|
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery.js"></script>',
|
|
|
|
'<script type="text/javascript" src="${urls.base}/js/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script>',
|
|
|
|
'<script type="text/javascript" src="${urls.base}/js/account/accountAssociateProfile.js"></script>')}
|
2011-06-29 15:36:14 +00:00
|
|
|
|