VIVO-217: modified template to handle situations where the associatedPage variable is null
This commit is contained in:
parent
3f8286756a
commit
ea98c15092
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@
|
||||||
<section id="existingContentType" name="existingContentType" ${existingClassGroupStyle} role="region">
|
<section id="existingContentType" name="existingContentType" ${existingClassGroupStyle} role="region">
|
||||||
<p>${i18n().selected_page_content_type}</p>
|
<p>${i18n().selected_page_content_type}</p>
|
||||||
<p>
|
<p>
|
||||||
<span id="selectedContentTypeValue" name="selectedContentTypeValue">${associatedPage}</span>
|
<span id="selectedContentTypeValue" name="selectedContentTypeValue">${associatedPage!}</span>
|
||||||
<a href="#" id="changeContentType" name="changeContentType" title="${i18n().change_content_type}">${i18n().change_content_type}</a>
|
<a href="#" id="changeContentType" name="changeContentType" title="${i18n().change_content_type}">${i18n().change_content_type}</a>
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
<select name="selectClassGroup" id="selectClassGroup" role="combobox">
|
<select name="selectClassGroup" id="selectClassGroup" role="combobox">
|
||||||
<option value="-1" role="option">${i18n().select_one}</option>
|
<option value="-1" role="option">${i18n().select_one}</option>
|
||||||
<#list classGroups as aClassGroup>
|
<#list classGroups as aClassGroup>
|
||||||
<option value="${aClassGroup.URI}" <#if aClassGroup.URI = associatedPageURI>selected</#if> role="option">${aClassGroup.publicName}</option>
|
<option value="${aClassGroup.URI}" <#if aClassGroup.URI = associatedPageURI!"">selected</#if> role="option">${aClassGroup.publicName}</option>
|
||||||
</#list>
|
</#list>
|
||||||
</select>
|
</select>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue