taylor 2004/09/19 16:54:42 Modified: applications/pam/src/webapp/WEB-INF/view user-details.jsp Log: User Attributes tab UI maintenance CVS: ---------------------------------------------------------------------- CVS: PR: CVS: If this change addresses a PR in the problem report tracking CVS: database, then enter the PR number(s) here. CVS: Obtained from: CVS: If this change has been taken from another system, such as NCSA, CVS: then name the system in this line, otherwise delete it. CVS: Submitted by: CVS: If this code has been contributed to Apache by someone else; i.e., CVS: they sent us a patch or a new module, then include their name/email CVS: address here. If this is your work then delete this line. CVS: Reviewed by: CVS: If we are doing pre-commit code reviews and someone else has CVS: reviewed your changes, include their name(s) here. CVS: If you have not had it reviewed then delete this line. Revision Changes Path 1.4 +54 -3 jakarta-jetspeed-2/applications/pam/src/webapp/WEB-INF/view/user-details.jsp Index: user-details.jsp =================================================================== RCS file: /home/cvs/jakarta-jetspeed-2/applications/pam/src/webapp/WEB-INF/view/user-details.jsp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- user-details.jsp 17 Sep 2004 23:26:32 -0000 1.3 +++ user-details.jsp 19 Sep 2004 23:54:42 -0000 1.4 @@ -56,9 +56,60 @@ <%--TODO: switch to c:choose --%> <c:if test="${currentTab.id == 'user_attributes'}"> <div id="attributes"> - </div> - <h3>USER ATTRIBUTES</h3> - + <portlet:actionURL var="edit_user_attr_link" /> + + <form name="Edit_UserAttr_Form" action="<c:out value="${edit_user_attr_link}"/>"> + <input type="hidden" name="portlet_action" value="security_user.edit_user_attribute"/> + + <table> + <tr> + <th> </th> + <th><fmt:message key="security.name"/></th> + <th><fmt:message key="security.value"/></th> + </tr> + <c:forEach var="userAttr" items="${user.attributes}"> + <tr> + <%--<input type="hidden" name="user_attr_name" value="<c:out value="${userAttr.name}"/>"/>--%> + + <td> + <input type="checkbox" name="user_attr_id" value="<c:out value="${userAttr.name}"/>"/> + </td> + <td> + <c:out value="${userAttr.name}"/> + </td> + <td> + <input type="text" name="<c:out value="${userAttr.name}"/>:value" value="<c:out value="${userAttr.value}"/>"/> + </td> + </tr> + </c:forEach> + </table> + <input type="submit" value="<fmt:message key="security.update"/>" onClick="this.form.portlet_action.value = 'security_user.update_user_attribute'"/> + <input type="submit" value="<fmt:message key="security.remove"/>" onClick="this.form.portlet_action.value = 'security_user.remove_user_attribute'"/> + </form> + <form name="Add_UserAttr_Form" action="<c:out value="${edit_user_attr_link}"/>"> + <input type="hidden" name="portlet_action" value="security_user.add_user_attribute"/> + + <table> + <tr> + <td> + <fmt:message key="security.name"/> + </td> + <td> + <input type="text" name="user_attr_name" value=""/> + </td> + </tr> + <tr> + <td> + <fmt:message key="security.value"/> + </td> + <td> + <input type="text" name="user_attr_value" value=""/> + </td> + </tr> + </table> + <input type="submit" value="<fmt:message key="security.add"/>"/> + </form> + </div> </c:if> <%--End of User Attributes tab data--%>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]