Fixed setting of editMode
This commit is contained in:
parent
65056de80d
commit
4fd4ccdddf
1 changed files with 18 additions and 10 deletions
|
@ -1,17 +1,17 @@
|
||||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||||
|
|
||||||
<#-- this is in request.subject.name -->
|
<#-- this is in request.subject.name -->
|
||||||
|
|
||||||
<#assign subjectName = "Bogus, Al">
|
<#assign subjectName = "Bogus, Al">
|
||||||
|
|
||||||
<#-- where is the context path suppose to come from? -->
|
<#if editConfig.object?has_content>
|
||||||
<#assign contextPath = "/vivo">
|
<#assign editMode = "edit">
|
||||||
|
<#else>
|
||||||
<#assign editMode="edit">
|
<#assign editMode = "add">
|
||||||
<#assign editMode=editConfig.object!"add">
|
</#if>
|
||||||
|
|
||||||
<#if editMode == "edit">
|
<#if editMode == "edit">
|
||||||
<#assign titleVerb="Edit">
|
<#assign titleVerb="Edit">
|
||||||
<#assign title="Edit educational background entry for subjectName" />
|
|
||||||
<#assign submitButtonText="Edit Educational Training">
|
<#assign submitButtonText="Edit Educational Training">
|
||||||
<#assign disabledVal="disabled">
|
<#assign disabledVal="disabled">
|
||||||
<#else>
|
<#else>
|
||||||
|
@ -21,11 +21,10 @@
|
||||||
</#if>
|
</#if>
|
||||||
<#assign requiredHint="<span class='requiredHint'> *</span>"/>
|
<#assign requiredHint="<span class='requiredHint'> *</span>"/>
|
||||||
|
|
||||||
|
|
||||||
<div class="form">
|
<div class="form">
|
||||||
<h2>${titleVerb} educational training entry for ${subjectName}</h2>
|
<h2>${titleVerb} educational training entry for ${subjectName}</h2>
|
||||||
|
|
||||||
<form class="${editMode}" action="${contextPath}${editConfig.submitToUrl}" >
|
<form class="${editMode}" action="${urls.base}/${editConfig.submitToUrl}" >
|
||||||
|
|
||||||
<div class="entry">
|
<div class="entry">
|
||||||
<label for="degreeUri">Degree</label>
|
<label for="degreeUri">Degree</label>
|
||||||
|
@ -81,7 +80,7 @@
|
||||||
<input type="submit" id="submit" value="${submitButtonText}"/>
|
<input type="submit" id="submit" value="${submitButtonText}"/>
|
||||||
|
|
||||||
<#assign cancelParams = "editKey=${editConfig.editKey}&cancel=true" >
|
<#assign cancelParams = "editKey=${editConfig.editKey}&cancel=true" >
|
||||||
<span class="or">or</span><a class="cancel" href="${contextPath}/edit/postEditCleanUp.jsp?${cancelParams?url}" title="Cancel">Cancel</a>
|
<span class="or">or</span><a class="cancel" href="${urls.base}/edit/postEditCleanUp.jsp?${cancelParams?url}" title="Cancel">Cancel</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p id="requiredLegend" class="requiredHint">* required fields</p>
|
<p id="requiredLegend" class="requiredHint">* required fields</p>
|
||||||
|
@ -98,4 +97,13 @@ var customFormData = {
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
${stylesheets.add("/edit/forms/css/customForm.css",
|
||||||
|
"/edit/forms/css/personHasEducationalTraining.css")}
|
||||||
|
${scripts.add("/js/utils.js",
|
||||||
|
"/js/customFormUtils.js",
|
||||||
|
"/edit/forms/js/customFormWithAutocomplete.js")}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue