2011-10-27 14:49:48 +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 -->
|
|
|
|
|
2013-04-26 23:58:50 -04:00
|
|
|
<#assign strings = i18n() />
|
|
|
|
|
2011-11-11 15:15:05 +00:00
|
|
|
<section id="edit-myProxy" name="proxyProxiesPanel" role="region">
|
2013-04-26 23:58:50 -04:00
|
|
|
<h4>${strings.who_can_edit_profile}</h4>
|
2011-10-31 22:05:57 +00:00
|
|
|
|
2013-04-26 23:58:50 -04:00
|
|
|
<label for="addProfileEditor">${strings.add_profile_editor}</label>
|
|
|
|
<input id="addProfileEditor" type="text" name="proxySelectorAC" class="acSelector" size="35"
|
|
|
|
value="${strings.select_existing_last_name}" role="input" />
|
|
|
|
<span><img class="loading-profileMyAccoount hidden" src="${urls.images}/indicatorWhite.gif" /></span>
|
2011-11-11 15:53:36 +00:00
|
|
|
|
2013-04-26 23:58:50 -04:00
|
|
|
<p class="search-status">
|
|
|
|
<span name='proxySelectorSearchStatus' moreCharsText='${strings.type_more_characters}' noMatchText='${strings.no_match}'> </span>
|
|
|
|
</p>
|
2011-11-10 23:15:16 +00:00
|
|
|
<p name="excludeUri" style="display: none">${myAccountUri}<p>
|
2013-04-26 23:58:50 -04:00
|
|
|
<p class="selected-editors">${strings.selected_editors}:</p>
|
2011-11-11 15:53:36 +00:00
|
|
|
|
|
|
|
<#-- Magic ul that holds all of the proxy data and the template that shows how to display it. -->
|
|
|
|
<ul name="proxyData" role="navigation">
|
2011-10-31 22:05:57 +00:00
|
|
|
<#list proxies as proxy>
|
|
|
|
<div name="data" style="display: none">
|
|
|
|
<p name="uri">${proxy.uri}</p>
|
|
|
|
<p name="label">${proxy.label}</p>
|
|
|
|
<p name="classLabel">${proxy.classLabel}</p>
|
|
|
|
<p name="imageUrl">${proxy.imageUrl}</p>
|
2011-10-27 14:49:48 +00:00
|
|
|
</div>
|
|
|
|
</#list>
|
|
|
|
|
2011-10-31 22:05:57 +00:00
|
|
|
<#--
|
|
|
|
Each proxy will be shown using the HTML inside this div.
|
|
|
|
It must contain at least:
|
|
|
|
-- a link with templatePart="remove"
|
|
|
|
-- a hidden input field with templatePart="uriField"
|
|
|
|
-->
|
2011-10-27 14:49:48 +00:00
|
|
|
<div name="template" style="display: none">
|
2011-11-11 15:53:36 +00:00
|
|
|
<li role="listitem">
|
|
|
|
<img class="photo-profile" width="90" alt="%label%" src="%imageUrl%">
|
|
|
|
|
|
|
|
<p class="proxy-info">%label% | <span class="class-label">%classLabel%</span>
|
|
|
|
<br />
|
2013-04-26 23:58:50 -04:00
|
|
|
<a class='remove-proxy' href="." templatePart="remove" title="${strings.remove_selection_title}">${strings.remove_selection}</a>
|
2011-11-11 15:53:36 +00:00
|
|
|
|
|
|
|
<input type="hidden" name="proxyUri" value="%uri%" role="input" />
|
|
|
|
</p>
|
|
|
|
</li>
|
2011-10-27 14:49:48 +00:00
|
|
|
</div>
|
2011-11-11 15:15:05 +00:00
|
|
|
</ul>
|
|
|
|
</section>
|
2011-10-27 14:49:48 +00:00
|
|
|
|
2011-10-30 16:54:23 +00:00
|
|
|
<script type="text/javascript">
|
2011-11-04 19:41:35 +00:00
|
|
|
var proxyContextInfo = {
|
2011-10-31 22:05:57 +00:00
|
|
|
baseUrl: '${urls.base}',
|
2011-11-10 21:44:34 +00:00
|
|
|
ajaxUrl: '${formUrls.proxyAjax}'
|
2011-10-30 16:54:23 +00:00
|
|
|
};
|
2013-06-11 12:25:01 -04:00
|
|
|
var i18nStrings = {
|
|
|
|
selectEditorAndProfile: '${i18n().select_editor_and_profile}'
|
|
|
|
};
|
2011-10-30 16:54:23 +00:00
|
|
|
</script>
|
|
|
|
|
2011-11-11 15:15:05 +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-10-31 22:05:57 +00:00
|
|
|
${scripts.add('<script type="text/javascript" src="${urls.base}/js/account/proxyUtils.js"></script>',
|
2011-10-27 17:26:29 +00:00
|
|
|
'<script type="text/javascript" src="${urls.base}/js/account/accountProxyCommon.js"></script>',
|
2011-11-04 19:41:35 +00:00
|
|
|
'<script type="text/javascript" src="${urls.base}/js/account/accountProxyItemsPanel.js"></script>',
|
2011-11-03 23:20:22 +00:00
|
|
|
'<script type="text/javascript" src="${urls.base}/js/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script>')}
|