changes for button text

This commit is contained in:
tworrall 2011-11-02 21:16:15 +00:00
parent 75eb9952d0
commit 7d4d31d706
5 changed files with 9 additions and 10 deletions

View file

@ -20,7 +20,7 @@ roleExamples-->
<#--Variable assignments for Add Clinical Role To Person-->
<#assign roleDescriptor = "attended" />
<#assign typeSelectorLabel = "event type" />
<#assign buttonText = "Attendee" />
<#--Each of the two stage forms will include the form below-->
<#include "addRoleToPersonTwoStage.ftl">

View file

@ -20,7 +20,7 @@ roleExamples-->
<#--Variable assignments for Add Clinical Role To Person-->
<#assign roleDescriptor = "organizer of" />
<#assign typeSelectorLabel = "organizer of" />
<#assign buttonText = "Organizer Role" />
<#--Each of the two stage forms will include the form below-->
<#include "addRoleToPersonTwoStage.ftl">

View file

@ -20,7 +20,7 @@ roleExamples-->
<#--Variable assignments for Add Clinical Role To Person-->
<#assign roleDescriptor = "presentation" />
<#assign typeSelectorLabel = "presentation type" />
<#assign buttonText = "Presentation Role" />
<#--Each of the two stage forms will include the form below-->
<#include "addRoleToPersonTwoStage.ftl">

View file

@ -20,7 +20,7 @@ roleExamples-->
<#--Variable assignments for Add Clinical Role To Person-->
<#assign roleDescriptor = "reviewer of" />
<#assign typeSelectorLabel = "reviewer of" />
<#assign buttonText = "Reviewer Role" />
<#--Each of the two stage forms will include the form below-->
<#include "addRoleToPersonTwoStage.ftl">

View file

@ -27,7 +27,7 @@
<#--Setting values for titleVerb, submitButonText, and disabled Value-->
<#if editConfiguration.objectUri?has_content>
<#assign titleVerb = "Edit"/>
<#assign submitButtonText>Edit ${buttonText}</#assign>
<#assign submitButtonText>Edit ${buttonText?capitalize}</#assign>
<#if editMode = "repair">
<#assign disabledVal = ""/>
<#else>
@ -35,7 +35,7 @@
</#if>
<#else>
<#assign titleVerb = "Create"/>
<#assign submitButtonText>${buttonText}</#assign>
<#assign submitButtonText>${buttonText?capitalize}</#assign>
<#assign disabledVal = ""/>
<#assign editMode = "add" />
</#if>
@ -87,7 +87,7 @@
<form id="add${roleDescriptor?capitalize}RoleToPersonTwoStage" class="customForm noIE67" action="${submitUrl}" role="add/edit grant role">
<p class="inline"><label for="typeSelector">${roleDescriptor?capitalize} Type ${requiredHint}</label>
<p class="inline"><label for="typeSelector">${typeSelectorLabel?capitalize} ${requiredHint}</label>
<select id="typeSelector" name="roleActivityType"
<#if disabledVal?has_content>
disabled = "${disabledVal}"
@ -161,8 +161,8 @@
</#if>
</#if>
</div>
<input type="hidden" id="editKey" name="editKey" value="${editKey}" />
<p class="submit">
<input type="hidden" id="editKey" name="editKey" value="${editKey}" />
<input type="submit" id="submit" value="${submitButtonText}"/><span class="or"> or <a class="cancel" href="${cancelUrl}">Cancel</a>
</p>
@ -188,5 +188,4 @@ ${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery-ui/js/
${scripts.add('<script type="text/javascript" src="${urls.base}/js/customFormUtils.js"></script>')}
${scripts.add('<script type="text/javascript" src="${urls.base}/edit/forms/js/customFormWithAutocomplete.js"></script>')}
</section>
</section>