NIHVIVO-707 Add web page and cancel link destinations
This commit is contained in:
parent
c399323d92
commit
69af70e7be
3 changed files with 22 additions and 6 deletions
|
@ -130,7 +130,6 @@ core:rank
|
|||
"formUrl" : "${formUrl}",
|
||||
"editKey" : "${editKey}",
|
||||
"urlPatternToReturnTo" : "${returnPathAfterSubmit}",
|
||||
"urlPatternToCancelTo" : "${returnPathAfterCancel}",
|
||||
|
||||
"subject" : ["subject", "${subjectUriJson}" ],
|
||||
"predicate" : ["predicate", "${predicateUriJson}" ],
|
||||
|
@ -228,7 +227,9 @@ core:rank
|
|||
<c:set var="editMode" value="add" />
|
||||
<c:set var="title" value="Add a webpage for" />
|
||||
<c:set var="submitButtonText" value="Add webpage" />
|
||||
<c:set var="cancelUrl" value="/individual" />
|
||||
<%-- Cancel to where ever we came from: either directly from the profile page, or from
|
||||
the Manage Web Pages screen. The latter has added a url param to signal itself. --%>
|
||||
<c:set var="cancelUrl" value="${ param.cancelTo == 'manage' ? '' : '/individual' }" />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue