page managemnet changes
This commit is contained in:
parent
544839906e
commit
54941a201b
8 changed files with 82 additions and 38 deletions
|
@ -25,8 +25,14 @@
|
|||
<#-- Link to add a new menu item -->
|
||||
<#if editable>
|
||||
<#if addNewMenuItemUrl?has_content>
|
||||
<p><a class="add-hasElement green button" href="${addNewMenuItemUrl}" title="Add new menu item">Add menu item</a></p>
|
||||
|
||||
<form id="pageListForm" 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 new menu page" role="button" type="submit" >
|
||||
|
||||
</form>
|
||||
<br />
|
||||
<p class="note">Refresh page after reordering menu items</p>
|
||||
</#if>
|
||||
</#if>
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
</#if>
|
||||
</td>
|
||||
<td>
|
||||
<a href="${urls.base}/individual?uri=${pagex.listedPageUri?url}&switchToDisplayModel=1"><img src="${urls.images!}/profile-page-icon.png" title="view the profile properties for this page" alt="profile page"></a>
|
||||
<a href="${urls.base}/individual?uri=${pagex.listedPageUri?url}&switchToDisplayModel=1"><img src="${urls.images!}/profile-page-icon.png" title="view the individual profile for this page" alt="profile page"></a>
|
||||
|
||||
<#if !pagex.listedPageCannotDeletePage?has_content >
|
||||
<a cmd="deletePage" pageTitle=" ${pagex.listedPageTitle!}" href="${urls.base}/deletePageController?pageURI=${pagex.listedPageUri?url}"><img src="${urls.images!}/individual/deleteIcon.gif" title="delete this page" alt="delete"></a>
|
||||
|
|
|
@ -50,7 +50,8 @@
|
|||
<span class="ui-icon-sortable"></span>
|
||||
</li>
|
||||
</#list>
|
||||
</ul>
|
||||
</ul><br />
|
||||
<input type="button" id="doneWithContent" class="doneWithContent" name="moreContent" value="Done" />
|
||||
</section>
|
||||
</section>
|
||||
<#--Include JavaScript specific to the types of data getters related to this content-->
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#--This contains the template for the fixed HTML content type that is to be cloned and used in page management-->
|
||||
|
||||
<section id="fixedHtml" style="background-color:#f9f9f9;padding-left:6px;padding-top:2px;border-width:1px;border-style:solid;border-color:#ccc;">
|
||||
<section id="fixedHtml" class="sparqlHtmlContent">
|
||||
<label id="fixedHTMLVariableLabel" for="fixedHTMLVariable">Variable Name<span class="requiredHint"> *</span></label>
|
||||
<input type="text" name="saveToVar" size="20" value="" id="fixedHTMLSaveToVar" role="input" />
|
||||
<label id="fixedHTMLValueLabel" for="fixedHTMLValue">Enter fixed HTML here<span id="fixedHTMLValueSpan"></span><span class="requiredHint"> *</span></label>
|
||||
<textarea id="fixedHTMLValue" name="htmlValue" cols="70" rows="15" style="margin-bottom:7px"></textarea>
|
||||
<textarea id="fixedHTMLValue" name="htmlValue" cols="70" rows="15" style="margin-bottom:7px"></textarea><br />
|
||||
<input type="button" id="doneWithContent" name="moreContent" value="Done" class="doneWithContent" />
|
||||
</section>
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processFixedHTMLDataGetterContent.js"></script>')}
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#--This contains the template for the Sparql Query content type that is to be cloned and used in page management-->
|
||||
<section id="sparqlQuery" style="background-color:#f9f9f9;padding-left:6px;padding-top:2px;border-width:1px;border-style:solid;border-color:#ccc;">
|
||||
<section id="sparqlQuery" class="sparqlHtmlContent">
|
||||
<label id="variableLabel" for="variable">Variable Name<span class="requiredHint"> *</span></label>
|
||||
<input type="text" name="saveToVar" size="20" value="" id="saveToVar" role="input" />
|
||||
<label id="queryModelLabel" for="queryModel">Query Model</label>
|
||||
<#--Hiding query model for now-->
|
||||
<#-- <label id="queryModelLabel" for="queryModel">Query Model</label> -->
|
||||
<input type="text" name="queryModel" size="20" value="" id="queryModel" role="input" style="display:none"/>
|
||||
<label id="queryLabel" for="queryLabel"><span id="querySpan">Enter SPARQL query here</span><span class="requiredHint"> *</span></label>
|
||||
<textarea id="query" name="query" cols="70" rows="15" style="margin-bottom:7px"></textarea>
|
||||
<textarea id="query" name="query" cols="70" rows="15" style="margin-bottom:7px"></textarea><br />
|
||||
<input type="button" id="doneWithContent" class="doneWithContent" name="moreContent" value="Done" />
|
||||
</section>
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processSparqlDataGetterContent.js"></script>')}
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
<option value="browseClassGroup">Browse Class Group</option>
|
||||
<option value="fixedHtml">Fixed HTML</option>
|
||||
<option value="sparqlQuery">SPARQL Query Results</option>
|
||||
</select>
|
||||
</select> <span class="note">Add one or more content types</span>
|
||||
</section>
|
||||
<section id="contentDivs"></section>
|
||||
<section id="headerBar" >
|
||||
|
@ -63,8 +63,7 @@
|
|||
<#--This include file contains links to the templates that will be cloned and used for the different content types-->
|
||||
<!--This content will be copied/shown for these particular content types, so any fields for n3 editing need to be included
|
||||
here that correspond to a specific content type. These are related to specific "data getters" on the server side. -->
|
||||
<#include "pageManagement--contentTemplates.ftl">
|
||||
<input type="button" id="moreContent" name="moreContent" value="Add More Content" class="delete" />
|
||||
<#include "pageManagement--contentTemplates.ftl">
|
||||
</div>
|
||||
</section>
|
||||
<!--Information for page or menu item level-->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue