lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gre...@apache.org
Subject cvs commit: cocoon-lenya/src/webapp/lenya/content/admin/content content.xsp
Date Fri, 08 Aug 2003 08:43:30 GMT
gregor      2003/08/08 01:43:30

  Added:       src/webapp/lenya/xslt/admin/content content.xsl
               src/webapp/lenya/content/admin/content content.xsp
  Log:
  add delete trash to admin area
  
  Revision  Changes    Path
  1.1                  cocoon-lenya/src/webapp/lenya/xslt/admin/content/content.xsl
  
  Index: content.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <!--
   $Id: content.xsl,v 1.1 2003/08/08 08:43:29 gregor Exp $
   -->
  
   <xsl:stylesheet version="1.0"
     xmlns="http://www.w3.org/1999/xhtml"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xmlns:session="http://www.apache.org/xsp/session/2.0"
     xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0"
     >
    
    <xsl:output version="1.0" indent="yes" encoding="ISO-8859-1"/>
    
    <xsl:variable name="task-id"><xsl:value-of select="/page/info/task-id"/></xsl:variable>
    <xsl:variable name="request-uri"><xsl:value-of select="/page/info/request-uri"/></xsl:variable>
  
    <xsl:template match="/">
      <xsl:apply-templates/>
    </xsl:template>
    
    <xsl:template match="page">
      <page:page>
        <page:title>Delete Trash</page:title>
        <page:body>
          <xsl:apply-templates select="body"/>
  	    <xsl:apply-templates select="info"/>
        </page:body>
      </page:page>
    </xsl:template>
  
    <xsl:template match="info">
      <div class="lenya-box">
        <div class="lenya-box-title">Delete the Trash</div>
        <div class="lenya-box-body">
          <form method="get">
            <xsl:attribute name="action"></xsl:attribute>
            <input type="hidden" name="lenya.usecase" value="deleteTrash"/>
            <input type="hidden" name="lenya.step" value="deleteTrash"/>
            <input type="hidden" name="task-id" value="{$task-id}"/>
            <p>
   	      Do you really want to delete the trash ?
            </p>
            <input type="submit" class="lenya-form-element" value="Delete trash"/>
            <input type="button" class="lenya-form-element" onClick="location.href='{$request-uri}';"
value="Cancel"/>
          </form>
        </div>
      </div>
    </xsl:template>
    
  </xsl:stylesheet>
    
  
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/content/admin/content/content.xsp
  
  Index: content.xsp
  ===================================================================
  <?xml version="1.0" ?>
  
  <xsp:page 
    language="java" 
    xmlns:xsp="http://apache.org/xsp"
    xmlns:xsp-request="http://apache.org/xsp/request/2.0"
    xmlns:xsp-session="http://apache.org/xsp/session/2.0"
    create-session="true">
  
  <page>
  <info>
    <request-uri><xsp-request:get-uri/></request-uri>
    <task-id>deleteTrash</task-id>
  </info>
  </page>
  </xsp:page>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Mime
View raw message