updates for page management
This commit is contained in:
parent
e3158dadaa
commit
8e98850493
11 changed files with 888 additions and 1 deletions
|
@ -0,0 +1,32 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<div>
|
||||
|
||||
<#if pages?has_content >
|
||||
<table>
|
||||
<th>Title</th><th>URI</th>
|
||||
|
||||
<#list pages as pagex>
|
||||
<tr>
|
||||
<td>${(pagex.title)!'-untitled-'}</td>
|
||||
<#if pagex.pageUri??>
|
||||
<td><a href="${urls.base}/individual?uri=${pagex.pageUri?url}&switchToDisplayModel=1">${pagex.pageUri}</a></td>
|
||||
<#else>
|
||||
<td>URI for page not defined</td>
|
||||
</#if>
|
||||
</tr>
|
||||
</#list>
|
||||
</table>
|
||||
|
||||
<#else>
|
||||
<p>There are no pages defined yet.</p>
|
||||
</#if>
|
||||
|
||||
<form id="addIndividualClass" action="${urls.base}/editRequestDispatch" method="get">
|
||||
<input type="hidden" name="typeOfNew" value="http://vitro.mannlib.cornell.edu/ontologies/display/1.1#Page">
|
||||
<input type="hidden" name="switchToDisplayModel" value="1">
|
||||
<input type="hidden" name="editForm" value="edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.NewIndividualFormGenerator" role="input">
|
||||
<input type="submit" id="submit" value="Add Page" role="button">
|
||||
</form>
|
||||
|
||||
</div>
|
|
@ -0,0 +1,63 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<section id="pageList">
|
||||
<div class="tab">
|
||||
<h2>Page Management</h2>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
|
||||
<#if pages?has_content >
|
||||
<table id="account" style="margin-bottom:2px"> <caption>Page Management</caption>
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" style="background-color:#F7F9F9">Title</th>
|
||||
<!--th scope="col" style="background-color:#F7F9F9">Type</th-->
|
||||
<th scope="col" style="background-color:#F7F9F9">URL</th>
|
||||
<th scope="col" style="background-color:#F7F9F9">Template</th>
|
||||
<th scope="col" style="background-color:#F7F9F9">Menu Page</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<#list pages as pagex>
|
||||
<tr>
|
||||
<td>
|
||||
<#if pagex.pageUri?has_content>
|
||||
<a href="${urls.base}/individual?uri=${pagex.pageUri?url}&switchToDisplayModel=1">${(pagex.title)!'-untitled-'}</a>
|
||||
<#else>
|
||||
No URI defined for page.
|
||||
</#if>
|
||||
</td>
|
||||
<!--td> {pagex.dataGetterLabel}</td-->
|
||||
<td>${pagex.urlMapping}</td>
|
||||
<td>${(pagex.template)!''}</td>
|
||||
<td style="text-align:center">
|
||||
<#if pagex.menuItem?has_content>
|
||||
<div class="menuFlag"></div>
|
||||
</#if>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</#list>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<#else>
|
||||
<p>There are no pages defined yet.</p>
|
||||
</#if>
|
||||
|
||||
<form id="addIndividualClass" action="${urls.base}/editRequestDispatch" method="get">
|
||||
<input type="hidden" name="typeOfNew" value="http://vitro.mannlib.cornell.edu/ontologies/display/1.1#Page">
|
||||
<input type="hidden" name="switchToDisplayModel" value="1">
|
||||
<input type="hidden" name="editForm" value="edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.ManagePageGenerator" role="input">
|
||||
<input id="submit" value="Add Page" role="button" type="submit" >
|
||||
</form>
|
||||
<p style="margin-top:10px">Use <a id="menuMgmtLink" href="#">Menu Management</a> to set the order of menu items.</p>
|
||||
</section>
|
||||
|
||||
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/menupage/pageList.css" />')}
|
||||
|
|
@ -13,7 +13,11 @@
|
|||
|
||||
<#if siteConfig.manageProxies?has_content>
|
||||
<li role="listitem"><a href="${siteConfig.manageProxies}" title="Manage profile editing">Manage profile editing</a></li>
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
<#if siteConfig.pageManagement?has_content>
|
||||
<li role="listitem"><a href="${siteConfig.pageManagement}" title="Page management">Page management</a></li>
|
||||
</#if>
|
||||
|
||||
<#if siteConfig.menuManagement?has_content>
|
||||
<li role="listitem"><a href="${siteConfig.menuManagement}" title="Menu management">Menu management</a></li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue