Author: bdaw
Date: 2007-05-21 11:14:16 -0400 (Mon, 21 May 2007)
New Revision: 7299
Modified:
trunk/core/src/resources/portal-core-war/WEB-INF/jsp/role/editUserRoles.jsp
Log:
JBPORTAL-1442 In 'Edit Roles' view the cancel link should be a button styled
similarly to the "Save Changes" button, with a slight amount of spacing between
the two buttons. The top description on this portlet "Edit roles for user:
xxxxx" should be bolded like other titles.
There should be more spacing between the "Edit roles for user: xxxxx" text and
the "Available roles" text. There should be more spacing between the roles list
and the "Assign roles" and "Cancel" buttons.
Modified: trunk/core/src/resources/portal-core-war/WEB-INF/jsp/role/editUserRoles.jsp
===================================================================
--- trunk/core/src/resources/portal-core-war/WEB-INF/jsp/role/editUserRoles.jsp 2007-05-21
14:49:48 UTC (rev 7298)
+++ trunk/core/src/resources/portal-core-war/WEB-INF/jsp/role/editUserRoles.jsp 2007-05-21
15:14:16 UTC (rev 7299)
@@ -3,28 +3,39 @@
<%@ taglib
uri="http://java.sun.com/portlet" prefix="portlet"
%>
<%@ page isELIgnored="false" %>
-<span>${n:i18n("EDITROLESFORUSER")}:
"${n:out("username")}"
-
-<form method="post" action="<portlet:actionURL><portlet:param
name="op"
value="addRolesToUser"/></portlet:actionURL>">
- <input type="hidden" name="userid"
value="${n:out("userid")}"/>
+<span><b>${n:i18n("EDITROLESFORUSER")}:
"${n:out("username")}"</b>
+ <br/>
+ <br/>
<table>
<tr>
<th
colspan="3">${n:i18n("ROLESAVAILABLE")}</th>
</tr>
- <n:iterate ctx="row">
- <tr>
- <n:iterate ctx="col">
- <td><input type="checkbox" name="roles"
- value="${n:out("row.col.name")}"
${n:out("row.col.ischecked")}>${n:out("row.col.displayname")}
- </td>
- </n:iterate>
- </tr>
- </n:iterate>
+ <form name="<portlet:namespace/>editRoles"
method="post" action="<portlet:actionURL><portlet:param
name="op"
value="addRolesToUser"/></portlet:actionURL>">
+ <input type="hidden" name="userid"
value="${n:out("userid")}"/>
+ <n:iterate ctx="row">
+ <tr>
+ <n:iterate ctx="col">
+ <td><input type="checkbox" name="roles"
+ value="${n:out("row.col.name")}"
${n:out("row.col.ischecked")}>${n:out("row.col.displayname")}
+ </td>
+ </n:iterate>
+ </tr>
+ </n:iterate>
+ </form>
+ <form
+ name="<portlet:namespace/>cancel"
+ action="<portlet:renderURL
windowState="normal"><portlet:param name="op"
value="showSummary"/></portlet:renderURL>"
+ method="post"/>
+ <tr><td><br/></td></tr>
<tr>
- <td colspan="3"><input type="submit"
class="portlet-form-button"
-
value="${n:i18n("ASSIGNROLES")}"/>
- <span class="portlet-font"><a
- href="<portlet:renderURL
windowState="normal"><portlet:param name="op"
value="showSummary"/></portlet:renderURL>">${n:i18n("Cancel")}</a></span>
+ <td colspan="3">
+ <input name="Save" class="portlet-form-button"
id="Assign" type="submit"
+
onclick="document.forms['<portlet:namespace/>editRoles'].submit();"
+ value="${n:i18n("ASSIGNROLES")}"/>
+
+ <input name="Cancel" class="portlet-form-button"
id="Cancel" type="submit"
+
onclick="document.forms['<portlet:namespace/>cancel'].submit();"
+ value="${n:i18n("Cancel")}"/>
</tr>
</table>
-</form>
\ No newline at end of file
+</span>
\ No newline at end of file