portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jf...@apache.org
Subject cvs commit: jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html browser-portlet.vm
Date Mon, 03 Nov 2003 05:27:20 GMT
jford       2003/11/02 21:27:20

  Modified:    webapp/WEB-INF/templates/vm/portlets/html browser-portlet.vm
  Log:
  Added ability to filter portlets by type, parent, media type, and category
  in the portlet browser
  
  PR: Bugzilla #24339
  
  Revision  Changes    Path
  1.7       +80 -18    jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/browser-portlet.vm
  
  Index: browser-portlet.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/browser-portlet.vm,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- browser-portlet.vm	10 Jun 2003 17:48:09 -0000	1.6
  +++ browser-portlet.vm	3 Nov 2003 05:27:20 -0000	1.7
  @@ -1,21 +1,83 @@
  +<!--Add a new action entry-->
  +<form action="$jslink">
  +
  +<table>
  +	<tr>
  +		<td>$l10n.PORTLET_BROWSER_CATEOGRY</td>
  +		<td>
  +			<input type="hidden" name="filter_field" value="category"/>
  +			<select name="category:filter_value">
  +				<option value="">All Portlets</option>
  +				#foreach($category in $categories)
  +					<option value="$category.name" #if($category_filter_value == $category.name) selected="true"
#end)>$category.name</option>
  +				#end
  +			</select>
  +		</td>
  +	</tr>
  +	<tr>
  +		<td>$l10n.PORTLET_BROWSER_PARENT</td>
  +		<td>
  +			<input type="hidden" name="filter_field" value="parent"/>
  +			<select name="parent:filter_value">
  +				<option value="">All Parents</option>
  +				#foreach($parent in $parents)
  +					#if($parent.Title)
  +						<option value="$parent.name" #if($parent_filter_value == $parent.name) selected="true"
#end>$parent.Title</option>
  +					#else
  +						<option value="$parent.name" #if($parent_filter_value == $parent.name) selected="true"
#end>$parent.name</option>
  +					#end
  +				#end
  +			</select>
  +		</td>
  +	</tr>
  +	<tr>
  +		<td>$l10n.PORTLET_BROWSER_MEDIATYPE</td>
  +		<td>
  +			<input type="hidden" name="filter_field" value="media_type"/>
  +			<select name="media_type:filter_value">
  +				<option value="">All Media Types</option>
  +				#foreach($mediaType in $media_types)
  +					<option value="$mediaType" #if($media_type_filter_value == $mediaType) selected="true"
#end>$mediaType</option>
  +				#end
  +			</select>
  +		</td>
  +	</tr>
  +	<tr>
  +		<td>$l10n.PORTLET_BROWSER_TYPE</td>
  +		<td>
  +			<input type="hidden" name="filter_field" value="type"/>
  +			<select name="type:filter_value">
  +				<option value="">All Types</option>
  +				<option value="abstract" #if($type_filter_value == "abstract") selected="true" #end>Abstract</option>
  +				<option value="ref" #if($type_filter_value == "ref") selected="true" #end>Ref</option>
  +				<option value="instance" #if($type_filter_value == "instance") selected="true" #end>Instance</option>
  +			</select>
  +		</td>
  +	</tr>
  +	<tr>
  +		<td><input type="submit" name="eventSubmit_doFilter" value="$l10n.PORTLET_BROWSER_FILTER"/>
  +	</tr>
  +</table>
  +</form>
  +
   <table width="100%" cellpadding="3" cellspacing="1" BORDER="1">
     <tr>
  -    <th>Name</th>
  -    <th>Parent</th>
  -    <th>Title</th>    
  -    <th>Description</th>
  -    <th>Media Types</th>
  -    <th colspan="2">Actions</th>
  +    <th>$l10n.PORTLET_BROWSER_NAME</th>
  +    <th>$l10n.PORTLET_BROWSER_PARENT</th>
  +    <th>$l10n.PORTLET_BROWSER_TITLE</th>    
  +    <th>$l10n.PORTLET_BROWSER_DESCRIPTION</th>
  +    <th>$l10n.PORTLET_BROWSER_MEDIATYPE</th>
  +    <th colspan="2">$l10n.PORTLET_BROWSER_ACTIONS</th>
     </tr>
   #foreach ( $entry in $registry )
   #set ( $old = "" )
     <tr>
       <td>
  -                  #if ($config.getBoolean("customizer.preview.enable", false) == true &&
$entry.Type != "abstract")
  -                    <a target="_blank" TITLE="Preview" href="$jslink.setTemplate("preview").addQueryData("p",$entry.Name).addQueryData("c","ClearPortletControl")">$entry.Name</a>
  -                  #else
  -                    $entry.Name
  -                  #end  
  +          #if ($config.getBoolean("customizer.preview.enable", false) == true &&
$entry.Type != "abstract")
  +            <a target="_blank" TITLE="Preview" href="$jslink.setTemplate("preview").addQueryData("p",$entry.Name).addQueryData("c","ClearPortletControl")">$entry.Name</a>
  +          #else
  +            $entry.Name
  +          #end
       </TD>    
       <td>$!entry.Parent&nbsp;</td>    
       <td>$!entry.Title&nbsp;</td>
  @@ -28,10 +90,10 @@
   #end
       </td>
       <td>
  -      <a style="font-size:10" href="$jslink.setPaneByName("PortletForm").addQueryData("mode","update").addQueryData("portlet_name",
$!entry.Name)">Edit</a>&nbsp;
  +      <a style="font-size:10" href="$jslink.setPaneByName("PortletForm").addQueryData("mode","update").addQueryData("portlet_name",
$!entry.Name)">$l10n.PORTLET_BROWSER_EDIT</a>&nbsp;
       </td>
       <td>
  -      <a style="font-size:10" href="$jslink.setPaneByName("PortletForm").addQueryData("mode","delete").addQueryData("portlet_name",
$!entry.Name)">Delete</a>&nbsp;
  +      <a style="font-size:10" href="$jslink.setPaneByName("PortletForm").addQueryData("mode","delete").addQueryData("portlet_name",
$!entry.Name)">$l10n.PORTLET_BROWSER_DELETE</a>&nbsp;
       </td>
     </tr>
   #end
  @@ -40,16 +102,16 @@
     <tr>
       <td align="right" width="50%">
   #if ($prev)
  -<form action="$jlink" method="post">
  -       <input type="submit" value="&lt; &lt; Previous">
  +<form action="$jslink" method="post">
  +       <input type="submit" value="&lt; &lt; $l10n.PORTLET_BROWSER_PREVIOUS">
         <input type="hidden" name="start" value="$prev">
   </form>
   #end
       </td>
       <td align="left" width="50%">
   #if ($next)
  -<form action="$jlink" method="post">
  -       <input type="submit" value="Next &gt; &gt;">
  +<form action="$jslink" method="post">
  +       <input type="submit" value="$l10n.PORTLET_BROWSER_NEXT &gt; &gt;">
         <input type="hidden" name="start" value="$next">
   </form>
   #end
  @@ -57,7 +119,7 @@
     </tr>
     <tr>
       <td colspan=6 align="left">
  -     <a style="font-size:10" href="$jslink.setPaneByName("PortletForm").addQueryData("mode","insert")">Add
Portlet</a>&nbsp;
  +     <a style="font-size:10" href="$jslink.setPaneByName("PortletForm").addQueryData("mode","insert")">$l10n.PORTLET_BROWSER_ADD_PORTLET</a>&nbsp;
       </td>
     </tr>
   </table>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message