Updating to allow for deletion to use object property statement template model for all the list-view inclusions, and to wrap the edit configuration template model in a read only bean wrapper which allows accessing methods that require parameters. Also updating to allow menu management switching to use DirectResponseValues instead of regular Redirect, which will not do additional processing for the context path, etc.
This commit is contained in:
parent
de14c86bed
commit
fa92f36b52
5 changed files with 56 additions and 27 deletions
|
@ -4,20 +4,23 @@
|
|||
|
||||
<#if editConfiguration.objectProperty = true>
|
||||
<#assign toBeDeletedClass = "objProp" />
|
||||
<#assign statement = editConfiguration.objectStatementDisplay />
|
||||
<#else>
|
||||
<#assign statement = editConfiguration.dataStatementDisplay />
|
||||
</#if>
|
||||
|
||||
<#assign deletionTemplateName = editConfiguration.deleteTemplate/>
|
||||
<#assign statement = editConfiguration.statementDisplay />
|
||||
|
||||
<form action="${editConfiguration.deleteProcessingUrl}" method="get">
|
||||
<h2>Are you sure you want to delete the following entry from <em>${editConfiguration.propertyName}</em>?</h2>
|
||||
|
||||
<p class="toBeDeleted ${toBeDeletedClass}">
|
||||
<#if editConfiguration.objectProperty = true>
|
||||
<#if statement?has_content && (statement?keys?size > 0)>
|
||||
<#if statement?has_content>
|
||||
<#include deletionTemplateName />
|
||||
</#if>
|
||||
<#else>
|
||||
${statement.dataValue}
|
||||
${statement}
|
||||
</#if>
|
||||
</p>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue