NIHVIVO-142 Markup and styles for adding a new moniker from the front end when there isn't already one present.
This commit is contained in:
parent
a5ca5069f2
commit
6c3c0e0199
1 changed files with 13 additions and 8 deletions
|
@ -61,6 +61,7 @@ if (VitroRequestPrep.isSelfEditing(request) || LoginFormBean.loggedIn(request, L
|
||||||
</c:if>
|
</c:if>
|
||||||
|
|
||||||
<c:set var="showEdits" value="${showSelfEdits || showCuratorEdits}" />
|
<c:set var="showEdits" value="${showSelfEdits || showCuratorEdits}" />
|
||||||
|
<c:set var="editingClass" value="${showEdits ? 'editing' : ''}" />
|
||||||
|
|
||||||
<c:set var='imageDir' value='images' />
|
<c:set var='imageDir' value='images' />
|
||||||
<c:set var="themeDir"><c:out value="${portalBean.themeDir}" /></c:set>
|
<c:set var="themeDir"><c:out value="${portalBean.themeDir}" /></c:set>
|
||||||
|
@ -97,7 +98,7 @@ RY Description not working - FIX
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<jsp:include page="entityAdmin.jsp"/>
|
<jsp:include page="entityAdmin.jsp"/>
|
||||||
|
|
||||||
<div class='contents entity'>
|
<div class="contents entity ${editingClass}">
|
||||||
|
|
||||||
<div id="labelAndMoniker">
|
<div id="labelAndMoniker">
|
||||||
<c:choose>
|
<c:choose>
|
||||||
|
@ -119,8 +120,14 @@ RY Description not working - FIX
|
||||||
</c:if>
|
</c:if>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<c:choose>
|
<%-- For moniker, only wrap in the div if editing. Otherwise, displays inline next to label. --%>
|
||||||
<c:when test="${!empty entity.moniker}">
|
<c:if test="${showEdits}">
|
||||||
|
<div id="dprop-vitro-moniker" class="propsItem editing" style="display:block;">
|
||||||
|
<h3 class="propertyName">moniker</h3>
|
||||||
|
<%-- Here's where we add the plus link, but only if there isn't already a moniker. --%>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${!empty entity.moniker}">
|
||||||
|
<div class="datatypeProperties">
|
||||||
<div class="datatypePropertyValue" id="moniker">
|
<div class="datatypePropertyValue" id="moniker">
|
||||||
<div class="statementWrap">
|
<div class="statementWrap">
|
||||||
<p:process><em class="moniker">${entity.moniker}</em></p:process>
|
<p:process><em class="moniker">${entity.moniker}</em></p:process>
|
||||||
|
@ -130,11 +137,9 @@ RY Description not working - FIX
|
||||||
</c:if>
|
</c:if>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</c:when>
|
</div>
|
||||||
<c:otherwise>
|
</c:if>
|
||||||
<%-- Show the add link --%>
|
<c:if test="${showEdits}"></div></c:if>
|
||||||
</c:otherwise>
|
|
||||||
</c:choose>
|
|
||||||
</c:otherwise>
|
</c:otherwise>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
</div><!-- labelAndMoniker -->
|
</div><!-- labelAndMoniker -->
|
||||||
|
|
Loading…
Add table
Reference in a new issue