NIHVIVO-2343 First cut at the Freemarker and Javascript for proxy editing on MyAccount page.
This commit is contained in:
parent
9ab85a2bb0
commit
0a951807d3
3 changed files with 256 additions and 0 deletions
|
@ -0,0 +1,54 @@
|
|||
<#-- $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>
|
||||
|
||||
<#--
|
||||
Each proxy will be shown using the HTML inside this div.
|
||||
One of the links "removeProxy" and "restoreProxy" will show at a time.
|
||||
The hidden input field named "proxyUri" is required.
|
||||
-->
|
||||
<div name="template" style="display: none">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<img width="90" alt="%label%" src="%imageUrl%">
|
||||
</td>
|
||||
<td>
|
||||
%label% | %classLabel%
|
||||
<br>
|
||||
<a href="." name="removeProxy">remove</a>
|
||||
<a href="." name="restoreProxy">restore</a>
|
||||
<input type="hidden" name="proxyUri" value="%uri%" >
|
||||
</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>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/account/accountProxyProxiesPanel.js"></script>')}
|
Loading…
Add table
Add a link
Reference in a new issue