manage.jsp 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <%--
  2. Licensed to Jasig under one or more contributor license
  3. agreements. See the NOTICE file distributed with this work
  4. for additional information regarding copyright ownership.
  5. Jasig licenses this file to you under the Apache License,
  6. Version 2.0 (the "License"); you may not use this file
  7. except in compliance with the License. You may obtain a
  8. copy of the License at the following location:
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing,
  11. software distributed under the License is distributed on an
  12. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  13. KIND, either express or implied. See the License for the
  14. specific language governing permissions and limitations
  15. under the License.
  16. --%>
  17. <%@include file="includes/top.jsp"%>
  18. <c:if test="${fn:length(services) eq 0}">
  19. <div id="msg" class="errors"><p><spring:message code="management.services.service.warn" arguments="${defaultServiceUrl}" /></p></div>
  20. </c:if>
  21. <c:if test="${not empty param.status}">
  22. <div id="msg" class="success"><spring:message code="management.services.status.${param.status}" arguments="${param.serviceName}" /></div>
  23. </c:if>
  24. <div class="errors" id="errorsDiv">
  25. <spring:message code="management.services.status.evaluationOrder.notupdated" />
  26. </div>
  27. <table id="headerTable" class="headerTable">
  28. <tr>
  29. <th class="th1"><spring:message code="management.services.manage.label.name" /></th>
  30. <th class="th2"><spring:message code="management.services.manage.label.serviceUrl" /></th>
  31. <th class="th3 ac"><spring:message code="management.services.manage.label.enabled" /></th>
  32. <th class="th4 ac"><spring:message code="management.services.manage.label.allowedToProxy" /></th>
  33. <th class="th5 ac"><spring:message code="management.services.manage.label.ssoParticipant" /></th>
  34. <th class="th6 ac"><spring:message code="management.services.manage.label.anonymous" /></th>
  35. <th class="th7 ac"><spring:message code="management.services.manage.label.usernameAttribute" /></th>
  36. <th class="th8 ac"><spring:message code="management.services.manage.label.evaluationOrder" /></th>
  37. <th class="th9">&nbsp;</th>
  38. <th class="th10">&nbsp;</th>
  39. </tr>
  40. </table>
  41. <div id="tableWrapper" class="tableWrapper">
  42. <table id="scrollTable" class="scrollTable highlight large">
  43. <tbody>
  44. <c:forEach items="${services}" var="service" varStatus="status">
  45. <tr id="row${status.index}"${param.id eq service.id ? ' class="added"' : ''}>
  46. <td id="${service.id}" class="td1">${service.name}</td>
  47. <td class="td2">${fn:length(service.serviceId) < 50 ? service.serviceId : fn:substring(service.serviceId, 0, 50)}</td>
  48. <td class="ac td3"><img src="../images/services/${service.enabled}.gif" alt="${service.enabled ? 'Enabled' : 'Disabled'}" /></td>
  49. <td class="ac td4"><img src="../images/services/${service.allowedToProxy}.gif" alt="${service.allowedToProxy ? 'Allowed to Proxy' : 'Not Allowed to Proxy'}" /></td>
  50. <td class="ac td5"><img src="../images/services/${service.ssoEnabled}.gif" alt="${service.ssoEnabled ? 'SSO Enabled' : 'SSO Disabled'}" /></td>
  51. <td class="ac td6"><img src="../images/services/${service.anonymousAccess}.gif" alt="${service.anonymousAccess ? 'Anonyous Access Enabled' : 'Anonyous Access Disabled'}" /></td>
  52. <td class="ac td7">${service.usernameAttribute}</td>
  53. <td class="ac td8">${service.evaluationOrder}</td>
  54. <td class="td9" id="edit${status.index}"><a href="edit.html?id=${service.id}" class="edit"><spring:message code="management.services.manage.action.edit" /></a></td>
  55. <td class="td10" id="delete${status.index}"><a href="#" class="del" onclick="swapButtonsForConfirm('${status.index}','${service.id}'); return false;"><spring:message code="management.services.manage.action.delete" /></a></td>
  56. </tr>
  57. </c:forEach>
  58. </tbody>
  59. </table>
  60. </div>
  61. <div class="add"><a href="add.html"><span style="text-transform: lowercase;"><spring:message code="addServiceView" /></span></a></div>
  62. <%@include file="includes/bottom.jsp" %>