NIHVIVO-3213: Refactoring markup/styles for proxy templates

This commit is contained in:
manolobevia 2011-11-07 15:02:05 +00:00
parent 2203b09fed
commit 460d8e0365

View file

@ -8,71 +8,82 @@ ${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/cust
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/autocomplete.css" />')}
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/js/jquery-ui/css/smoothness/jquery-ui-1.8.9.custom.css" />')}
<h3><span>Manage proxy self editors & profiles</span></h3>
<h3>Manage proxy self editors & profiles</h3>
<#if message??>
<section class="account-feedback">
<#if message.success?? >
<p>
The operation was successful.
</p>
<section class="account-feedback" role="region">
<#if message.success?? >
<p>The operation was successful.</p>
</#if>
<#if message.failure?? >
<p>
The operation was unsuccessful. Full details can be found in the system log.
</p>
<p> The operation was unsuccessful. Full details can be found in the system log.</p>
</#if>
</section>
</#if>
<form action="${formUrls.create}" method="POST">
<table style="width: 100%;">
<tr>
<td style="border: thin solid black; width: 50%;">
<div name="proxyProxiesPanel">
<p>Select proxies</p>
<p><input type="text" name="proxySelectorAC" class="acSelector" size="35" value="Select an existing last name"></p>
<p class="search-status">
<span name='proxySelectorSearchStatus'
moreCharsText='type more characters'
noMatchText='no match'>&nbsp;</span>
</p>
<fieldset>
<legend>Select proxies:</legend>
<div name="proxyProxiesPanel">
<p><input type="text" name="proxySelectorAC" class="acSelector" size="35" value="Select an existing last name"></p>
<p class="search-status"><span name='proxySelectorSearchStatus' moreCharsText='type more characters' noMatchText='no match'>&nbsp;</span></p>
<#-- Magic div that holds all of the proxy data and the template that shows how to display it. -->
<div name="proxyData">
<#--
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"
-->
<div name="template" style="display: none">
<table>
<tr>
<td>
<img class="photo-profile" width="90" alt="%label%" src="%imageUrl%">
</td>
<p class="selected-editors">Selected proxies:</p>
<#-- Magic div thst holds all of the proxy data and the template that shows how to display it. -->
<div name="proxyData">
<#--
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"
-->
<div name="template" style="display: none">
<table>
<tr>
<td>
<img class="photo-profile" width="90" alt="%label%" src="%imageUrl%">
</td>
<td class="proxy-info">
%label% | <span class="class-label">%classLabel%</span>
<br />
<a class='remove-proxy' href="." templatePart="remove">Remove selection</a>
</td>
</tr>
</table>
<td class="proxy-info">
%label% | <span class="class-label">%classLabel%</span>
<br />
<a class='remove-proxy' href="." templatePart="remove">Remove selection</a>
<input type="hidden" name="proxyUri" value="%uri%" >
</div>
</div>
</div>
</td>
</td>
</tr>
</table>
</div>
</div>
</div>
</fieldset>
<fieldset>
<legend>Select proxies:</legend>
<div class="edit-myProxy" name="proxyProfilesPanel">
<td style="border: thin solid black">
<div id="edit-myProxy" name="proxyProfilesPanel">
<p>Select profiles</p>
<p><input type="text" name="proxySelectorAC" class="acSelector" size="35" value="Select an existing last name"></p>
<p class="search-status">
<span name='proxySelectorSearchStatus'
@ -107,12 +118,16 @@ ${stylesheets.add('<link rel="stylesheet" href="${urls.base}/js/jquery-ui/css/sm
</div>
</div>
</div>
</td>
</tr>
</table>
<input type="submit" name="createRelationship" value="Save" />
</fieldset>
<input class="submit" type="submit" name="createRelationship" value="Save" />
</form>
<form action="${formUrls.list}" method="POST">
<div>
<p>Proxy self editors</p>