taylor 01/07/29 23:26:19
Added: webapp/WEB-INF/templates/vm/portlets group-browser.vm
group-form.vm
Log:
- added velocity group browser and form
Revision Changes Path
1.1
jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/group-browser.vm
Index: group-browser.vm
===================================================================
#**
@author <a href="mailto:[EMAIL PROTECTED]">David Sean Taylor</a>
@version $Id: group-browser.vm,v 1.1 2001/07/30 06:26:19 taylor Exp $
*#
#set ( $headings = ["Group Name", "Actions"] )
<table>
<tr>
<td>
<table border="true" cellspacing="1" cellpadding="3">
<tr>
#foreach ($heading in $headings)
#headerCell ($heading)
#end
</tr>
#foreach ($group in $groups)
<tr>
#entryCell ($group.Name)
<td>
#if ($group.Name != "Jetspeed")
<a
href="$jlink.setPanel("Group").addPathInfo("entityid",$group.Name).addQueryData("mode","delete")">Remove</a>
#end
</td>
</tr>
#end
</table>
</td>
</tr>
<tr>
<td>
<a href="$jlink.setPanel("Group").addQueryData("mode","insert")">Add
Group</a>
<td>
</tr>
</table>
1.1
jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/group-form.vm
Index: group-form.vm
===================================================================
#**
Display the details of a group.
@author <a href="mailto:[EMAIL PROTECTED]">David Sean Taylor</a>
@version $Id: group-form.vm,v 1.1 2001/07/30 06:26:19 taylor Exp $
*#
<form method="post" action="$jlink.setPanel("Group
Browser").setAction("portlets.security.GroupUpdateAction")">
<div align="left">
<table bgcolor="#ffffff" cellpadding="5">
#if ($errorTemplate)
<tr>
<td colspan="2">
<table bgcolor="#ffffff">
<tr>
<td>
#parse ($errorTemplate)
</td>
</tr>
</table>
</td>
</tr>
#end
<tr>
#formCell ("Group Name" "name" $!group.Name)
</tr>
<tr>
<td align="$ui.buttonAlignment" bgcolor="$!{skin.TitleBackgroundColor}">
#*
Check for a mode, the update and delete buttons
shouldn't appear when inserting a new user.
*#
#if ($mode == "update")
<input type="submit" name="eventSubmit_doUpdate" value="Update Group"/>
#elseif ($mode == "delete")
<input type="submit" name="eventSubmit_doDelete" value="Confirm
Deletion"/>
#else
<input type="submit" name="eventSubmit_doInsert" value="Add Group"/>
#end
</td>
<td>
$!msg
</td>
</tr>
</table>
<input type="hidden" name="entityid" value="$!group.Name"/>
</div>
</form>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]