From 4fd4ccdddf4157b3ef4ce0c9ead40364c9e546a7 Mon Sep 17 00:00:00 2001 From: rjy7 Date: Thu, 18 Nov 2010 01:08:59 +0000 Subject: [PATCH] Fixed setting of editMode --- .../body/personHasEducationalTraining.ftl | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/productMods/templates/freemarker/body/personHasEducationalTraining.ftl b/productMods/templates/freemarker/body/personHasEducationalTraining.ftl index 15a7e623..63755859 100644 --- a/productMods/templates/freemarker/body/personHasEducationalTraining.ftl +++ b/productMods/templates/freemarker/body/personHasEducationalTraining.ftl @@ -1,17 +1,17 @@ <#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> <#-- this is in request.subject.name --> + <#assign subjectName = "Bogus, Al"> -<#-- where is the context path suppose to come from? --> -<#assign contextPath = "/vivo"> - -<#assign editMode="edit"> -<#assign editMode=editConfig.object!"add"> +<#if editConfig.object?has_content> + <#assign editMode = "edit"> +<#else> + <#assign editMode = "add"> + <#if editMode == "edit"> <#assign titleVerb="Edit"> - <#assign title="Edit educational background entry for subjectName" /> <#assign submitButtonText="Edit Educational Training"> <#assign disabledVal="disabled"> <#else> @@ -21,11 +21,10 @@ <#assign requiredHint=" *"/> -

${titleVerb} educational training entry for ${subjectName}

-
+
@@ -81,7 +80,7 @@ <#assign cancelParams = "editKey=${editConfig.editKey}&cancel=true" > - orCancel + orCancel

* required fields

@@ -98,4 +97,13 @@ var customFormData = { }; -
\ No newline at end of file +
+ +${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")} + + + \ No newline at end of file