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-2/portals-bridges/library/velocity/templates preferences-form.vm
Date Thu, 04 Nov 2004 19:49:44 GMT
taylor      2004/11/04 11:49:44

  Modified:    portals-bridges/library/velocity/macros frameworks-macros.vm
               portals-bridges/library/velocity/templates
                        preferences-form.vm
  Log:
  *** keyword substitution change ***
  
  Revision  Changes    Path
  1.2       +38 -32    jakarta-jetspeed-2/portals-bridges/library/velocity/macros/frameworks-macros.vm
  
  Index: frameworks-macros.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portals-bridges/library/velocity/macros/frameworks-macros.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- frameworks-macros.vm	4 Nov 2004 18:11:46 -0000	1.1
  +++ frameworks-macros.vm	4 Nov 2004 19:49:44 -0000	1.2
  @@ -1,32 +1,38 @@
  -#macro (headerCell $body)
  -  <td>
  -    <b>     
  -        $body
  -    </b>
  -  </td>
  -#end
  -
  -#macro (entryCell $body)
  -  <td>    
  -      $body &nbsp;    
  -  </td>
  -#end
  -
  -#macro (form4ColumnCell $label $value $size $id)
  -  <tr colspan="4" align="right">
  -    <td width="5%" class="portlet-form-label" align="left">&nbsp;</td>
  -    <td nowrap class="portlet-form-field-label" align="right">$!label:&nbsp;</td>
  -    <td class="portlet-form-input-field" align="left">
  -      <input id="$!id" type="text" name="$!id" size="$!size" value="$!value">
  -    </td>
  -    <td width="5%" class="portlet-form-label" align="left">&nbsp;</td>
  -  </tr>
  -#end
  -
  -#macro (Preference $prefs $name)
  -#set ($pall = $prefs.get($name))
  -#foreach ($x in $pall)
  -#set ($extraction = $x)
  -#end
  -$extraction
  -#end
  \ No newline at end of file
  +#macro (headerCell $body)
  +  <td>
  +    <b>     
  +        $body
  +    </b>
  +  </td>
  +#end
  +
  +#macro (entryCell $body)
  +  <td>    
  +      $body &nbsp;    
  +  </td>
  +#end
  +
  +#macro (form4ColumnCell $label $value $size $id)
  +  <tr colspan="4" align="right">
  +    <td width="5%" class="portlet-form-label" align="left">&nbsp;</td>
  +    <td nowrap class="portlet-form-field-label" align="right">$!label:&nbsp;</td>
  +    <td class="portlet-form-input-field" align="left">
  +      <input id="$!id" type="text" name="$!id" size="$!size" value="$!value">
  +    </td>
  +    <td width="5%" class="portlet-form-label" align="left">&nbsp;</td>
  +  </tr>
  +#end
  +
  +#macro (Preference $prefs $name)
  +#set ($pall = $prefs.get($name))
  +#foreach ($x in $pall)
  +#set ($extraction = $x)
  +#end
  +$extraction
  +#end
  +
  +#macro (ViewLink $view)
  +#set($vl_result = $renderResponse.createRenderURL())
  +$vl_result.setParameter("velocity.view", $view)
  +$vl_result
  +#end
  
  
  
  1.2       +10 -10    jakarta-jetspeed-2/portals-bridges/library/velocity/templates/preferences-form.vm
  
  Index: preferences-form.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portals-bridges/library/velocity/templates/preferences-form.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- preferences-form.vm	4 Nov 2004 18:11:46 -0000	1.1
  +++ preferences-form.vm	4 Nov 2004 19:49:44 -0000	1.2
  @@ -1,10 +1,10 @@
  -
  -<form action="$renderResponse.createActionURL()" method="post">
  -<table>
  -#foreach ($pref in $prefs.iterator())
  -#form4ColumnCell($MESSAGES.getString('$pref.Name'-displayname) "$pref.Value" "40" "$pref.Name")
  -</table>
  -#end
  -<input type="submit" name="Save" value="$MESSAGES.getString("save")" />
  -</form>
  -
  +
  +<form action="$renderResponse.createActionURL()" method="post">
  +<table>
  +#foreach ($pref in $prefs.iterator())
  +#form4ColumnCell($MESSAGES.getString('$pref.Name'-displayname) "$pref.Value" "40" "$pref.Name")
  +</table>
  +#end
  +<input type="submit" name="Save" value="$MESSAGES.getString("save")" />
  +</form>
  +
  
  
  

---------------------------------------------------------------------
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