portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raph...@apache.org
Subject cvs commit: jakarta-jetspeed/webapp/WEB-INF/templates/vm/controllers/html flow-customize.vm
Date Sat, 04 May 2002 15:17:13 GMT
raphael     02/05/04 08:17:13

  Added:       webapp/WEB-INF/templates/vm/controllers flow.vm
               webapp/WEB-INF/templates/vm/controllers/html
                        flow-customize.vm
  Log:
  add FlowPortletController template implementation and remove legacy ECS
  controller
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/controllers/flow.vm
  
  Index: flow.vm
  ===================================================================
  ##<!-- Begin flow.vm -->
  #foreach ( $portlet in $portlets )
  $!portlet.getContent($data)
  #end
  ##<!-- End flow.vm -->
  
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/templates/vm/controllers/html/flow-customize.vm
  
  Index: flow-customize.vm
  ===================================================================
  <br>
  <center>
  <table width="80%" cellspacing="1" cellpadding="0" border="0">
    <tr>
      <th width="5%" #if (${skin.TitleBackgroundColor}) bgcolor="${skin.TitleBackgroundColor}"
#end align="left">
        #if ($skin.TitleColor) <font color="$skin.TitleColor"> #end
        &nbsp;
        #if ($skin.TitleColor) </font> #end
      </th>
      <th #if (${skin.TitleBackgroundColor}) bgcolor="${skin.TitleBackgroundColor}" #end
align="left">
        #if ($skin.TitleColor) <font color="$skin.TitleColor"> #end
        $l10n.CUSTOMIZER_NAME
        #if ($skin.TitleColor) </font> #end
      </th>
      <th width="10%" #if (${skin.TitleBackgroundColor}) bgcolor="${skin.TitleBackgroundColor}"
#end align="center">
        #if ($skin.TitleColor) <font color="$skin.TitleColor"> #end
        $l10n.CUSTOMIZER_ACTION
        #if ($skin.TitleColor) </font> #end
      </th>
    </tr>
    #set ($portletcount = 0)
    #set ($COUNTI="0")
    #foreach ($entry in $portlets)
      #set ($COUNTI="1")
      #set ($position = $velocityCount - 1)
      <tr>
        <td align="center" valign="top">
        ##
        #set ($title="*")
        #if ($entry.Parent)
          #set ($title = $titles.get($entry.Parent) )
        #else
          #set ($title = $entry.MetaInfo.Title)
        #end
        ##
        #if ($title=="*")
          #if ($entry.Parent) 
            #set ($title=$entry.Parent)
          #else
            #set ($title=$entry.Name)
          #end
        #end
        ## Insert a image for portlets and panes!
        #set ($FF=false)
        #foreach ($entr in $runs)
          #if ($entr.parent == $entry.Parent)
            #set ($FF=true)
            <img src="images/html/is_portlet.gif" width=14" height="14" border="0" alt="$l10n.CUSTOMIZER_PORTLET"
hspace="2">
          </td>
          #end
        #end
  
        ## Portlet is not used - use the pane image!
        #if (!$FF)
          #set ($portletcount = $portletcount + 1)
            <a href="$link.setAction("controls.Customize").addQueryData("js_peid",$entry.Id)">
              <img src="images/is_pane.gif" alt="$l10n.CUSTOMIZER_CUSTOMIZABLEPANE" width=14"
height="14" border="0" hspace="2">
            </a>
          </td>
        #end
  
        <td valign="top">
        #if (!$FF)
          <a href="$jslink.setAction("controls.Customize").addQueryData("js_peid",$entry.Id)">
            <b>$title</b>
          </a>
        #else
          <b>$title</b>  
        #end    
        </td>
        <td valign="top" align="center" >
          <form action="$jslink.Template" method="post">
            #if ($!action) <input type="hidden" name="$jslink.ActionKey" value="$action">
#end
            <input type="hidden" name="position" value="$position">
            <input type="image" border="0" alt="$l10n.CUSTOMIZER_DELETE" src="images/close.gif"
name="eventSubmit_doDelete">
            #if ($velocityCount < $portlets.size())
            <input type="image" border="0" alt="$l10n.CUSTOMIZER_MOVEDOWN" src="images/down.gif"
name="eventSubmit_doUp">
            #else
            <img src="images/dot.gif" width=14" height="14" border="0">
            #end
            #if ($position > 0)
            <input type="image" border="0" alt="$l10n.CUSTOMIZER_MOVEUP" src="images/up.gif"
name="eventSubmit_doDown">
            #else
            <img src="images/dot.gif" width=14" height="14" border="0">
            #end
          </form>
        </td>
      </tr>
  #end
  #if ($!COUNTI=="0")
      <tr>
        <td align="center" colspan="3">
          <b>$l10n.CUSTOMIZER_NOTHINGDEFINED</b>
        </td>
      </tr>
  #end
    </table>
    <table cellspacing="2">
      <tr>
        <td>
          <form action="$jslink.Template" method="post">
            #if ($!action) <input type="hidden" name="$jslink.ActionKey" value="$action"
> #end
            <table cellspacing="2">
              <tr>
                <td>
                  <input type="submit" name="eventSubmit_doApply" value="$l10n.CUSTOMIZER_APPLY">
                </td>
                <td>
                  <input type="submit" name="eventSubmit_doCancel" value="$l10n.CUSTOMIZER_CANCEL">
                </td>
              </tr>
            </table>
          </form>
        </td>
      </tr>
    </table>
  </center>
  
  
  

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


Mime
View raw message