updates to internal class form and menu edit
This commit is contained in:
parent
a4f90721f3
commit
aa0de11f90
3 changed files with 35 additions and 20 deletions
|
@ -19,22 +19,27 @@ edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.Institu
|
|||
<section>
|
||||
<form method="POST" action="${formUrl}" class="customForm">
|
||||
<input type="hidden" name="submitForm" id="submitForm" value="true" />
|
||||
<#--If no local ontologies, display message for user to create a local ontology-->
|
||||
<#if ontologiesExist = false>
|
||||
<section id="noLocalOntologyExists">
|
||||
<p>${noLocalOntologiesMessage}</p>
|
||||
</section>
|
||||
|
||||
<#elseif useExistingInternalClass?has_content>
|
||||
<#--else if local ontologies exist and local classes exist, show drop-down of local classes-->
|
||||
<#elseif useExistingLocalClass?has_content>
|
||||
<section id="existingLocalClass">
|
||||
<#--Populated based on class list returned-->
|
||||
<select id="existingLocalClasses" name="existingLocalClasses">
|
||||
<#assign classUris = existingLocalClasses?keys />
|
||||
<#--If internal class exists, check against value in drop-down and select option-->
|
||||
<#list classUris as localClassUri>
|
||||
<option value="${localClassUri}" <#if existingInternalClass = localClassUri>selected</#if> >${existingLocalClasses[localClassUri]}</option>
|
||||
</#list>
|
||||
</select>
|
||||
<p>Can't find an appropriate class? Create a <a href="${formUrl}?cmd=createClass">new one</a>.</p>
|
||||
</section>
|
||||
|
||||
<#--if parameter to create new class passed or if there are local ontologies but no local classes, show create new class page-->
|
||||
<#elseif createNewClass?has_content>
|
||||
<section id="createNewLocalClass">
|
||||
<h2>Create a new class</h2>
|
||||
|
@ -54,14 +59,14 @@ edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.Institu
|
|||
</#if>
|
||||
|
||||
</section>
|
||||
<#--this case is an error case-->
|
||||
<#else>
|
||||
Problematic section as above should all have been handled
|
||||
</#if>
|
||||
|
||||
<#--only show submit and cancel if ontologies exist-->
|
||||
<#if ontologiesExist = true>
|
||||
<input type="submit" name="submit-internalClass" value="${submitAction}" class="submit" /> or <a class="cancel" href="${cancelUrl}">Cancel</a>
|
||||
<p class="requiredHint">* required fields</p>
|
||||
|
||||
</#if>
|
||||
|
||||
</form>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue