From 6d873a720ceebe6e1207887e5d7a76651f094548 Mon Sep 17 00:00:00 2001 From: manolobevia Date: Fri, 28 Oct 2011 19:35:16 +0000 Subject: [PATCH] NIHVIVO-3263: Created freemarker template for VIVO form personHasPositionHistory.jsp --- .../edit/forms/personHasPositionHistory.ftl | 121 ++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 productMods/templates/freemarker/edit/forms/personHasPositionHistory.ftl diff --git a/productMods/templates/freemarker/edit/forms/personHasPositionHistory.ftl b/productMods/templates/freemarker/edit/forms/personHasPositionHistory.ftl new file mode 100644 index 00000000..ee4e87b0 --- /dev/null +++ b/productMods/templates/freemarker/edit/forms/personHasPositionHistory.ftl @@ -0,0 +1,121 @@ +<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> + +<#-- Template for adding a position history--> + +<#import "lib-vivo-form.ftl" as lf> + +<#if editConfig.object?has_content> + <#assign editMode = "edit"> +<#else> + <#assign editMode = "add"> + + +<#if editMode == "edit"> + <#assign formAction="Edit"> + <#assign submitButtonText="Edit Position"> +<#else> + <#assign formAction="Create"> + <#assign submitButtonText="Create"> + + +<#assign requiredHint=" *"/> + +<@lf.unsupportedBrowser> + +

${formAction} position entry for ${subjectName}

+ +<#if errorOrgType??> + <#assign errorMessage = "You must supply an organization type." /> + + +<#if errorOrgLabel??> + <#assign errorMessage = "You must supply an organization name." /> + + +<#if errorPositionTitle??> + <#assign errorMessage = "You must supply a position title." /> + + +<#if errorPositionType??> + <#assign errorMessage = "You must supply a position type." /> + + +<#if errorMessage?has_content> + + + +
+ + + + + Cancel + + <#if orgType??> + + + + + + + + <#--Should we do something like this <@widget name="SelectList" fieldName="orgType" />, have a macro where we specified + the type of form element and the type of list, in this case an organization type--> + + + + (YYYY) + + + + (YYYY) + + + + <#if editMode == "edit"> + + <#else> + + + + or Cancel + +

* required fields

+ +
+ + <#assign acUrl="//autocomplete?tokenize=true" > + + + + +${stylesheets.add('', + '')} + +${scripts.add('', + '', + '')} + + + +