taylor 2002/07/03 14:05:26
Modified: webapp/WEB-INF/templates/vm/portlets/html psml-form.vm
Added: webapp/WEB-INF/templates/vm/portlets/html
browser-psml-customize.vm
Log:
added drop down for media type in the psml-form
Added customize template to change the page size.
Revision Changes Path
1.3 +27 -14
jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/psml-form.vm
Index: psml-form.vm
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/psml-form.vm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- psml-form.vm 3 Jul 2002 02:12:30 -0000 1.2
+++ psml-form.vm 3 Jul 2002 21:05:26 -0000 1.3
@@ -30,7 +30,7 @@
#formReadOnlyCell ("Name" "Name" $profile.Name)
</tr>
#else
-
+
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<b><font face="$ui.sansSerifFonts">Name</font></b>
@@ -41,18 +41,31 @@
</font>
</td>
</tr>
-
+
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<b><font face="$ui.sansSerifFonts">Media Type</font></b>
</td>
- <td bgcolor="$!{skin.TitleBackgroundColor}">
- <font face="$ui.sansSerifFonts">
- <input type="text" size="30" name="MediaType"
value=$!profile.MediaType>
- </font>
- </td>
+ <td bgcolor="$!{skin.TitleBackgroundColor}">
+ <select name="MediaType">
+ #set ($flag = 0)
+ #foreach ($type in $mediaTypes)
+ #if ($type == $profile.MediaType)
+ <option value="$type" selected>$type</option>
+ #set ($flag = 1)
+ #else
+ <option value="$type" >$type</option>
+ #end
+ #end
+ #if ($flag == 1)
+ <option value="" > </option>
+ #else
+ <option value="" selected> </option>
+ #end
+ </select>
+ </td>
</tr>
-
+
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<b><font face="$ui.sansSerifFonts">Language</font></b>
@@ -63,7 +76,7 @@
</font>
</td>
</tr>
-
+
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<b><font face="$ui.sansSerifFonts">Country</font></b>
@@ -74,7 +87,7 @@
</font>
</td>
</tr>
-
+
<tr>
<td bgcolor="$!{skin.TitleBackgroundColor}">
<b><font face="$ui.sansSerifFonts">Category Name:</font></b>
@@ -86,13 +99,13 @@
#else
<option value="group">group</option>
#end
-
+
#if ($categoryName == "role")
<option value="role" selected>role</option>
#else
<option value="role">role</option>
#end
-
+
#if ($categoryName == "user")
<option value="user" selected>user</option>
#else
@@ -108,7 +121,7 @@
#formCell ("Copy From" "CopyFrom" $copyFrom)
</tr>
#end
-
+
</table>
<table border="0" cellpadding="5" width="100%">
<tr>
1.1
jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/browser-psml-customize.vm
Index: browser-psml-customize.vm
===================================================================
#**
@author <a href="mailto:[EMAIL PROTECTED]">David Sean Taylor</a>
@version $Id: browser-psml-customize.vm,v 1.1 2002/07/03 21:05:26 taylor Exp $
*#
<form action="$jslink" method="post">
<p>Please enter the new window size for the Psml Browser:
<input name="page-size" value="$page-size" size="2" />
<br/>
<input type="submit" name="eventSubmit_doUpdate" value="Update" />
<input type="hidden" name="js_peid" value="$portlet.ID">
<br/>
</p>
</form>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>