You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2004/08/02 20:56:01 UTC
cvs commit: jakarta-jetspeed/fusion/src/webapp/WEB-INF/templates/vm/portlets/html pa-form.vm pa-browser.vm
taylor 2004/08/02 11:56:01
Added: fusion/src/webapp/WEB-INF/templates/vm/portlets/html
pa-form.vm pa-browser.vm
Log:
templates for registering existing portlet apps
Revision Changes Path
1.1 jakarta-jetspeed/fusion/src/webapp/WEB-INF/templates/vm/portlets/html/pa-form.vm
Index: pa-form.vm
===================================================================
#*
Copyright 2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*#
#**
Display the details of a Portlet App for Registration.
@author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
@version $Id: pa-form.vm,v 1.1 2004/08/02 18:56:01 taylor Exp $
*#
<form method="post" action="$jslink.setPanel("PABrowser").setAction("portlets.RegisterPortletApplicationAction")">
<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>
#if (!$app)
#set ($paname = "")
#else
#set ($paname = $app.Name)
#end
#formCell ("Portlet App Name" "name" $paname)
</tr>
<tr>
#if (!$app)
#set ($pacontext = "")
#else
#set ($pacontext = $app.getWebApplicationDefinition().ContextRoot)
#end
#formCell ("Portlet App Context" "context" $pacontext)
</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 Portlet App"/>
#elseif ($mode == "delete")
<input type="submit" name="eventSubmit_doDelete" value="Confirm Deletion"/>
#else
<input type="submit" name="eventSubmit_doInsert" value="Add Portlet App"/>
#end
</td>
<td>
$!msg
</td>
</tr>
</table>
<input type="hidden" name="entityid" value="$!app.Name"/>
</div>
</form>
1.1 jakarta-jetspeed/fusion/src/webapp/WEB-INF/templates/vm/portlets/html/pa-browser.vm
Index: pa-browser.vm
===================================================================
#*
Copyright 2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*#
#**
@author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
@version $Id: pa-browser.vm,v 1.1 2004/08/02 18:56:01 taylor Exp $
*#
#set ( $headings = ["Portlet App Name", "Web Context", "Actions"] )
<table>
<tr>
<td>
<table border="true" cellspacing="1" cellpadding="3">
<tr>
#foreach ($heading in $headings)
#headerCell ($heading)
#end
</tr>
#foreach ($app in $apps)
<tr>
#entryCell ($app.Name)
#entryCell ($app.getWebApplicationDefinition().ContextRoot)
<td>
<a href="$jslink.getPaneByName("PAForm").addPathInfo("entityid",$app.Name).addQueryData("mode","delete")">Remove</a>
</td>
</tr>
#end
</table>
</td>
</tr>
<tr>
<td>
<a href="$jslink.getPaneByName("PAForm").addQueryData("mode","insert")">Add Portlet App</a>
<td>
</tr>
</table>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org