Advertisement
Guest User

Untitled

a guest
Sep 24th, 2013
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.11 KB | None | 0 0
  1. <%--
  2. * Copyright (C) 2005-2010 Alfresco Software Limited.
  3. *
  4. * This file is part of Alfresco
  5. *
  6. * Alfresco is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU Lesser General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * Alfresco is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public License
  17. * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
  18. --%>
  19. <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
  20. <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
  21. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  22. <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
  23. <%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a"%>
  24. <%@ taglib uri="/WEB-INF/repo.tld" prefix="r"%>
  25.  
  26. <%@ page buffer="32kb" contentType="text/html;charset=UTF-8"%>
  27. <%@ page isELIgnored="false"%>
  28. <%@ page import="org.alfresco.web.ui.common.PanelGenerator"%>
  29.  
  30. <f:verbatim>
  31. <table cellspacing="0" cellpadding="0" width="100%">
  32. <%-- Details --%>
  33. <tr valign=top>
  34. <td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif)" width="4"></td>
  35. <td>
  36. <table cellspacing="2" cellpadding="2" border="0" width="100%">
  37. <tr>
  38. <td width="100%" valign="top"></f:verbatim>
  39. <a:panel id="users-panel" border="white" bgcolor="white" titleBorder="lbgrey" expandedTitleBorder="dotted" titleBgcolor="white" styleClass="mainSubTitle" label="#{msg.users_and_groups}">
  40.  
  41. <a:richList id="users-list" binding="#{DialogManager.bean.usersRichList}" viewMode="details" pageSize="10" styleClass="recordSet" headerStyleClass="recordSetHeader" rowStyleClass="recordSetRow" altRowStyleClass="recordSetRowAlt"
  42. width="100%" value="#{DialogManager.bean.users}" var="r" initialSortColumn="userName" initialSortDescending="true">
  43.  
  44. <%-- Primary column with full name --%>
  45. <a:column primary="true" width="200" style="padding:2px;text-align:left">
  46. <f:facet name="header">
  47. <a:sortLink label="#{msg.name}" value="fullName" mode="case-insensitive" styleClass="header"/>
  48. </f:facet>
  49. <f:facet name="small-icon">
  50. <h:graphicImage url="#{r.icon}" />
  51. </f:facet>
  52. <a:actionLink id="user-link" value="#{r.fullName}" actionListener="#{UsersDialog.setupUserAction}" action="dialog:userProfile" rendered="#{!r.isGroup}">
  53. <f:param name="id" value="#{r.id}" />
  54. </a:actionLink>
  55. <h:outputText id="user-txt" value="#{r.fullName} (#{fn:replace(r.id, 'GROUP_', '')})" rendered="#{r.isGroup}" />
  56. </a:column>
  57.  
  58. <%-- Username column --%>
  59. <a:column width="120" style="text-align:left">
  60. <f:facet name="header">
  61. <a:sortLink label="#{msg.authority}" value="userNameLabel" styleClass="header"/>
  62. </f:facet>
  63. <h:outputText value="#{r.userNameLabel}" />
  64. </a:column>
  65.  
  66. <%-- Roles column --%>
  67. <a:column style="text-align:left">
  68. <f:facet name="header">
  69. <a:sortLink label="#{msg.roles}" value="roles" styleClass="header"/>
  70. </f:facet>
  71. <h:outputText value="#{r.roles}" />
  72. </a:column>
  73.  
  74. <%-- Actions column --%>
  75. <a:column actions="true" style="text-align:left">
  76. <f:facet name="header">
  77. <h:outputText value="#{msg.actions}"/>
  78. </f:facet>
  79. <a:booleanEvaluator value="#{!r.inherited}">
  80. <a:actionLink value="#{msg.change_roles}" image="/images/icons/edituser.gif" showLink="false" action="dialog:editContentUserRoles" actionListener="#{EditContentUserRolesDialog.setupUserAction}">
  81. <f:param id="p1" name="userName" value="#{r.userName}" />
  82. <f:param id="p2" name="userNameLabel" value="#{r.userNameLabel}" />
  83. </a:actionLink>
  84. <a:actionLink value="#{msg.remove}" image="/images/icons/delete_person.gif" showLink="false" action="dialog:removeContentUser" actionListener="#{RemoveContentUserDialog.setupUserAction}">
  85. <f:param id="p3" name="userName" value="#{r.userName}" />
  86. <f:param id="p4" name="userNameLabel" value="#{r.userNameLabel}" />
  87. </a:actionLink>
  88. </a:booleanEvaluator>
  89. </a:column>
  90.  
  91. <a:dataPager styleClass="pager" />
  92. </a:richList>
  93.  
  94. </a:panel><f:verbatim></td>
  95. </tr>
  96. </table>
  97. </td>
  98. <td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif )" width="4"></td>
  99. </tr>
  100.  
  101. <tr>
  102. <td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_4.gif )" width="4"></td>
  103. <td>
  104. <table cellspacing="2" cellpadding="0" border="0" width="100%">
  105. <tr>
  106. <td></f:verbatim><h:selectBooleanCheckbox id="chkPermissions" value="#{DialogManager.bean.inheritPermissions}" valueChangeListener="#{DialogManager.bean.inheritPermissionsValueChanged}" onclick="document.forms['dialog'].submit(); return true;"
  107. disabled="#{!DialogManager.bean.hasChangePermissions}" /><f:verbatim></td>
  108. <td width=100%>&nbsp;</f:verbatim><h:outputText value="#{msg.inherit_permissions}" /><f:verbatim></td>
  109. </tr>
  110.  
  111. </table>
  112. </td>
  113. <td style="background-image: url(<%=request.getContextPath()%>/images/parts/whitepanel_6.gif )" width="4"></td>
  114. </tr>
  115. </table>
  116. </f:verbatim>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement