portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html media-form.vm browser-media.vm client-form.vm portlet-form.vm portlet-mediatype-form.vm security-form.vm skin-form.vm
Date Fri, 02 May 2003 19:24:38 GMT
taylor      2003/05/02 12:24:38

  Modified:    webapp/WEB-INF/templates/vm/portlets/html browser-media.vm
                        client-form.vm portlet-form.vm
                        portlet-mediatype-form.vm security-form.vm
                        skin-form.vm
  Added:       webapp/WEB-INF/templates/vm/portlets/html media-form.vm
  Log:
  New Media Form
  patches from Jeremy Ford
  
  Revision  Changes    Path
  1.3       +11 -3     jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/browser-media.vm
  
  Index: browser-media.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/browser-media.vm,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- browser-media.vm	16 May 2002 12:00:08 -0000	1.2
  +++ browser-media.vm	2 May 2003 19:24:37 -0000	1.3
  @@ -5,7 +5,7 @@
       <th>Title</th>
       <th>Description</th>
       <th>Mime Type</th>
  -    <th>Actions</th>
  +    <th colspan="2">Actions</th>
     </tr>
   #foreach ( $entry in $registry )
     <tr>
  @@ -13,7 +13,8 @@
       <td>$!entry.Title</td>
       <td>$!entry.Description</td>
       <td>$entry.MimeType</td>
  -    <td>&nbsp;</td>
  +    <td align="center"><a style="font-size:10" href="$jslink.setPaneByName("MediaForm").addQueryData("mode","update").addQueryData("media_type_name",
$!entry.Name)">Edit</a>&nbsp;</td>
  +    <td align="center"><a style="font-size:10" href="$jslink.setPaneByName("MediaForm").addQueryData("mode","delete").addQueryData("media_type_name",
$!entry.Name)">Delete</a>&nbsp;</td>
     </tr>
   #end
   </table>
  @@ -21,13 +22,20 @@
     <tr>
       <td align="right" width="50%">
   #if ($prev)
  +    <input type="hidden" name="start" value="$prev"/>
         <input type="submit" value="&lt; &lt; Previous">
   #end
       </td>
       <td align="left" width="50%">
  -#if ($prev)
  +#if ($next)
  +    <input type="hidden" name="start" value="$next"/>
         <input type="submit" value="Next &gt; &gt;">
   #end
  +    </td>
  +  </tr>
  +  <tr>
  +    <td colspan=6 align="left">
  +        <a style="font-size:10" href="$jslink.setPaneByName("MediaForm").addQueryData("mode","insert")">Add
Media</a>&nbsp;
       </td>
     </tr>
   </table>
  
  
  
  1.2       +20 -136   jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/client-form.vm
  
  Index: client-form.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/client-form.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- client-form.vm	15 Apr 2003 20:43:02 -0000	1.1
  +++ client-form.vm	2 May 2003 19:24:37 -0000	1.2
  @@ -12,6 +12,19 @@
           </td>
         </tr>
         #end
  +      #if($reason)
  +      <tr>
  +        <td colspan="2">
  +          <table bgcolor="#ffffff">
  +            <tr>
  +              <td>
  +                $reason
  +              </td>
  +            </tr>
  +          </table>
  +        </td>
  +      </tr>
  +      #end
   </table>
   
         #if (($mode == "delete"))
  @@ -183,7 +196,7 @@
         	<table>
         	  #foreach($mimeType in $entry.MimetypeMap.Mimetypes)
         	  	<tr>
  -      	  		<td><input type="checkbox" name="mimetype" value="$!mimeType"/></td>
  +                    <td><input type="checkbox" name="mime_type" value="$!mimeType"/></td>
         	  		<td>$mimeType</td>
         	  	</tr>
         	  #end
  @@ -195,96 +208,8 @@
         	</table>
         </form>
         #end
  -      #parse("include/mimes.vm")
  -      #parse("include/capability.vm")
  -      <script>
  -      	var mimeTypes = new Object;
  -      	var capabilities = new Array;
  -      	var populated = false;
  -      	
  -      	function populate()
  -      	{
  -      		#foreach($type in $types)
  -      			var $type.get(0)Var = new Array;
  -      			#foreach($subType in $type.get(1))
  -      				#set($varCount = $velocityCount - 1)
  -      				var option$varCount = new Option;
  -      				option${varCount}.value = "$subType";
  -      				option${varCount}.text = "$subType";
  -      				$type.get(0)Var[$varCount] = option${varCount};
  -      			#end
  -      			mimeTypes["$type.get(0)"] = $type.get(0)Var;
  -      		#end
  -      		
  -      		#set($capCount = 0)
  -      		
  -      		#foreach($capability in $capabilities)
  -      			
  -      			#if(!$entry.CapabilityMap.contains($capability))
  -				var option$capCount = new Option;
  -				option${capCount}.text = "$capability";
  -				option${capCount}.value = "$capability";
  -				capabilities[$capCount] = option$capCount;
  -				#set($capCount = $capCount + 1)
  -      			#end
  -      		#end
  -      		
  -      		populated = true;
  -      	}
  -      	
  -      	function changeMimeList()
  -      	{
  -      		if(!populated)
  -      		{
  -      			//alert("populating");
  -      			populate();
  -      		}
  -      		
  -      		var type = document.AddMimeType.type.options[document.AddMimeType.type.selectedIndex].value;
  -      		var optionsList = mimeTypes[type];
  -      		
  -      		var subTypeElement = document.AddMimeType.subtype;
  -      		for(var i=0; i<optionsList.length; i++)
  -      		{
  -      			subTypeElement.options[i] = optionsList[i];
  -      		}
  -      		
  -      		for(var j=optionsList.length; j<subTypeElement.options.length; j++)
  -      		{
  -      			subTypeElement.options[j] = null;
  -      		}
  -      	}
  -      	
  -      	function changeCapList()
  -      	{
  -      		if(!populated)
  -      		{
  -      			//alert("populating");
  -      			populate();
  -      		}
  -      		
  -      		var capElement = document.AddCapability.capability;
  -      		for(var i=0; i<capabilities.length; i++)
  -      		{
  -      			capElement.options[i] = capabilities[i];
  -      		}
  -      		
  -      		for(var j=capabilities.length; j<capElement.options.length; j++)
  -      		{
  -      			capElement.options[j] = null;
  -      		}
  -      	}
  -      	
  -      	function updateMimeType()
  -      	{
  -      		var type = document.AddMimeType.type.options[document.AddMimeType.type.selectedIndex].value;
  -      		var subtype = document.AddMimeType.subtype.options[document.AddMimeType.subtype.selectedIndex].value;
  -      		
  -      		document.AddMimeType.mimetype.value = type + "/" + subtype;
  -      	}
  -      	
  -      	
  -      </script>
  +      #parse("include/mime-combo.vm")
  +      #parse("include/capability-combo.vm")
         
         <p>Please Note: The first mime type added will be the preferred mime type</p>
         <form name="AddMimeType" method="post" action="$jslink.getPaneByName("ClientForm").setAction("portlets.ClientUpdateAction")">
  @@ -292,11 +217,11 @@
         	<input type="hidden" name="mode" value="update"/>
         	<table>
         	  <tr>
  -      	  	<td colspan="2"><input size="50" type="text" name="mimetype" value="$!data.user.getTemp("mimetype")"/></td>
  +                <td colspan="2"><input size="50" type="text" name="mime_type"
value="$!data.user.getTemp("mime_type")"/></td>
         	  </tr>
         	  <tr>
         	  	<td>
  -      	  	<select name="type" onChange="changeMimeList(); updateMimeType(); return true;">
  +                <select name="type" onChange="changeMimeList(document.AddMimeType);
updateMimeType(document.AddMimeType); return true;">
         	  		<option value="text">text</option>
         	  		<option value="multipart">multipart</option>
         	  		<option value="message">message</option>
  @@ -308,7 +233,7 @@
         	  	</select>
         	  	</td>
         	  	<td>
  -      	  	<select name="subtype" onChange="updateMimeType(); return true;"><script>document.AddMimeType.type.selectedIndex=0;
changeMimeList(); updateMimeType();</script></select>
  +                <select name="subtype" onChange="updateMimeType(document.AddMimeType);
return true;"><script>document.AddMimeType.type.selectedIndex=0; changeMimeList(document.AddMimeType);
updateMimeType(document.AddMimeType);</script></select>
         	  	</td>
         	  </tr>
         	  <tr>
  @@ -343,51 +268,10 @@
         	<input type="hidden" name="mode" value="update"/>
         	<table>
         	  <tr>
  -      	  	##<td><input type="text" name="capability" value="$!data.user.getTemp("capability")"/></td>
         	  	<td>
         	  		<select multiple="true" name="capability">
         	  		<option value=""></option>
  -      	  		<script>changeCapList(); </script>
  -      	  		#*
  -      	  		<option value="HTML_3_2">HTML_3_2</option>
  -			<option value="HTML_4_0">HTML_4_0</option>
  -			<option value="HTML_TABLE">HTML_TABLE</option>
  -			<option value="HTML_NESTED_TABLE">HTML_NESTED_TABLE</option>
  -			<option value="HTML_FORM">HTML_FORM</option>
  -			<option value="HTML_FRAME">HTML_FRAME</option>
  -			<option value="HTML_IMAGE">HTML_IMAGE</option>
  -			<option value="HTML_JAVA">HTML_JAVA</option>
  -			<option value="HTML_JAVA_1_0">HTML_JAVA_1_0</option>
  -			<option value="HTML_JAVA_1_1">HTML_JAVA_1_1</option>
  -			<option value="HTML_JAVA_JRE">HTML_JAVA_JRE</option>
  -			<option value="HTML_JAVASCRIPT">HTML_JAVASCRIPT</option>
  -			<option value="HTML_JAVASCRIPT_1_0">HTML_JAVASCRIPT_1_0</option>
  -			<option value="HTML_JAVASCRIPT_1_1">HTML_JAVASCRIPT_1_1</option>
  -			<option value="HTML_JAVASCRIPT_1_2">HTML_JAVASCRIPT_1_2</option>
  -			<option value="HTML_ACTIVE_X">HTML_ACTIVE_X</option>
  -			<option value="HTML_PLUGIN">HTML_PLUGIN</option>
  -			<option value="HTML_CSS1">HTML_CSS1</option>
  -			<option value="HTML_CSS2">HTML_CSS2</option>
  -			<option value="HTML_CSSP">HTML_CSSP</option>
  -			<option value="HTML_IFRAME">HTML_IFRAME</option>
  -			<option value="HTML_LAYER">HTML_LAYER</option>
  -			<option value="">-------------</option>
  -			<option value="HTML_DOM_IE">HTML_DOM_IE</option>
  -			<option value="HTML_DOM_NS4">HTML_DOM_NS4</option>
  -			<option value="HTML_DOM_1">HTML_DOM_1</option>
  -			<option value="HTML_DOM_2">HTML_DOM_2</option>
  -			<option value="">-------------</option>
  -			<option value="WML_1_0">WML_1_0</option>
  -			<option value="WML_1_1">WML_1_1</option>
  -			<option value="WML_TABLE">WML_TABLE</option>
  -			<option value="">-------------</option>
  -			<option value="XML_XSLT">XML_XSLT</option>
  -			<option value="XML_XPATH">XML_XPATH</option>
  -			<option value="XML_XINCLUDE">XML_XINCLUDE</option>
  -			<option value="">-------------</option>
  -			<option value="HTTP_1_1">HTTP_1_1</option>
  -			<option value="HTTP_COOKIE">HTTP_COOKIE</option>
  -			*#
  +                    <script>changeCapList(document.AddCapability); </script>
         	  		</select>
         	  	</td>
         	  </tr>
  
  
  
  1.3       +13 -0     jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/portlet-form.vm
  
  Index: portlet-form.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/portlet-form.vm,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- portlet-form.vm	22 Apr 2003 15:07:43 -0000	1.2
  +++ portlet-form.vm	2 May 2003 19:24:37 -0000	1.3
  @@ -12,6 +12,19 @@
           </td>
         </tr>
         #end
  +      #if($reason)
  +      <tr>
  +        <td colspan="2">
  +          <table bgcolor="#ffffff">
  +            <tr>
  +              <td>
  +                $reason
  +              </td>
  +            </tr>
  +          </table>
  +        </td>
  +      </tr>
  +      #end
   </table>
   
         #if (($mode == "delete"))
  
  
  
  1.2       +5 -3      jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/portlet-mediatype-form.vm
  
  Index: portlet-mediatype-form.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/portlet-mediatype-form.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- portlet-mediatype-form.vm	4 Mar 2003 17:39:42 -0000	1.1
  +++ portlet-mediatype-form.vm	2 May 2003 19:24:37 -0000	1.2
  @@ -45,9 +45,11 @@
                         <b><font face="$ui.sansSerifFonts">Media Type</font></b>
                     </td>
                     <td bgcolor="$!{skin.TitleBackgroundColor}">
  -                      <b><font face="$ui.sansSerifFonts">
  -                          <input type="text" name="media_type"/>
  -                      </font></b>
  +                      <select name="media_type">
  +                      #foreach($mediaType in $media_types)
  +                          <option value="$mediaType">$mediaType</option>
  +                      #end
  +                      </select>
                     </td>
                 </tr>
                 <tr>
  
  
  
  1.2       +31 -27    jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/security-form.vm
  
  Index: security-form.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/security-form.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- security-form.vm	15 Apr 2003 19:58:48 -0000	1.1
  +++ security-form.vm	2 May 2003 19:24:37 -0000	1.2
  @@ -12,6 +12,19 @@
           </td>
         </tr>
         #end
  +      #if($reason)
  +      <tr>
  +        <td colspan="2">
  +          <table bgcolor="#ffffff">
  +            <tr>
  +              <td>
  +                $reason
  +              </td>
  +            </tr>
  +          </table>
  +        </td>
  +      </tr>
  +      #end
   </table>
   
         #if ($mode == "delete")
  @@ -57,17 +70,16 @@
               </font>
             </td>
           </tr>
  -        <!--Consider making text area-->
           <tr>
  -	  <td bgcolor="$!{skin.TitleBackgroundColor}">
  -	    <b><font face="$ui.sansSerifFonts">Description</font></b>
  -	  </td>
  -	  <td bgcolor="$!{skin.TitleBackgroundColor}">
  -	    <font face="$ui.sansSerifFonts">
  -	      <textarea rows="10" cols="50" size="50" name="description">$!data.user.getTemp("description")</textarea>
  -	    </font>
  -	  </td>
  -	</tr>
  +          <td bgcolor="$!{skin.TitleBackgroundColor}">
  +            <b><font face="$ui.sansSerifFonts">Description</font></b>
  +          </td>
  +          <td bgcolor="$!{skin.TitleBackgroundColor}">
  +            <font face="$ui.sansSerifFonts">
  +              <textarea rows="10" cols="50" size="50" name="description">$!data.user.getTemp("description")</textarea>
  +            </font>
  +          </td>
  +        </tr>
         </table>
         <table border="0"  cellspacing="0" cellpadding="5" width="30%">
         <tr>
  @@ -95,17 +107,16 @@
   	            </font>
   	          </td>
   	        </tr>
  -	        <!--Consider making text area-->
   	        <tr>
  -		  <td bgcolor="$!{skin.TitleBackgroundColor}">
  -		    <b><font face="$ui.sansSerifFonts">Description</font></b>
  -		  </td>
  -		  <td bgcolor="$!{skin.TitleBackgroundColor}">
  -		    <font face="$ui.sansSerifFonts">
  -		      <textarea rows="10" cols="50" size="50" name="description">$!entry.description</textarea>
  -		    </font>
  -		  </td>
  -		</tr>
  +              <td bgcolor="$!{skin.TitleBackgroundColor}">
  +                <b><font face="$ui.sansSerifFonts">Description</font></b>
  +              </td>
  +              <td bgcolor="$!{skin.TitleBackgroundColor}">
  +                <font face="$ui.sansSerifFonts">
  +                  <textarea rows="10" cols="50" size="50" name="description">$!entry.description</textarea>
  +                </font>
  +              </td>
  +            </tr>
   	      </table>
   	      <table border="0"  cellspacing="0" cellpadding="5" width="30%">
   	      <tr>
  @@ -252,15 +263,8 @@
   	      	</tr>
   	      	<tr>
   	      	  <td>Value</td>
  -	      	  ##<td><input type="text" name="allow_value" value="$!data.parameters.getString("allow_value")"/></td>
  -	      	  
   	      	  <td>
   	      	  	<select name="allow_value">
  -	      	  	#*
  -	      	  	#foreach($user in $users)
  -	      	  		<option value="$user.name">$user.userName</option>
  -	      	  	#end
  -	      	  	*#
   	      	  	</select>
   	      	  </td>
   	      	</tr>
  
  
  
  1.3       +13 -0     jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/skin-form.vm
  
  Index: skin-form.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/skin-form.vm,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- skin-form.vm	25 Apr 2003 20:51:43 -0000	1.2
  +++ skin-form.vm	2 May 2003 19:24:37 -0000	1.3
  @@ -14,6 +14,19 @@
           </td>
         </tr>
         #end
  +      #if($reason)
  +      <tr>
  +        <td colspan="2">
  +          <table bgcolor="#ffffff">
  +            <tr>
  +              <td>
  +                $reason
  +              </td>
  +            </tr>
  +          </table>
  +        </td>
  +      </tr>
  +      #end
   
         #if (($mode == "delete"))
         	<tr>
  
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/portlets/html/media-form.vm
  
  Index: media-form.vm
  ===================================================================
  <table bgcolor="#ffffff" cellpadding="5">
        #if ($msg)
        <tr>
          <td colspan="2">
            <table bgcolor="#ffffff">
              <tr>
                <td>
                  $msg
                </td>
              </tr>
            </table>
          </td>
        </tr>
        #end
        #if($reason)
        <tr>
          <td colspan="2">
            <table bgcolor="#ffffff">
              <tr>
                <td>
                  $reason
                </td>
              </tr>
            </table>
          </td>
        </tr>
        #end
  </table>
  
        #if (($mode == "delete"))
            <form name="MediaForm" method="post" action="$jslink.getPaneByName("MediaBrowser").setAction("portlets.MediaUpdateAction")">
        <table>
            <tr>
                <td colspan="2">Are you sure you want do delete this media entry?</td>
            </tr>
          <tr>
              #formReadOnlyCell ("Name" "media_type_name" $!entry.Name)
          </tr>
        </table>
        <table border="0"  cellspacing="0" cellpadding="5" width="30%">
        <tr>
          <td>
            <input type="submit" name="eventSubmit_doDelete" value="Delete Media"/>
          </td>
        </tr>
        </table>
        </form>
        #elseif ($mode == "insert")
        #parse("include/mime-combo.vm")
        
        <form name="MediaForm" method="post" action="$jslink.getPaneByName("MediaForm").setAction("portlets.MediaUpdateAction")">
            <input type="hidden" name="mode" value="update"/>
      <table>
          <input type="hidden" name="mode" value="update"/>
          <tr>
            <td bgcolor="$!{skin.TitleBackgroundColor}">
              <b><font face="$ui.sansSerifFonts">Name</font></b>
            </td>
            <td bgcolor="$!{skin.TitleBackgroundColor}">
              <font face="$ui.sansSerifFonts">
                <input type="text" size="30" name="media_type_name" value="$!data.user.getTemp("media_type_name")"/>
              </font>
            </td>
          </tr>
          <tr>
            <td bgcolor="$!{skin.TitleBackgroundColor}">
              <b><font face="$ui.sansSerifFonts">CharSet</font></b>
            </td>
            <td bgcolor="$!{skin.TitleBackgroundColor}">
              <font face="$ui.sansSerifFonts">
                <input type="text" size="30" name="charset" value="$!data.user.getTemp("charset")"/>
              </font>
            </td>
          </tr>
          <tr>
            <td bgcolor="$!{skin.TitleBackgroundColor}">
              <b><font face="$ui.sansSerifFonts">Title</font></b>
            </td>
            <td bgcolor="$!{skin.TitleBackgroundColor}">
              <font face="$ui.sansSerifFonts">
                <input type="text" size="30" name="title" value="$!data.user.getTemp("title")"/>
              </font>
            </td>
          </tr>
          <tr>
            <td bgcolor="$!{skin.TitleBackgroundColor}">
              <b><font face="$ui.sansSerifFonts">Mime Type</font></b>
            </td>
            <td bgcolor="$!{skin.TitleBackgroundColor}">
              <font face="$ui.sansSerifFonts">
                  <input type="text" name="mime_type" value="$!data.user.getTemp("mime_type")"/>
             
              </font>
            </td>
           </tr>
           <tr>
                <td bgcolor="$!{skin.TitleBackgroundColor}">
                      <select name="type" onChange="changeMimeList(document.MediaForm);
updateMimeType(document.MediaForm); return true;">
                          <option value="text">text</option>
                          <option value="multipart">multipart</option>
                          <option value="message">message</option>
                          <option value="application">application</option>
                          <option value="image">image</option>
                          <option value="audio">audio</option>
                          <option value="video">video</option>
                          <option value="model">model</option>
                      </select>
                </td>
               <td bgcolor="$!{skin.TitleBackgroundColor}">
                      <select name="subtype" onChange="updateMimeType(document.MediaForm);
return true;"><script>document.MediaForm.type.selectedIndex=0; changeMimeList(document.MediaForm);
updateMimeType(document.MediaForm);</script></select>
                 </td>
           </tr>
          </table>
      <table border="0"  cellspacing="0" cellpadding="5" width="30%">
        <tr>
          <td>
            <input type="submit" name="eventSubmit_doInsert" value="Insert Media"/>
          </td>
              ##<td>
              ##  <input type="submit" name="eventSubmit_doCancel" value="Cancel"/>
              ##</td>
        </tr>
      </table>
        </form>
        #elseif ($mode == "update")
        
        #parse("include/capability-combo.vm")
        #parse("include/mime-combo.vm")
        
        <form name="MediaForm" method="post" action="$jslink.getPaneByName("MediaForm").setAction("portlets.MediaUpdateAction")">
      <table>
          <input type="hidden" name="mode" value="update"/>
          #formReadOnlyCell("Name" "media_type_name" $!entry.name)
          <tr>
            <td bgcolor="$!{skin.TitleBackgroundColor}">
              <b><font face="$ui.sansSerifFonts">CharSet</font></b>
            </td>
            <td bgcolor="$!{skin.TitleBackgroundColor}">
              <font face="$ui.sansSerifFonts">
                <input type="text" size="30" name="charset" value="$!entry.characterSet"/>
              </font>
            </td>
          </tr>
          <tr>
            <td bgcolor="$!{skin.TitleBackgroundColor}">
              <b><font face="$ui.sansSerifFonts">Title</font></b>
            </td>
            <td bgcolor="$!{skin.TitleBackgroundColor}">
              <font face="$ui.sansSerifFonts">
                <input type="text" size="30" name="title" value="$!entry.title"/>
              </font>
            </td>
          </tr>
          <tr>
            <td bgcolor="$!{skin.TitleBackgroundColor}">
              <b><font face="$ui.sansSerifFonts">Mime Type</font></b>
            </td>
            <td bgcolor="$!{skin.TitleBackgroundColor}">
              <font face="$ui.sansSerifFonts">
                  <input type="text" name="mime_type" value="$!entry.mimeType"/>   
          
              </font>
            </td>
          </tr>
          <tr>
               <td bgcolor="$!{skin.TitleBackgroundColor}">
                      <select name="type" onChange="changeMimeList(document.MediaForm);
updateMimeType(document.MediaForm); return true;">
                          <option value="text">text</option>
                          <option value="multipart">multipart</option>
                          <option value="message">message</option>
                          <option value="application">application</option>
                          <option value="image">image</option>
                          <option value="audio">audio</option>
                          <option value="video">video</option>
                          <option value="model">model</option>
                      </select>
               </td>
               <td bgcolor="$!{skin.TitleBackgroundColor}">
                      <select name="subtype" onChange="updateMimeType(document.MediaForm);
return true;"><script>document.MediaForm.type.selectedIndex=0; changeMimeList(document.MediaForm);</script></select>
               </td>
             </tr>
      </table>
      <table border="0"  cellspacing="0" cellpadding="5" width="30%">
        <tr>
          <td>
            <input type="submit" name="eventSubmit_doUpdate" value="Update Media"/>
          </td>
        </tr>
      </table>
        </form>
        
        <hr />
        #if($entry.CapabilityMap.Capabilities.hasNext())
        <form name="RemoveCapability method="post" action="$jslink.getPaneByName("MediaForm").setAction("portlets.MediaUpdateAction")">
            <input type="hidden" name="media_type_name" value="$!entry.name"/>
            <input type="hidden" name="mode" value="update"/>
            <table>
              #foreach($capability in $entry.CapabilityMap.Capabilities)
                  <tr>
                      <td><input type="checkbox" name="capability" value="$!capability"/></td>
                      <td>$!capability</td>
                  </tr>
              #end
              <tr>
                  <td>
                      <td colspan="2" align="center"><input type="submit" name="eventSubmit_doRemovecapability"
value="Remove Capabilities"/></td>
                  </td>
              </tr>
            </table>
        </form>
        #end
        <form name="AddCapability" method="post" action="$jslink.getPaneByName("MediaForm").setAction("portlets.MediaUpdateAction")">
            <input type="hidden" name="media_type_name" value="$!entry.name"/>
            <input type="hidden" name="mode" value="update"/>
            <table>
              <tr>
                  ##<td><input type="text" name="capability" value="$!data.user.getTemp("capability")"/></td>
                  <td>
                      <select multiple="true" name="capability">
                      <option value=""></option>
                      <script>changeCapList(document.AddCapability); </script>
                      </select>
                  </td>
              </tr>
              <tr>
                  <td>
                      <input type="submit" name="eventSubmit_doAddcapability" value="Add
Capability"/>
                  </td>
              </tr>
            </table>
        </form>    
        #end
  <table>
    <tr>
      <td>
        <form name="CancelMediaForm" method="post" action="$jslink.getPaneByName("MediaBrowser").setAction("portlets.MediaUpdateAction")">
          <input type="submit" name="eventSubmit_doCancel" value="Back to Browser"/>
        </form>
      </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