Skip to content

Commit

Permalink
Separate Facilities
Browse files Browse the repository at this point in the history
  • Loading branch information
slominskir committed Jan 28, 2025
1 parent 5c8191c commit f4fb785
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response)
request.setAttribute("paginator", paginator);

request
.getRequestDispatcher("/WEB-INF/views/permissions/authorization-history.jsp")
.getRequestDispatcher("/WEB-INF/views/history/beam-history.jsp")
.forward(request, response);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response)
request.setAttribute("destinationAuthorizationMap", destinationAuthorizationMap);

request
.getRequestDispatcher("/WEB-INF/views/permissions/destinations-authorization-history.jsp")
.getRequestDispatcher("/WEB-INF/views/history/destinations-history.jsp")
.forward(request, response);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<c:choose>
<c:when test="${not empty beamList}">
<div class="editable-field power-limited-note">Note: Blank/Empty Current Limit results in "Dump Power Limited"</div>
<t:destination-permissions-table beamList="${beamList}" isHistory="${isHistory}"/>
<t:beam-operations-table beamList="${beamList}" isHistory="${isHistory}"/>
<h3>Notes</h3>
<div class="notes-field">
<span class="readonly-field">
Expand Down
6 changes: 3 additions & 3 deletions src/main/webapp/WEB-INF/views/facility-authorization.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="beamauth" uri="http://jlab.org/beamauth/functions"%>
<%@taglib prefix="t" tagdir="/WEB-INF/tags"%>
<t:authorization-page title="${facility.name}">
<t:facility-authorizations-page title="${facility.name}">
<jsp:attribute name="stylesheets">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/v${initParam.releaseNumber}/css/permissions.css"/>
</jsp:attribute>
Expand All @@ -13,7 +13,7 @@
</jsp:attribute>
<jsp:body>
<section>
<t:permissions-page rfList="${rfList}" beamList="${beamList}" isEditable="${pageContext.request.isUserInRole('jam-admin')}" isHistory="${false}"/>
<t:authorizations-panel rfList="${rfList}" beamList="${beamList}" isEditable="${pageContext.request.isUserInRole('jam-admin')}" isHistory="${false}"/>
</section>
<div id="success-dialog" class="dialog" title="Authorization Saved Successfully">
<span class="logentry-success">A new log entry was created: <a id="new-entry-url" href="#"></a></span>
Expand All @@ -22,4 +22,4 @@
</div>
</div>
</jsp:body>
</t:authorization-page>
</t:facility-authorizations-page>
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<section>
<c:choose>
<c:when test="${beamAuthorization ne null}">
<t:permissions-page rfList="${rfList}" beamList="${beamList}" isEditable="${false}" isHistory="${true}"/>
<t:authorizations-panel rfList="${rfList}" beamList="${beamList}" isEditable="${false}" isHistory="${true}"/>
</c:when>
<c:otherwise>
<div class="message-box">No Authorization found with ID: ${fn:escapeXml(param.beamAuthorizationId)}</div>
Expand Down

0 comments on commit f4fb785

Please sign in to comment.