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 -->
|
|
|
|
|
|
|
|
${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" />')}
|
|
|
|
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/account/proxy.css" />')}
|
|
|
|
|
|
|
|
<div name="proxyProxiesPanel" style="border: solid; padding: 5px; float: right;">
|
|
|
|
Proxy self editors
|
|
|
|
<br><br>
|
|
|
|
<p>Add proxy:</p>
|
|
|
|
<p><input type="text" name="proxySelectorAC" class="acSelector" size="35"></p>
|
|
|
|
<br><br>
|
|
|
|
<p>Selected proxies:</p>
|
|
|
|
|
|
|
|
<#-- Magic div thst holds all of the proxy data and the template that shows how to display it. -->
|
|
|
|
<div name="proxyData">
|
|
|
|
<#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>
|
|
|
|
</div>
|
|
|
|
</#list>
|
|
|
|
|
|
|
|
<#--
|
2011-10-27 17:26:29 +00:00
|
|
|
Each proxy will be shown using the HTML inside this div.
|
|
|
|
It must contain at least:
|
|
|
|
1) a link with templatePart="remove"
|
|
|
|
2) a link with templatePart="restore"
|
|
|
|
3) a hidden input field with templatePart="uriField"
|
|
|
|
One of the links "remove" and "restore" will show at a time.
|
2011-10-27 14:49:48 +00:00
|
|
|
-->
|
|
|
|
<div name="template" style="display: none">
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<img width="90" alt="%label%" src="%imageUrl%">
|
|
|
|
</td>
|
|
|
|
<td>
|
2011-10-27 17:26:29 +00:00
|
|
|
<div>
|
2011-10-27 14:49:48 +00:00
|
|
|
%label% | %classLabel%
|
2011-10-27 17:26:29 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
2011-10-27 18:37:13 +00:00
|
|
|
<a href="." templatePart="remove" restoreText="restore">remove</a>
|
2011-10-27 17:26:29 +00:00
|
|
|
<input type="hidden" name="proxyUri" templatePart="uriField" value="%uri%" >
|
|
|
|
</div>
|
2011-10-27 14:49:48 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery.js"></script>',
|
|
|
|
'<script type="text/javascript" src="${urls.base}/js/sparqlUtils.js"></script>',
|
2011-10-27 17:26:29 +00:00
|
|
|
'<script type="text/javascript" src="${urls.base}/js/account/accountProxyCommon.js"></script>',
|
2011-10-27 14:49:48 +00:00
|
|
|
'<script type="text/javascript" src="${urls.base}/js/account/accountProxyProxiesPanel.js"></script>')}
|