template updates for internationalization, including updated all.properties

This commit is contained in:
tworrall 2013-05-20 15:36:37 -04:00
parent dbcc75dc20
commit 639f0450ac
86 changed files with 917 additions and 448 deletions

View file

@ -27,19 +27,19 @@
<#assign propertyNameForDisplay = editConfiguration.objectPropertyNameForDisplay />
</#if>
<#if editMode = "edit" >
<#assign titleVerb = "Edit" />
<#assign titleVerb = "${i18n().edit_capitalized}" />
<#assign objectLabel = editConfiguration.pageData.objectLabel />
<#assign selectedObjectUri = editConfiguration.objectUri />
<#assign submitButtonText = "Save Change" />
<#assign submitButtonText = "${i18n().save_button}" />
<#else>
<#assign titleVerb = "Add" >
<#assign titleVerb = "${i18n().add_capitalized}" >
<#assign objectLabel = "" />
<#assign selectedObjectUri = ""/>
<#assign submitButtonText = "Create Entry" />
<#assign submitButtonText = "${i18n().create_entry}" />
</#if>
<#if editConfiguration.formTitle?contains("collaborator") >
<#assign formTitle = "Select an existing Collaborator for ${editConfiguration.subjectName}" />
<#assign formTitle = i18n().select_existing_collaborator(editConfiguration.subjectName) />
<#else>
<#assign formTitle = editConfiguration.formTitle />
</#if>
@ -58,16 +58,16 @@
<#---This section should become autocomplete instead-->
<p>
<label for="object"> ${propertyNameForDisplay?capitalize} Name<span class='requiredHint'> *</span></label>
<label for="object"> ${propertyNameForDisplay?capitalize} ${i18n().name_capitalized}<span class='requiredHint'> *</span></label>
<input class="acSelector" size="50" type="text" id="object" name="objectLabel" acGroupName="object" value="${objectLabel}" />
</p>
<div class="acSelection" acGroupName="object" >
<p class="inline">
<label>Selected:</label>
<label>${i18n().selected}:</label>
<span class="acSelectionInfo"></span>
<a href="" class="verifyMatch" title="verify match">(Verify this match</a> or
<a href="#" class="changeSelection" id="changeSelection">change selection)</a>
<a href="" class="verifyMatch" title="${i18n().verify_this_match}">(${i18n().verify_this_match}</a> ${i18n().or}
<a href="#" class="changeSelection" id="changeSelection">${i18n().change_selection})</a>
</p>
<input class="acUriReceiver" type="hidden" id="objectVar" name="objectVar" value="${selectedObjectUri}" />
</div>
@ -78,11 +78,11 @@
<input type="submit" id="submit" value="${submitButtonText}" role="button" disabled="disabled"/>
<span class="or"> or </span>
<a title="Cancel" class="cancel" href="${cancelUrl}">Cancel</a>
<a title="${i18n().cancel_title}" class="cancel" href="${cancelUrl}">${i18n().cancel_link}</a>
</p>
</form>
<#else>
<p> There are no entries in the system from which to select. </p>
<p> ${i18n().there_are_no_entries_for_selection} </p>
</#if>
</#if>
<p>&nbsp;</p>
@ -92,7 +92,7 @@
</#if>
<#if editConfiguration.propertySelectFromExisting = false && editConfiguration.propertyOfferCreateNewOption = false>
<p>This property is currently configured to prohibit editing. </p>
<p>${i18n().editing_prohibited} </p>
</#if>

View file

@ -16,7 +16,7 @@
<#assign deletionTemplateName = editConfiguration.deleteTemplate/>
<form action="${editConfiguration.deleteProcessingUrl}" method="get">
<h2>Are you sure you want to delete the following entry from <em>${editConfiguration.propertyName}</em>?</h2>
<h2>${i18n().confirm_entry_deletion_from} <em>${editConfiguration.propertyName}</em>?</h2>
<p class="toBeDeleted ${toBeDeletedClass}">
<#if editConfiguration.objectProperty = true>
@ -42,9 +42,9 @@
<#if editConfiguration.objectProperty = true>
<p class="submit">
</#if>
<input type="submit" id="submit" value="Delete" role="button"/>
<input type="submit" id="submit" value="${i18n().delete_button}" role="button"/>
or
<a class="cancel" title="Cancel" href="${editConfiguration.cancelUrl}">Cancel</a>
<a class="cancel" title="${i18n().cancel_title}" href="${editConfiguration.cancelUrl}">${i18n().cancel_link}</a>
<#if editConfiguration.objectProperty = true>
</p>
</#if>

View file

@ -7,12 +7,12 @@
<#assign htmlForElements = editConfiguration.pageData.htmlForElements />
<#if editMode == "edit">
<#assign titleVerb="Edit">
<#assign submitButtonText="Edit Date/Time Value">
<#assign titleVerb="${i18n().edit_capitalized}">
<#assign submitButtonText="${i18n().edit_date_time_value}">
<#assign disabledVal="disabled">
<#else>
<#assign titleVerb="Create">
<#assign submitButtonText="Create Date/Time Value">
<#assign titleVerb="${i18n().create_capitalized}">
<#assign submitButtonText="${i18n().create_date_time_value}">
<#assign disabledVal=""/>
</#if>
<#--If edit submission exists, then retrieve validation errors if they exist-->
@ -21,25 +21,25 @@
</#if>
<h2>${titleVerb} date time value for ${editConfiguration.subjectName}</h2>
<h2>${titleVerb} ${i18n().date_time_value_for} ${editConfiguration.subjectName}</h2>
<#--Display error messages if any-->
<#if submissionErrors?has_content>
<section id="error-alert" role="alert">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alert="Error alert icon" />
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${i18n().error_alert_icon}" />
<p>
<#--below shows examples of both printing out all error messages and checking the error message for a specific field-->
<#list submissionErrors?keys as errorFieldName>
<#if errorFieldName == "startField">
<#if submissionErrors[errorFieldName]?contains("before")>
The Start interval must be earlier than the End interval.
${i18n().start_interval_must_precede_end_earlier}
<#else>
${submissionErrors[errorFieldName]}
</#if>
<br />
<#elseif errorFieldName == "endField">
<#if submissionErrors[errorFieldName]?contains("after")>
The End interval must be later than the Start interval.
${i18n().end_interval_must_follow_start_interval}
<#else>
${submissionErrors[errorFieldName]}
</#if>
@ -52,20 +52,20 @@
<p></p>
<#--Need to draw edit elements for dates here-->
<#if htmlForElements?keys?seq_contains("startField")>
Start&nbsp; ${htmlForElements["startField"]}
${i18n().start_capitalized}&nbsp; ${htmlForElements["startField"]}
</#if>
<br /><br />
<#if htmlForElements?keys?seq_contains("endField")>
End&nbsp; ${htmlForElements["endField"]}
${i18n().end_capitalized}&nbsp; ${htmlForElements["endField"]}
</#if>
<p class="submit">
<input type="hidden" name="editKey" value="${editKey}" />
<input type="submit" id="submit" value="${submitButtonText}" role="button" />
<span class="or"> or </span>
<span class="or"> ${i18n().or} </span>
<a class="cancel" href="${editConfiguration.cancelUrl}" title="Cancel">Cancel</a>
<a class="cancel" href="${editConfiguration.cancelUrl}" title="${i18n().cancel_title}">${i18n().cancel_link}</a>
</p>
</form>

View file

@ -7,16 +7,16 @@
<#assign htmlForElements = editConfiguration.pageData.htmlForElements />
<#if editMode == "edit">
<#assign titleVerb="Edit">
<#assign submitButtonText="Edit Date/Time Value">
<#assign titleVerb="${i18n().edit_capitalized}">
<#assign submitButtonText="${i18n().edit_date_time_value}">
<#assign disabledVal="disabled">
<#else>
<#assign titleVerb="Create">
<#assign submitButtonText="Create Date/Time Value">
<#assign titleVerb="${i18n().create_capitalized}">
<#assign submitButtonText="${i18n().create_date_time_value}">
<#assign disabledVal=""/>
</#if>
<h2>${titleVerb} date time value for ${editConfiguration.subjectName}</h2>
<h2>${titleVerb} ${i18n().date_time_value_for} ${editConfiguration.subjectName}</h2>
<form class="customForm" action ="${submitUrl}" class="customForm">
<#--Need to draw edit elements for dates here-->
@ -28,9 +28,9 @@
<input type="hidden" name="editKey" value="${editKey}" />
<input type="submit" id="submit" value="${submitButtonText}" role="button" />
<span class="or"> or </span>
<span class="or"> ${i18n().or} </span>
<a class="cancel" href="${editConfiguration.cancelUrl}" title="Cancel">Cancel</a>
<a class="cancel" href="${editConfiguration.cancelUrl}" title="${i18n().cancel_title}">${i18n().cancel_link}</a>
</p>
</form>
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />',

View file

@ -4,11 +4,11 @@
"${editConfiguration.propertyPublicDomainTitle}" entry for ${editConfiguration.subjectName}
</#assign>
<#if editConfiguration.objectUri?has_content>
<#assign formTitle>Edit ${formTitle} </#assign>
<#assign submitLabel>Save changes</#assign>
<#assign formTitle>${i18n().edit_capitalized} ${formTitle} </#assign>
<#assign submitLabel>${i18n().save_changes}</#assign>
<#else>
<#assign formTitle>Create ${formTitle} </#assign>
<#assign submitLabel>Create "${editConfiguration.propertyPublicDomainTitle}" entry</#assign>
<#assign formTitle>${i18n().create_capitalized} ${formTitle} </#assign>
<#assign submitLabel>${i18n().create_capitalized} "${editConfiguration.propertyPublicDomainTitle}" ${i18n().entry}</#assign>
</#if>
<h2>${formTitle}</h2>
@ -20,6 +20,6 @@
<p class="submit">
<input type="submit" id="submit" value="${submitLabel}" role="submit" />
<span class="or"> or </span>
<a title="Cancel" href="${editConfiguration.cancelUrl}">Cancel</a>
<a title="${i18n().cancel_title}" href="${editConfiguration.cancelUrl}">${i18n().cancel_link}</a>
</p>
</form>

View file

@ -11,7 +11,7 @@
<#--Display error messages if any-->
<#if submissionErrors?has_content>
<section id="error-alert" role="alert">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alert="Error alert icon" />
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${i18n().error_alert_icon}" />
<p>
<#list submissionErrors?keys as errorFieldName>
@ -39,7 +39,7 @@
but that method may not return the correct result for other custom forms-->
<input type="submit" id="submit" value="${editConfiguration.submitLabel}" role="button"/>
<span class="or"> or </span>
<a title="Cancel" href="${cancelUrl}">Cancel</a>
<a title="${i18n().cancel_title}" href="${cancelUrl}">${i18n().cancel_link}</a>
</form>

View file

@ -1,7 +1,7 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<form class="deleteForm" action="${editConfiguration.mainEditUrl}" method="get">
<h3 class="delete-entry">Delete this entry?</h3>
<h3 class="delete-entry">${i18n().delete_entry_capitalized}</h3>
<label for="delete"></label>
@ -11,7 +11,7 @@
<input type="hidden" name="editKey" value="${editConfiguration.editKey}"/>
<#if editConfiguration.dataProperty = true>
<input type="hidden" name="datapropKey" value="${editConfiguration.datapropKey}" />
<input type="submit" id="delete" value="Delete" role="button "/>
<input type="submit" id="delete" value="${i18n().delete_button}" role="button "/>
</#if>
<#--The original jsp included vinput tag with cancel=empty string for case where both select from existing
@ -21,15 +21,15 @@
<#if editConfiguration.propertySelectFromExisting = false && editConfiguration.propertyOfferCreateNewOption = false>
<p>
<input type="submit" id="delete" value="Delete" role="button "/>
<span class="or"> or </span>
<a title="Cancel" href="${editConfiguration.cancelUrl}">Cancel</a>
<input type="submit" id="delete" value="${i18n().delete_button}" role="button "/>
<span class="or"> ${i18n().or} </span>
<a title="${i18n().cancel_title}" href="${editConfiguration.cancelUrl}">${i18n().cancel_link}</a>
</p>
</#if>
<#if editConfiguration.propertySelectFromExisting = true || editConfiguration.propertyOfferCreateNewOption = true>
<p>
<input type="submit" id="delete" value="Delete" role="button "/>
<input type="submit" id="delete" value="${i18n().delete_button}" role="button "/>
</p>
</#if>
</#if>

View file

@ -1,9 +1,9 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#if rangeOptionsExist = true >
<p>If you don't find the appropriate entry on the selection list above:</p>
<p>${i18n().no_appropriate_entry}:</p>
<#else>
<p>Please create a new entry.</p>
<p>${i18n().create_new_entry}</p>
</#if>
<#if editConfiguration.objectUri?has_content>
@ -26,10 +26,10 @@
</#list>
</select>
<input type="submit" id="offerCreate" class="submit" value="Add a new item of this type" role="button" />
<input type="submit" id="offerCreate" class="submit" value="${i18n().add_new_of_type}" role="button" />
<#if rangeOptionsExist = false >
<span class="or"> or </span>
<a title="Cancel" class="cancel" href="${cancelUrl}">Cancel</a>
<span class="or"> ${i18n().or} </span>
<a title="${i18n().cancel_title}" class="cancel" href="${cancelUrl}">${i18n().cancel_link}</a>
</#if>
</form>

View file

@ -25,12 +25,12 @@
<p>
<input type="submit" id="submit" value="${editConfiguration.submitLabel}" role="button "/>
<span class="or"> or </span>
<a title="Cancel" class="cancel" href="${cancelUrl}">Cancel</a>
<span class="or"> ${i18n().or} </span>
<a title="${i18n().cancel_title}" class="cancel" href="${cancelUrl}">${i18n().cancel_link}</a>
</p>
</form>
<#else>
<p> There are no entries in the system from which to select. </p>
<p> ${i18n().there_are_no_entries_for_selection} </p>
</#if>
</#if>
@ -40,7 +40,7 @@
</#if>
<#if editConfiguration.propertySelectFromExisting = false && editConfiguration.propertyOfferCreateNewOption = false>
<p>This property is currently configured to prohibit editing. </p>
<p>${i18n().editing_prohibited} </p>
</#if>

View file

@ -2,7 +2,7 @@
<#--Template for removing menu items -->
<h3>Remove menu item</h3>
<h3>${i18n().remove_menu_item}</h3>
<section id="remove-menu-item" role="region">
<form method="POST" action="${formUrls}" class="customForm" role="remove menu item">
@ -10,9 +10,9 @@
<input type="hidden" name="cmd" id="cmd" value="Remove" role="input" />
<input type="hidden" name="switchToDisplayModel" id="switchToDisplayModel" value="true" role="input" />
<p>Are you sure you want to remove <em>${menuName}</em> menu item?</p>
<p>${i18n().confirm_menu_item_delete} <em>${menuName}</em> ${i18n().menu_item}?</p>
<input type="submit" name="removeMenuItem" value="Remove menu item" class="submit" role="input" /> or <a class="cancel" href="${cancelUrl}" title="cancel">Cancel</a>
<input type="submit" name="removeMenuItem" value="${i18n().remove_menu_item}" class="submit" role="input" /> ${i18n().or} <a class="cancel" href="${cancelUrl}" title="${i18n().cancel_title}">${i18n().cancel_link}</a>
</form>
</section>

View file

@ -11,11 +11,11 @@
<#assign selectClassGroupStyle = " " />
</#if>
<section id="error-alert" role="alert" class="hidden">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alert="Error alert icon" />
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${i18n().error_alert_icon}" />
<p></p>
</section>
<h3>${menuAction} menu item</h3>
<h3>${menuAction} ${i18n().menu_item}</h3>
<section id="${menuAction?lower_case}-menu-item" role="region">
<form method="POST" action="${formUrls}" class="customForm" role="${menuAction} menu item">
@ -23,39 +23,39 @@
<input type="hidden" name="menuItem" id="menuItem" value="${menuItem}" role="input" />
<input type="hidden" name="switchToDisplayModel" id="switchToDisplayModel" value="true" role="input" />
<label for="menu-name">Name<span class="requiredHint"> *</span></label>
<label for="menu-name">${i18n().name}<span class="requiredHint"> *</span></label>
<input type="text" name="menuName" value="${menuName}" role="input" />
<label for="pretty-url">Pretty URL<span class="requiredHint"> *</span></label>
<label for="pretty-url">${i18n().pretty_url}<span class="requiredHint"> *</span></label>
<input type="text" name="prettyUrl" value="${prettyUrl}" role="input" />
<p class="note">Must begin with a leading forward slash: / (e.g., /people)</p>
<p class="note">${i18n().start_with_leading_slash}</p>
<p>Template<span class="requiredHint"> *</span></p>
<p>${i18n().template_capitalized}<span class="requiredHint"> *</span></p>
<input type="radio" class="default-template" name="selectedTemplate" value="default" <#if selectedTemplateType = "default">checked</#if> role="radio" />
<label class="inline" for="default"> Default</label>
<label class="inline" for="default"> ${i18n().default}</label>
<br />
<input type="radio" name="selectedTemplate" class="custom-template" value="custom" <#if selectedTemplateType = "custom">checked</#if> role="input" />
<label class="inline" for="custom"> Custom template</label>
<label class="inline" for="custom"> ${i18n().custom_template}</label>
<section id="custom-template" <#if selectedTemplateType != 'custom'>class="hidden" </#if>role="region">
<input type="text" name="customTemplate" value="${customTemplate!}" size="40" role="input" /><span class="requiredHint"> *</span>
</section>
<section id="existingContentType" name="existingContentType" ${existingClassGroupStyle} role="region">
<p>Selected content type for the associated page</p>
<p>${i18n().selected_page_content_type}</p>
<p>
<span id="selectedContentTypeValue" name="selectedContentTypeValue">${associatedPage}</span>
<a href="#" id="changeContentType" name="changeContentType" title="change content type">Change content type</a>
<a href="#" id="changeContentType" name="changeContentType" title="${i18n().change_content_type}">${i18n().change_content_type}</a>
</p>
</section>
<#-- Select class group -->
<section id="selectContentType" name="selectContentType" ${selectClassGroupStyle} role="region">
<label for="selectClassGroup">Select content type for the associated page<span class="requiredHint"> *</span></label>
<label for="selectClassGroup">${i18n().select_page_content_type}<span class="requiredHint"> *</span></label>
<select name="selectClassGroup" id="selectClassGroup" role="combobox">
<option value="-1" role="option">Select one</option>
<option value="-1" role="option">${i18n().select_one}</option>
<#list classGroups as aClassGroup>
<option value="${aClassGroup.URI}" <#if aClassGroup.URI = associatedPageURI>selected</#if> role="option">${aClassGroup.publicName}</option>
</#list>
@ -64,7 +64,7 @@
<section id="classesInSelectedGroup" name="classesInSelectedGroup" ${existingClassGroupStyle}>
<#-- Select classes in a class group -->
<p id="selectClassesMessage" name="selectClassesMessage">Select content to display<span class="requiredHint"> *</span></p>
<p id="selectClassesMessage" name="selectClassesMessage">${i18n().select_content_display}<span class="requiredHint"> *</span></p>
<#include "menuManagement--classIntersections.ftl">
@ -72,7 +72,7 @@
<#--Adding a default class for "ALL" in case all classes selected-->
<li class="ui-state-default" role="menuitem">
<input type="checkbox" name="allSelected" id="allSelected" value="all" <#if !isIndividualsForClassesPage?has_content>checked</#if> />
<label class="inline" for="All"> All</label>
<label class="inline" for="All"> ${i18n().all_capitalized}</label>
</li>
<#list classGroup as classInClassGroup>
<li class="ui-state-default" role="menuitem">
@ -92,9 +92,9 @@
</ul>
</section>
<input type="submit" name="submit-${menuAction}" value="Save changes" class="submit" role="input" /> or <a class="cancel" href="${cancelUrl}" title="cancel">Cancel</a>
<input type="submit" name="submit-${menuAction}" value="${i18n().save_changes}" class="submit" role="input" /> ${i18n().or} <a class="cancel" href="${cancelUrl}" title="${i18n().cancel_title}">${i18n().cancel_link}</a>
<p class="requiredHint">* required fields</p>
<p class="requiredHint">* ${i18n().required_fields}</p>
</form>
</section>

View file

@ -11,15 +11,15 @@
</#if>
<h2>Create a new ${typeName}</h2>
<h2>${i18n().create_new} ${typeName}</h2>
<#if submissionErrors?has_content >
<section id="error-alert" role="alert">
<img src="${urls.images}/iconAlert.png" width="24" height="24" alert="Error alert icon" />
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${i18n().error_alert_icon}" />
<p>
<#list submissionErrors?keys as errorFieldName>
<#if errorFieldName == "label">
Please enter a value in the name field.
${i18n().enter_value_name_field}
</#if>
<br />
</#list>
@ -36,17 +36,17 @@
<form id="newIndividual" class="customForm noIE67" action="${submitUrl}" role="add new individual">
<p>
<label for="name">Name ${requiredHint}</label>
<label for="name">${i18n().name} ${requiredHint}</label>
<input size="30" type="text" id="label" name="label" value="" />
</p>
<p class="submit">
<input type="hidden" name = "editKey" value="${editKey}"/>
<input type="submit" id="submit" value="Create ${typeName}"/>
<span class="or"> or <a class="cancel" href="${urls.base}/siteAdmin" title="cancel">Cancel</a>
<input type="submit" id="submit" value="${i18n().create_capitalized} ${typeName}"/>
<span class="or"> or <a class="cancel" href="${urls.base}/siteAdmin" title="${i18n().cancel_title}">${i18n().cancel_link}</a>
</p>
<p id="requiredLegend" class="requiredHint">* required fields</p>
<p id="requiredLegend" class="requiredHint">* ${i18n().required_fields}</p>
</form>

View file

@ -21,9 +21,9 @@
<section id="selectContentType" name="selectContentType" ${selectClassGroupStyle} role="region">
<label for="selectClassGroup">Class Group<span class="requiredHint"> *</span></label>
<label for="selectClassGroup">${i18n().class_group_all_caps}<span class="requiredHint"> *</span></label>
<select name="selectClassGroup" id="selectClassGroup" role="combobox">
<option value="-1" role="option">Select one</option>
<option value="-1" role="option">${i18n().select_one}</option>
<#list classGroups as aClassGroup>
<option value="${aClassGroup.URI}" role="option">${aClassGroup.publicName}</option>
</#list>
@ -33,7 +33,7 @@
<section id="classesInSelectedGroup" name="classesInSelectedGroup" ${existingClassGroupStyle}>
<#-- Select classes in a class group -->
<p id="selectClassesMessage" name="selectClassesMessage">Select content to display<span class="requiredHint"> *</span></p>
<p id="selectClassesMessage" name="selectClassesMessage">${i18n().select_content_display}<span class="requiredHint"> *</span></p>
<#include "pageManagement--classIntersections.ftl">
@ -41,7 +41,7 @@
<#--Adding a default class for "ALL" in case all classes selected-->
<li class="ui-state-default" role="menuitem">
<input type="checkbox" name="allSelected" id="allSelected" value="all" checked="checked" />
<label class="inline" for="All"> All</label>
<label class="inline" for="All"> ${i18n().all_capitalized}</label>
</li>
<#list classGroup as classInClassGroup>
<li class="ui-state-default" role="menuitem">
@ -51,9 +51,9 @@
</li>
</#list>
</ul><br />
<input type="button" id="doneWithContent" class="doneWithContent" name="doneWithContent" value="Save this content" />
<input type="button" id="doneWithContent" class="doneWithContent" name="doneWithContent" value="${i18n().save_this_content}" />
<#if menuAction == "Add">
<span id="cancelContent"> or <a class="cancel" href="javascript:" id="cancelContentLink" >Cancel</a></span>
<span id="cancelContent"> ${i18n().or} <a class="cancel" href="javascript:" id="cancelContentLink" title="${i18n().cancel_title}">${i18n().cancel_link}</a></span>
</#if>
</section>
</section>

View file

@ -2,13 +2,13 @@
<#--This contains the template for the fixed HTML content type that is to be cloned and used in page management-->
<section id="fixedHtml" class="contentSectionContainer">
<label id="fixedHTMLVariableLabel" for="fixedHTMLVariable">Variable Name<span class="requiredHint"> *</span></label>
<label id="fixedHTMLVariableLabel" for="fixedHTMLVariable">${i18n().variable_name_all_caps}<span class="requiredHint"> *</span></label>
<input type="text" name="saveToVar" size="20" value="" id="fixedHTMLSaveToVar" role="input" />
<label id="fixedHTMLValueLabel" for="fixedHTMLValue">Enter fixed HTML here<span id="fixedHTMLValueSpan"></span><span class="requiredHint"> *</span></label>
<label id="fixedHTMLValueLabel" for="fixedHTMLValue">${i18n().enter_fixed_html_here}<span id="fixedHTMLValueSpan"></span><span class="requiredHint"> *</span></label>
<textarea id="fixedHTMLValue" name="htmlValue" cols="70" rows="15" style="margin-bottom:7px"></textarea><br />
<input type="button" id="doneWithContent" name="doneWithContent" value="Save this content" class="doneWithContent" />
<input type="button" id="doneWithContent" name="doneWithContent" value="${i18n().save_this_content}" class="doneWithContent" />
<#if menuAction == "Add">
<span id="cancelContent"> or <a class="cancel" href="javascript:" id="cancelContentLink" >Cancel</a></span>
<span id="cancelContent"> ${i18n().or} <a class="cancel" href="javascript:" id="cancelContentLink" title="${i18n().cancel_title}">${i18n().cancel_link}</a></span>
</#if>
</section>
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processFixedHTMLDataGetterContent.js"></script>')}

View file

@ -1,16 +1,16 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--This contains the template for the Sparql Query content type that is to be cloned and used in page management-->
<section id="sparqlQuery" class="contentSectionContainer">
<label id="variableLabel" for="variable">Variable Name<span class="requiredHint"> *</span></label>
<label id="variableLabel" for="variable">${i18n().variable_name_all_caps}<span class="requiredHint"> *</span></label>
<input type="text" name="saveToVar" size="20" value="" id="saveToVar" role="input" />
<#--Hiding query model for now-->
<#-- <label id="queryModelLabel" for="queryModel">Query Model</label> -->
<#-- <label id="queryModelLabel" for="queryModel">${i18n().query_model}</label> -->
<input type="text" name="queryModel" size="20" value="" id="queryModel" role="input" style="display:none"/>
<label id="queryLabel" for="queryLabel"><span id="querySpan">Enter SPARQL query here</span><span class="requiredHint"> *</span></label>
<label id="queryLabel" for="queryLabel"><span id="querySpan">${i18n().enter_sparql_query_here}</span><span class="requiredHint"> *</span></label>
<textarea id="query" name="query" cols="70" rows="15" style="margin-bottom:7px"></textarea><br />
<input type="button" id="doneWithContent" class="doneWithContent" name="doneWithContent" value="Save this content" />
<input type="button" id="doneWithContent" class="doneWithContent" name="doneWithContent" value="${i18n().save_this_content}" />
<#if menuAction == "Add">
<span id="cancelContent"> or <a class="cancel" href="javascript:" id="cancelContentLink" >Cancel</a></span>
<span id="cancelContent"> or <a class="cancel" href="javascript:" id="cancelContentLink" title="${i18n().cancel_title}">${i18n().cancel_link}</a></span>
</#if>
</section>
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processSparqlDataGetterContent.js"></script>')}

View file

@ -12,8 +12,8 @@
<#assign menuLinkText = "" />
<#assign menuPosition = pageData.highestMenuPosition />
<#assign addMenuItem = "" />
<#assign pageHeading = "Add New Page" />
<#assign saveBtnText = "Save new page" />
<#assign pageHeading = "${i18n().add_new_page}" />
<#assign saveBtnText = "${i18n().save_new_page}" />
<#if pageData.addMenuItem?has_content>
<#assign addMenuItem = pageData.addMenuItem />
</#if>
@ -27,8 +27,8 @@
<#assign menuLinkText = lvf.getFormFieldValue(editSubmission, editConfiguration, "menuLinkText")/>
<#assign customTemplate = lvf.getFormFieldValue(editSubmission, editConfiguration, "customTemplate")/>
<#assign selfContainedTemplate = lvf.getFormFieldValue(editSubmission, editConfiguration, "isSelfContainedTemplate")/>
<#assign pageHeading = "Edit ${pageName} Page" />
<#assign saveBtnText = "Save changes" />
<#assign pageHeading = "${i18n().edit_page(pageName)}" />
<#assign saveBtnText = "${i18n().save_changes}" />
<#if customTemplate?has_content>
<#if selfContainedTemplate?has_content>
<#assign selectedTemplateType = "selfContained" />
@ -49,7 +49,7 @@
<#------------HTML Portion------------->
<section id="error-alert" role="alert" <#if !submissionErrors?has_content>class="hidden"</#if>>
<img src="${urls.images}/iconAlert.png" width="24" height="24" alert="Error alert icon" />
<img src="${urls.images}/iconAlert.png" width="24" height="24" alt="${i18n().error_alert_icon}" />
<p>
<#if submissionErrors?has_content>
<#list submissionErrors?keys as errorFieldName>
@ -70,13 +70,13 @@
<section id="floatRight">
<div id="rightSide" <#if selectedTemplateType="selfContained">style="display:none;"</#if>>
<section id="addPageOne" role="region" >
<label for="contentType">Content Type<span class="requiredHint"> *</span></label>
<label for="contentType">${i18n().content_type}<span class="requiredHint"> *</span></label>
<select id="typeSelect" name="typeSelect" >
<option value="" selected="selected">Select a type</option>
<option value="browseClassGroup">Browse Class Group</option>
<option value="fixedHtml">Fixed HTML</option>
<option value="sparqlQuery">SPARQL Query Results</option>
</select>&nbsp;<span class="note">Add one or more types</span>
<option value="" selected="selected">${i18n().select_type}</option>
<option value="browseClassGroup">${i18n().browse_class_group}</option>
<option value="fixedHtml">${i18n().fixed_html}</option>
<option value="sparqlQuery">${i18n().sparql_query_results}</option>
</select>&nbsp;<span class="note">${i18n().add_types}</span>
</section>
<section id="contentDivs"></section>
<section id="headerBar" >
@ -91,27 +91,27 @@
<!--Information for page or menu item level-->
<div id="leftSide">
<section id="pageDetails" role="region" >
<label for="page-name">Title<span class="requiredHint"> *</span></label>
<label for="page-name">${i18n().title_capitalized}<span class="requiredHint"> *</span></label>
<input id="pageName" type="text" name="pageName" value="${pageName!''}" role="input" />
<label for="pretty-url">Pretty URL<span class="requiredHint"> *</span></label>
<label for="pretty-url">${i18n().pretty_url}<span class="requiredHint"> *</span></label>
<input type="text" name="prettyUrl" value="${prettyUrl!''}" role="input" />
<p class="note">Must begin with a leading forward slash: / <br />(e.g., /people)</p>
<p id="templatePTag">Template<span class="requiredHint"> *</span></p>
<p class="note">${i18n().begin_with_slash_no_example} <br />${i18n().slash_example}</p>
<p id="templatePTag">${i18n().template_capitalized}<span class="requiredHint"> *</span></p>
<input type="radio" class="default-template" name="selectedTemplate" value="default" <#if selectedTemplateType = "default">checked="checked"</#if> role="radio" />
<label class="inline" for="default"> Default</label>
<label class="inline" for="default"> ${i18n().default}</label>
<br />
<input type="radio" name="selectedTemplate" class="custom-template" value="custom" <#if selectedTemplateType = "custom">checked="checked"</#if> role="input" />
<label class="inline" for="custom"> Custom template requiring content</label>
<label class="inline" for="custom"> ${i18n().custom_template_requiring_content}</label>
<br /><div id="selfContainedDiv">
<input type="radio" name="selectedTemplate" class="selfContained-template" value="selfContained" <#if selectedTemplateType = "selfContained">checked="checked"</#if> role="input" />
<label class="inline" for="selfContained"> Custom template containing all content</label></div>
<label class="inline" for="selfContained"> ${i18n().custom_template_containing_content}</label></div>
<section id="custom-template" <#if selectedTemplateType ="default">class="hidden" </#if>role="region">
<input type="text" name="customTemplate" value="${customTemplate!''}" size="33" role="input" /><span class="requiredHint"> *</span>
<input type="hidden" name="selfContainedTemplate" value="${selfContainedTemplate!''}"/>
</section>
<p id="menuCheckboxPTag"><input id="menuCheckbox" type="checkbox" name="menuCheckbox"
<#if (menuAction="Edit" && menuItem?has_content) || (menuAction="Add" && addMenuItem = "true")>checked="checked"</#if>
> This is a menu page</p>
> ${i18n().a_menu_page}</p>
<section id="menu" role="region"
<#--Do not display menu section unless editing an existing menu item-->
<#if (menuAction = "Add" && addMenuItem != "true") || (menuAction="Edit" && (!menuItem?has_content || menuItem = "")) >
@ -120,20 +120,20 @@
class="showMenuSection"
</#if>
>
<label for="default">Menu Item Name</label>
<label for="default">${i18n().menu_item_name}</label>
<input type="hidden" id="menuItem" name="menuItem" value="${menuItem!''}" />
<input type="text" id="menuLinkText" name="menuLinkText" value="${menuLinkText!''}" size="28" role="input" />
<input type="hidden" id="menuPosition" name="menuPosition" value="${menuPosition!''}" />
<p class="note">If left blank, the page title will be used.</p>
<p class="note">${i18n().if_blank_page_title_used}</p>
</section>
<br />
</section>
</div>
<section >
<span id="saveButton" ><input id="pageSave" type="submit" name="submit-Add" value="${saveBtnText}" class="submit" role="input" /> or </span>
<a class="cancel" href="${cancelUrl!}" id="cancelPage" >Cancel</a>
<a class="cancel" href="${cancelUrl!}" id="cancelPage" title="${i18n().cancel_title}">${i18n().cancel_link}</a>
<br />
<p class="requiredHint">* required fields</p>
<p class="requiredHint">* ${i18n().required_fields}</p>
</section>
<!--Hidden input with JSON objects added will be included here. This is the field with the page content information
mirroring what is required by the Data getter server side objects. -->

View file

@ -22,12 +22,12 @@
<p>
<input type="submit" id="submit" value="${editConfiguration.submitLabel}" role="button "/>
<span class="or"> or </span>
<a title="Cancel" class="cancel" href="${cancelUrl}">Cancel</a>
<span class="or"> ${i18n().or} </span>
<a title="${i18n().cancel_title}" class="cancel" href="${cancelUrl}">${i18n().cancel_link}</a>
</p>
</form>
<#else>
<p> There are no Classes in the system from which to select. </p>
<p> ${i18n().no_classes_to_select} </p>
</#if>
<#if editConfiguration.propertyOfferCreateNewOption = true>
@ -36,7 +36,7 @@
</#if>
<#if editConfiguration.propertySelectFromExisting = false && editConfiguration.propertyOfferCreateNewOption = false>
<p>This property is currently configured to prohibit editing. </p>
<p>${i18n().editing_prohibited} </p>
</#if>
<#if editConfiguration.includeDeletionForm = true>

View file

@ -1,12 +1,12 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#assign actionText = "Add new" />
<#assign actionText = "${i18n().add_new}" />
<#if editConfiguration.dataPropertyStatement?has_content>
<#assign actionText = "Edit"/>
<#assign actionText = "${i18n().edit_capitalized}"/>
</#if>
<#assign submitLabel>${actionText} label</#assign>
<#assign submitLabel>${actionText} ${i18n().label}</#assign>
<h2>${actionText} <em>label</em> for ${editConfiguration.subjectName}</h2>
<h2>${actionText} <em>${i18n().label}</em> for ${editConfiguration.subjectName}</h2>
<#assign literalValues = "${editConfiguration.dataLiteralValuesAsString}" />
@ -17,7 +17,7 @@
<p class="submit">
<input type="submit" id="submit" value="${submitLabel}" role="input"/>
or <a href="${cancelUrl}" class="cancel" title="cancel">Cancel</a>
or <a href="${cancelUrl}" class="cancel" title="${i18n().cancel_title}">${i18n().cancel_link}</a>
</p>
</form>