NIHVIVO-3184: Created freemarker template for VIVO form manageWebpagesForIndividual.jsp

This commit is contained in:
manolobevia 2011-10-27 18:03:29 +00:00
parent 831de3cb7e
commit bdcffa2c0c

View file

@ -0,0 +1,63 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Custom form for managing webpages for individuals -->
<h2><em>${subjectName}</em></h2>
<h3>Manage Web Pages</h3>
<script type="text/javascript">
var webpageData = [];
</script>
<ul id="webpageList" ${ulClass} role="list">
<#if !webpages?has_content>
<p>This individual currently has no web pages specified. Add a new web page by clicking on the button below.</p>
</#if>
<#list webpages as webpage>
<li class="webpage" role="listitem">
<#if webpage.anchor>
<#assign anchor=webpage.anchor >
<#else>
<#assign anchor=webpage.url >
</#if>
<span class="webpageName">
<a href="${webpage.url}">${anchor}</a>
</span>
<span class="editingLinks">
<a href="${baseEditWebpageUrl}&objectUri=${webpage.link}" class="edit">Edit</a> |
<a href="${deleteWebpageUrl}" class="remove">Delete</a>
</span>
</li>
<script type="text/javascript">
webpageData.push({
"webpageUri": "${webpage.link}"
});
</script>
</#list>
</ul>
<section id="addAndCancelLinks" role="section">
<#-- There is no editConfig at this stage, so we don't need to go through postEditCleanup.jsp on cancel.
These can just be ordinary links, rather than a v:input element, as in
addAuthorsToInformationResource.jsp. -->
<a href="${showAddFormUrl}" id="showAddForm" class="button green">Add Web Page</a>
<a href="${returnToIndividualUrl}" id="returnToIndividual" class="return">Return to Individual</a>
</section>
<script type="text/javascript">
var customFormData = {
rankPredicate: '${rankPredicate}',
reorderUrl: '${reorderUrl}'
};
</script>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />',
'<link rel="stylesheet" href="${urls.base}/edit/forms/css/manageWebpagesForIndividual.css" />')}
${scripts.add('<script type="text/javascript" src="${urls.base}/js/utils.js"></script>',
'<script type="text/javascript" src="${urls.base}/js/customFormUtils.js"></script>',
'<script type="text/javascript" src="${urls.base}/edit/forms/js/manageWebpagesForIndividual.js"></script>')}