incubator-graffito-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clomb...@apache.org
Subject svn commit: r125538 - /incubator/graffito/trunk/portlets/src/webapp/WEB-INF/view/edit.vm
Date Tue, 18 Jan 2005 19:15:16 GMT
Author: clombart
Date: Tue Jan 18 11:15:14 2005
New Revision: 125538

URL: http://svn.apache.org/viewcvs?view=rev&rev=125538
Log:
Continue to work on the Graffito BrowserPortlet
Added:
   incubator/graffito/trunk/portlets/src/webapp/WEB-INF/view/edit.vm

Added: incubator/graffito/trunk/portlets/src/webapp/WEB-INF/view/edit.vm
Url: http://svn.apache.org/viewcvs/incubator/graffito/trunk/portlets/src/webapp/WEB-INF/view/edit.vm?view=auto&rev=125538
==============================================================================
--- (empty file)
+++ incubator/graffito/trunk/portlets/src/webapp/WEB-INF/view/edit.vm	Tue Jan 18 11:15:14
2005
@@ -0,0 +1,71 @@
+#*
+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:christophe.lombart@sword-technologies.com">Christophe Lombart</a>
+@version $Id:  Exp $
+
+*#
+#set ($MESSAGES = $portletConfig.getResourceBundle($renderRequest.Locale))
+
+<div class="portlet-menu">$MESSAGES.getString('div.path') $browserInfo.getUri()</div>
+
+<form action="$renderResponse.createActionURL()" method="post">
+	#set ($folders = $browserInfo.getFolders())
+	#set ($documents = $browserInfo.getDocuments())
+	
+	#if($browserInfo.isEmpty())
+		<div class="portlet-msg-info">$MESSAGES.getString('info.nocontent')</div>
+	#else
+	<table>
+			
+		<tr>
+			<th class="portlet-section-header">$MESSAGES.getString('edit.tab.select')</th>
+			<th class="portlet-section-header">$MESSAGES.getString('edit.tab.name')</th>
+			<th class="portlet-section-header">$MESSAGES.getString('edit.tab.title')</th>
+			<th class="portlet-section-header">$MESSAGES.getString('edit.tab.description')</th>
+		</tr>
+		<tr><div class="portlet-menu">$MESSAGES.getString('div.folders')</div></tr>

+		#foreach ($folder in $folders)
+		<tr>
+			<td class="portlet-section-body"><input type="checkbox"/></th>
+			<td class="portlet-section-body">folder.getName()</th>
+			<td class="portlet-section-body">folder.getTitle()</th>
+			<td class="portlet-section-body">folder.getDescription()</th>
+		</tr>
+		#end
+		<tr><div class="portlet-menu">$MESSAGES.getString('div.documents')</div></tr>
+		#foreach ($document in $documents)
+		<tr>
+			<td class="portlet-section-body"><input type="checkbox"/></th>
+			<td class="portlet-section-body">document.getName()</th>
+			<td class="portlet-section-body">document.getTitle()</th>
+			<td class="portlet-section-body">document.getDescription()</th>
+		</tr>
+		#end
+	</table>	
+	#end
+	
+	<div class="portlet-menu">
+		<input type="submit" name="folder.add" value="$MESSAGES.getString('link.addfolder')"
class="portlet-dlg-icon-label" />	
+		<input type="submit" name="document.add" value="$MESSAGES.getString('link.adddocument')"
class="portlet-dlg-icon-label" />	
+	</div>
+	
+</form>
+
+
+

Mime
View raw message