You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2004/12/25 13:39:28 UTC

svn commit: r123335 - lenya/trunk/src/webapp/lenya/usecases/site

Author: gregor
Date: Sat Dec 25 04:39:28 2004
New Revision: 123335

URL: http://svn.apache.org/viewcvs?view=rev&rev=123335
Log:
Added first draft of JX templates for site usecases
Added:
   lenya/trunk/src/webapp/lenya/usecases/site/archive.jx
   lenya/trunk/src/webapp/lenya/usecases/site/assets.jx
   lenya/trunk/src/webapp/lenya/usecases/site/copy.jx
   lenya/trunk/src/webapp/lenya/usecases/site/cut.jx
   lenya/trunk/src/webapp/lenya/usecases/site/deactivate.jx
   lenya/trunk/src/webapp/lenya/usecases/site/delete.jx
   lenya/trunk/src/webapp/lenya/usecases/site/meta.jx
   lenya/trunk/src/webapp/lenya/usecases/site/overview.jx
   lenya/trunk/src/webapp/lenya/usecases/site/paste.jx
   lenya/trunk/src/webapp/lenya/usecases/site/rename-label.jx
   lenya/trunk/src/webapp/lenya/usecases/site/rename.jx
   lenya/trunk/src/webapp/lenya/usecases/site/restore.jx
   lenya/trunk/src/webapp/lenya/usecases/site/scheduler.jx
   lenya/trunk/src/webapp/lenya/usecases/site/workflow.jx

Added: lenya/trunk/src/webapp/lenya/usecases/site/archive.jx
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/site/archive.jx?view=auto&rev=123335
==============================================================================
--- (empty file)
+++ lenya/trunk/src/webapp/lenya/usecases/site/archive.jx	Sat Dec 25 04:39:28 2004
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- $Id: meta.xsp 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<page:page xmlns:jx="http://apache.org/cocoon/templates/jx/1.0" 
+           xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0" 
+           xmlns="http://www.w3.org/1999/xhtml" 
+           xmlns:i18n="http://apache.org/cocoon/i18n/2.1" >
+           
+  <page:title><i18n:text>Archive Document</i18n:text></page:title>
+  <page:body>
+    <div class="lenya-box">
+      <div class="lenya-box-title">
+        <i18n:translate>
+          <i18n:text key="archive-doc"/>
+          <i18n:param><q><jx:out value="${usecase.getParameter('documentid')}"/></q></i18n:param>
+        </i18n:translate>
+      </div>
+      <div class="lenya-box-body">
+        <form method="get">
+          
+          <input type="hidden" name="lenya.event" value="{$lenya.event}"/>
+          <input type="hidden" name="lenya.usecase" value="archive"/>
+          <input type="hidden" name="parenturl" value="{parent-url}"/>
+          
+          <table class="lenya-table-noborder">
+            <tr>
+              <td>
+                <i18n:translate>
+                  <i18n:text key="archive-doc?"/>
+                  <i18n:param><strong><jx:out value="${usecase.getParameter('documentid')}"/></strong></i18n:param>
+                </i18n:translate><br/><br/>
+              </td>
+            </tr>
+            <tr>
+              <jx:if test="${not(empty(usecase.getParameter('inconsistentdocument')))}">
+                <td class="lenya-entry-caption">
+                  <span class="lenya-form-message-error"><i18n:text key="docs-have-links-to-doc"/>:</span>
+                </td>
+                <td valign="top">
+                  <jx:forEach var="item" items="${usecase.getParameter('inconsistentdocument')}">
+                    <a target="_blank" href="{@href}"><jx:out value="${item.id}"/><jx:out value="."/></a><br/>
+                  </jx:forEach>
+                </td>
+              </jx:if>
+            </tr>
+            <tr>
+              <td>
+                <br/>
+                <input i18n:attr="value" type="submit" value="Archive"/>&#160;
+                <input i18n:attr="value" type="button" onClick="location.href='{$request-uri}';" value="Cancel"/>
+              </td>
+            </tr>
+          </table>
+        </form>
+      </div>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/src/webapp/lenya/usecases/site/assets.jx
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/site/assets.jx?view=auto&rev=123335
==============================================================================
--- (empty file)
+++ lenya/trunk/src/webapp/lenya/usecases/site/assets.jx	Sat Dec 25 04:39:28 2004
@@ -0,0 +1,141 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- $Id: meta.xsp 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<page:page xmlns:jx="http://apache.org/cocoon/templates/jx/1.0" 
+           xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0" 
+           xmlns="http://www.w3.org/1999/xhtml" 
+           xmlns:i18n="http://apache.org/cocoon/i18n/2.1" >
+  <div>
+    <!-- 
+		These are the tabs. Make sure that each of them has the correct id,
+		target and corresponding number in the Tab() call.
+	 -->
+    <table border="0" cellpadding="0" cellspacing="0">
+      <tr>
+        <td>
+          <a href="?lenya.usecase=info-overview&amp;lenya.step=showscreen" class="lenya-tablink">
+            <i18n:text>Overview</i18n:text>
+          </a>
+        </td>
+        <jx:if test="${usecase.getParameter('languageexists').equals('true')}">
+          <jx:if test="${not(usecase.getParameter('documentid').equals('/'))}">
+            <td>
+              <a href="?lenya.usecase=info-meta&amp;lenya.step=showscreen" class="lenya-tablink">
+                <i18n:text>Meta</i18n:text>
+              </a>
+            </td>
+            <td>
+              <a href="?lenya.usecase=info-assets&amp;lenya.step=showscreen" class="lenya-tablink-active">
+                <i18n:text>Assets</i18n:text>
+              </a>
+            </td>
+            <td>
+              <a href="?lenya.usecase=info-workflow&amp;lenya.step=showscreen" class="lenya-tablink">
+                <i18n:text>Workflow</i18n:text>
+              </a>
+            </td>
+            <td>
+              <a href="?lenya.usecase=info-revisions&amp;lenya.step=showscreen" class="lenya-tablink">
+                <i18n:text>Versions</i18n:text>
+              </a>
+            </td>
+          </jx:if>
+          <jx:choose>
+            <jx:when test="${usecase.getParameter('area').equals('authoring')}">
+              <td>
+                <a href="?lenya.usecase=info-ac-auth&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Auth</i18n:text>
+                </a>
+              </td>
+              <td>
+                <a href="?lenya.usecase=ac-live&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Live</i18n:text>
+                </a>
+              </td>
+            </jx:when>
+            <jx:when test="${usecase.getParameter('area').equals('archive')}">
+              <td>
+                <a href="?lenya.usecase=ac-archive&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Archive</i18n:text>
+                </a>
+              </td>
+            </jx:when>
+            <jx:when test="${usecase.getParameter('area').equals('trash')}">
+              <td>
+                <a href="?lenya.usecase=ac-trash&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Trash</i18n:text>
+                </a>
+              </td>
+            </jx:when>
+          </jx:choose>
+          <td>
+            <a href="?lenya.usecase=info-scheduler&amp;lenya.step=showscreen" class="lenya-tablink">
+              <i18n:text>Scheduler</i18n:text>
+            </a>
+          </td>
+        </jx:if>
+      </tr>
+    </table>
+    <div id="contentblock1" class="lenya-tab">
+      <table class="lenya-table">
+        <tr>
+          <th><i18n:text>Assets</i18n:text></th>
+          <th><i18n:text>Preview</i18n:text></th>
+          <th><i18n:text>Title</i18n:text></th>
+          <th><i18n:text>File Size</i18n:text></th>
+          <th><i18n:text>Creation Date</i18n:text></th>
+          <th></th>
+        </tr>
+        <jx:forEach var="item" items="${usecase.getParameter('assets')}">
+          <tr>
+            <td><jx:out value="${item.source}"/></td>
+            <td>        
+              <jx:if test="${item.format.equals('image/jpeg') or item.format.equals('image/gif') or item.format.equals('image/png')}">
+                  <img src="../authoring/${usecase.getParameter('documentnodeid')}/${item.source}" style="height: 32px; vertical-align: middle;"/>&#160;
+              </jx:if>
+             </td>
+            <td><jx:out value="${item.title}"/></td>
+            <td align="right"><jx:out value="${item.extent}"/> kB</td>
+            <td align="right"><jx:out value="${item.date}"/></td>
+            <td>
+              <form>
+                <input type="hidden" name="lenya.usecase" value="asset"/>
+                <input type="hidden" name="lenya.step" value="remove"/>
+                <input type="hidden" name="name" value="${item.source}"/>
+                <jx:choose>
+                  <jx:when test="${usecase.getParameter('area').equals('authoring')}"><input i18n:attr="value" type="submit" value="Delete"/></jx:when>
+                  <jx:otherwise><input i18n:attr="value" type="submit" disabled="disabled" value="Delete"/></jx:otherwise>
+                </jx:choose>              
+              </form>
+            </td>
+          </tr> 
+        </jx:forEeach>
+      </table>
+      <form>
+        <input type="hidden" name="lenya.usecase" value="asset"/>
+        <input type="hidden" name="lenya.step" value="showscreen"/>
+        <input type="hidden" name="insert" value="false"/>
+        <jx:choose>
+           <jx:when test="${usecase.getParameter('area').equals('authoring')}"><input i18n:attr="value" type="submit" value="New Asset"/></jx:when>
+           <jx:otherwise><input i18n:attr="value" type="submit" disabled="disabled" value="New Asset"/></jx:otherwise>
+         </jx:choose>              
+      </form>
+    </div>
+  </div>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/src/webapp/lenya/usecases/site/copy.jx
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/site/copy.jx?view=auto&rev=123335
==============================================================================
--- (empty file)
+++ lenya/trunk/src/webapp/lenya/usecases/site/copy.jx	Sat Dec 25 04:39:28 2004
@@ -0,0 +1,66 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!-- $Id: copy.xsp 42702 2004-03-13 12:34:18Z gregor $ -->
+<page:page xmlns:c="http://apache.org/cocoon/templates/jx/1.0" 
+           xmlns="http://www.w3.org/1999/xhtml" 
+           xmlns:i18n="http://apache.org/cocoon/i18n/2.1" 
+           xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0" >
+           
+  <page:title>
+    <i18n:text>Copy Document</i18n:text>
+  </page:title>
+  <page:body>
+    <div class="lenya-box">
+      <div class="lenya-box-title">
+        <i18n:translate>
+          <i18n:text key="copy-doc"/>
+          <i18n:param>
+            <q>
+              <jx:out value="${usecase.getParameter('documentid')}"/>
+            </q>
+          </i18n:param>
+        </i18n:translate>
+      </div>
+      <div class="lenya-box-body">
+        <form method="get" action="">
+          <input type="hidden" name="lenya.usecase" value="copy"/>
+          <table class="lenya-table-noborder">
+            <tr>
+              <td>
+                <br/>
+                <i18n:translate>
+                  <i18n:text key="copy-doc-to-clip?"/>
+                  <i18n:param>
+                    <strong>
+                      <jx:out value="${usecase.getParameter('documentid')}"/>
+                    </strong>
+                  </i18n:param>
+                </i18n:translate>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <br/><input i18n:attr="value" type="submit" value="Copy"/>&#160; 
+                <input i18n:attr="value" type="button" onClick="location.href='${requesturi}';" value="Cancel"/> 
+              </td>
+            </tr>
+          </table>
+        </form>
+      </div>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/src/webapp/lenya/usecases/site/cut.jx
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/site/cut.jx?view=auto&rev=123335
==============================================================================
--- (empty file)
+++ lenya/trunk/src/webapp/lenya/usecases/site/cut.jx	Sat Dec 25 04:39:28 2004
@@ -0,0 +1,66 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!-- $Id: copy.xsp 42702 2004-03-13 12:34:18Z gregor $ -->
+<page:page xmlns:c="http://apache.org/cocoon/templates/jx/1.0" 
+           xmlns="http://www.w3.org/1999/xhtml" 
+           xmlns:i18n="http://apache.org/cocoon/i18n/2.1" 
+           xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0" >
+           
+  <page:title>
+    <i18n:text>Cut Document</i18n:text>
+  </page:title>
+  <page:body>
+    <div class="lenya-box">
+      <div class="lenya-box-title">
+        <i18n:translate>
+          <i18n:text key="cut-doc"/>
+          <i18n:param>
+            <q>
+              <jx:out value="${usecase.getParameter('documentid')}"/>
+            </q>
+          </i18n:param>
+        </i18n:translate>
+      </div>
+      <div class="lenya-box-body">
+        <form method="get" action="">
+          <input type="hidden" name="lenya.usecase" value="cut"/>
+          <table class="lenya-table-noborder">
+            <tr>
+              <td>
+                <br/>
+                <i18n:translate>
+                  <i18n:text key="cut-doc-to-clip?"/>
+                  <i18n:param>
+                    <strong>
+                      <jx:out value="${usecase.getParameter('documentid')}"/>
+                    </strong>
+                  </i18n:param>
+                </i18n:translate>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <br/><input i18n:attr="value" type="submit" value="Cut"/>&#160; 
+                <input i18n:attr="value" type="button" onClick="location.href='${requesturi}';" value="Cancel"/> 
+              </td>
+            </tr>
+          </table>
+        </form>
+      </div>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/src/webapp/lenya/usecases/site/deactivate.jx
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/site/deactivate.jx?view=auto&rev=123335
==============================================================================
--- (empty file)
+++ lenya/trunk/src/webapp/lenya/usecases/site/deactivate.jx	Sat Dec 25 04:39:28 2004
@@ -0,0 +1,109 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!-- $Id: copy.xsp 42702 2004-03-13 12:34:18Z gregor $ -->
+<page:page xmlns:c="http://apache.org/cocoon/templates/jx/1.0" 
+           xmlns="http://www.w3.org/1999/xhtml" 
+           xmlns:i18n="http://apache.org/cocoon/i18n/2.1" 
+           xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0" >
+           
+  <page:title>
+    <i18n:text>Deactivate Document</i18n:text>
+  </page:title>
+  <page:body>
+    <div class="lenya-box">
+      <div class="lenya-box-title">
+        <i18n:translate>
+          <i18n:text key="deactivate-doc"/>
+          <i18n:param>
+            <q>
+              <jx:out value="${usecase.getParameter('documentid')}"/>
+            </q>
+          </i18n:param>
+        </i18n:translate>
+      </div>
+      <div class="lenya-box-body">
+        <jx:choose>
+          <jx:when test="${not(empty(usecase.getParameter('message')))}"> <!-- there is a warning -->
+            <form method="get">
+              <div class="lenya-box">
+                <div class="lenya-box-title"><i18n:text>Deactivate Document</i18n:text></div>
+                <div class="lenya-box-body">
+                  <table class="lenya-table-noborder">
+                    <tr>
+                      <td class="lenya-entry-caption"><i18n:text>Document</i18n:text>:</td>
+                      <td><jx:out value="${usecase.getParameter('documentid')}"/> [<jx:out value="${usecase.getParameter('language')}"/>]</td>
+                    </tr>
+                    <tr>
+                      <td valign="top" class="lenya-entry-caption"><i18n:text>Problem</i18n:text>:</td>
+                      <td>
+                        <span class="lenya-form-error"><i18n:text key="cannot-deactivate-unless-children-deactivated"/>:</span>
+                        <ul>
+                          <jx:forEach var="item" items="${usecase.getParameter('livechildren')}">
+                            <li><a href="{@href}"><jx:out value="${item.id}"/> [<jx:out value="${item.language}"/>]</a></li>
+                          </jx:forEach>
+                        </ul>
+                      </td>
+                    </tr>
+                  </table>
+                </div>
+              </div>
+              <input onClick="location.href='{$request-uri}';" type="button" value="Cancel"/>
+            </form>
+          </jx:when>
+          <jx:otherwise> <!-- no warning -->
+            <form method="get" action="">
+              <input type="hidden" name="lenya.usecase" value="deactivate"/>
+              <table class="lenya-table-noborder">
+                <tr>
+                  <td>
+                    <br/>
+                    <i18n:translate>
+                      <i18n:text key="deactivate-doc?"/>
+                      <i18n:param>
+                        <strong>
+                          <jx:out value="${usecase.getParameter('documentid')}"/>
+                        </strong>
+                      </i18n:param>
+                    </i18n:translate>
+                  </td>
+                </tr>
+                <tr>
+                  <jx:if test="${not(empty(usecase.getParameter('inconsistentdocument')))}">
+                    <td class="lenya-entry-caption">
+                      <span class="lenya-form-message-error"><i18n:text key="docs-have-links-to-doc"/>:</span>
+                    </td>
+                    <td valign="top">
+                      <jx:forEach var="item" items="${usecase.getParameter('inconsistentdocument')}">
+                        <a target="_blank" href="{@href}"><jx:out value="${item.id}"/><jx:out value="."/></a><br/>
+                      </jx:forEach>
+                    </td>
+                  </jx:if>
+                </tr>
+                <tr>
+                  <td>
+                    <br/><input i18n:attr="value" type="submit" value="Deactivate"/>&#160; 
+                    <input i18n:attr="value" type="button" onClick="location.href='${requesturi}';" value="Cancel"/> 
+                  </td>
+                </tr>
+              </table>
+            </form>
+          </jx:otherwise>
+        </jx:choose>
+      </div>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/src/webapp/lenya/usecases/site/delete.jx
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/site/delete.jx?view=auto&rev=123335
==============================================================================
--- (empty file)
+++ lenya/trunk/src/webapp/lenya/usecases/site/delete.jx	Sat Dec 25 04:39:28 2004
@@ -0,0 +1,74 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- $Id: meta.xsp 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<page:page xmlns:jx="http://apache.org/cocoon/templates/jx/1.0" 
+           xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0" 
+           xmlns="http://www.w3.org/1999/xhtml" 
+           xmlns:i18n="http://apache.org/cocoon/i18n/2.1" >
+           
+  <page:title><i18n:text>Delete Document</i18n:text></page:title>
+  <page:body>
+    <div class="lenya-box">
+      <div class="lenya-box-title">
+        <i18n:translate>
+          <i18n:text key="delete-doc"/>
+          <i18n:param><q><jx:out value="${usecase.getParameter('documentid')}"/></q></i18n:param>
+        </i18n:translate>
+      </div>
+      <div class="lenya-box-body">
+        <form method="get">
+          
+          <input type="hidden" name="lenya.event" value="{$lenya.event}"/>
+          <input type="hidden" name="lenya.usecase" value="delete"/>
+          <input type="hidden" name="parenturl" value="{parent-url}"/>
+          
+          <table class="lenya-table-noborder">
+            <tr>
+              <td>
+                <i18n:translate>
+                  <i18n:text key="delete-language-versions?"/>
+                  <i18n:param><strong><jx:out value="${usecase.getParameter('documentid')}"/></strong></i18n:param>
+                </i18n:translate><br/><br/>
+              </td>
+            </tr>
+            <tr>
+              <jx:if test="${not(empty(usecase.getParameter('inconsistentdocument')))}">
+                <td class="lenya-entry-caption">
+                  <span class="lenya-form-message-error"><i18n:text key="docs-have-links-to-doc"/>:</span>
+                </td>
+                <td valign="top">
+                  <jx:forEach var="item" items="${usecase.getParameter('inconsistentdocument')}">
+                    <a target="_blank" href="{@href}"><jx:out value="${item.id}"/><jx:out value="."/></a><br/>
+                  </jx:forEach>
+                </td>
+              </jx:if>
+            </tr>
+            <tr>
+              <td>
+                <br/>
+                <input i18n:attr="value" type="submit" value="Delete"/>&#160;
+                <input i18n:attr="value" type="button" onClick="location.href='{$request-uri}';" value="Cancel"/>
+              </td>
+            </tr>
+          </table>
+        </form>
+      </div>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/src/webapp/lenya/usecases/site/meta.jx
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/site/meta.jx?view=auto&rev=123335
==============================================================================
--- (empty file)
+++ lenya/trunk/src/webapp/lenya/usecases/site/meta.jx	Sat Dec 25 04:39:28 2004
@@ -0,0 +1,183 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- $Id: meta.xsp 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<page:page xmlns:jx="http://apache.org/cocoon/templates/jx/1.0" 
+           xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0" 
+           xmlns="http://www.w3.org/1999/xhtml" 
+           xmlns:i18n="http://apache.org/cocoon/i18n/2.1" >
+  <div>
+    <!-- 
+		These are the tabs. Make sure that each of them has the correct id,
+		target and corresponding number in the Tab() call.
+	 -->
+    <table border="0" cellpadding="0" cellspacing="0">
+      <tr>
+        <td>
+          <a href="?lenya.usecase=info-overview&amp;lenya.step=showscreen" class="lenya-tablink">
+            <i18n:text>Overview</i18n:text>
+          </a>
+        </td>
+        <jx:if test="${usecase.getParameter('languageexists').equals('true')}">
+          <jx:if test="${not(usecase.getParameter('documentid').equals('/'))}">
+            <td>
+              <a href="?lenya.usecase=info-meta&amp;lenya.step=showscreen" class="lenya-tablink-active">
+                <i18n:text>Meta</i18n:text>
+              </a>
+            </td>
+            <td>
+              <a href="?lenya.usecase=info-assets&amp;lenya.step=showscreen" class="lenya-tablink">
+                <i18n:text>Assets</i18n:text>
+              </a>
+            </td>
+            <td>
+              <a href="?lenya.usecase=info-workflow&amp;lenya.step=showscreen" class="lenya-tablink">
+                <i18n:text>Workflow</i18n:text>
+              </a>
+            </td>
+            <td>
+              <a href="?lenya.usecase=info-revisions&amp;lenya.step=showscreen" class="lenya-tablink">
+                <i18n:text>Versions</i18n:text>
+              </a>
+            </td>
+          </jx:if>
+          <jx:choose>
+            <jx:when test="${usecase.getParameter('area').equals('authoring')}">
+              <td>
+                <a href="?lenya.usecase=info-ac-auth&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Auth</i18n:text>
+                </a>
+              </td>
+              <td>
+                <a href="?lenya.usecase=ac-live&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Live</i18n:text>
+                </a>
+              </td>
+            </jx:when>
+            <jx:when test="${usecase.getParameter('area').equals('archive')}">
+              <td>
+                <a href="?lenya.usecase=ac-archive&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Archive</i18n:text>
+                </a>
+              </td>
+            </jx:when>
+            <jx:when test="${usecase.getParameter('area').equals('trash')}">
+              <td>
+                <a href="?lenya.usecase=ac-trash&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Trash</i18n:text>
+                </a>
+              </td>
+            </jx:when>
+          </jx:choose>
+          <td>
+            <a href="?lenya.usecase=info-scheduler&amp;lenya.step=showscreen" class="lenya-tablink">
+              <i18n:text>Scheduler</i18n:text>
+            </a>
+          </td>
+        </jx:if>
+      </tr>
+    </table>
+    <div id="contentblock1" class="lenya-tab">
+      <form>
+        <table class="lenya-table-noborder">
+          <tr>
+            <td colspan="2">
+              <ul>
+                <jx:forEach var="message" items="${usecase.getErrorMessages()}">
+                  <li>
+                    <i18n:text>
+                      <jx:out value="${message}"/>
+                    </i18n:text>
+                  </li>
+                </jx:forEach>
+                <jx:forEach var="message" items="${usecase.getInfoMessages()}">
+                  <li>
+                    <i18n:text>
+                      <jx:out value="${message}"/>
+                    </i18n:text>
+                  </li>
+                </jx:forEach>
+              </ul>
+            </td>
+          </tr>
+          <tr>
+            <td class="lenya-entry-caption"><i18n:text>Title</i18n:text>:</td>
+            <td>
+              <input type="text" id="title" name="title" class="lenya-form-element" value="${usecase.getParameter('title')}"/>
+            </td>
+          </tr>
+          <tr>
+            <td class="lenya-entry-caption"><i18n:text>Subject</i18n:text>:</td>
+            <td>
+              <input type="text" id="subject" name="subject" class="lenya-form-element" value="${usecase.getParameter('subject')}"/>
+            </td>
+          </tr>
+          <tr>
+            <td class="lenya-entry-caption"><i18n:text>Description</i18n:text>:</td>
+            <td>
+              <textarea id="description" name="description" rows="3" class="lenya-form-element">
+                <jx:out value="${usecase.getParameter('description')}"/>
+              </textarea>
+            </td>
+          </tr>
+          <tr>
+            <td class="lenya-entry-caption"><i18n:text>Publisher</i18n:text>:</td>
+            <td>
+              <input type="text" id="publisher" name="publisher" class="lenya-form-element" value="${usecase.getParameter('publisher')}"/>
+            </td>
+          </tr>
+          <tr>
+            <td class="lenya-entry-caption"><i18n:text>Rights</i18n:text>:</td>
+            <td>
+              <input type="text" id="rights" name="rights" class="lenya-form-element" value="${usecase.getParameter('rights')}"/>
+            </td>
+          </tr>
+          <tr>
+            <td class="lenya-entry-caption"><i18n:text>Creation Date</i18n:text>:</td>
+            <td>
+              <jx:out value="${usecase.getParameter('date')}"/>
+            </td>
+          </tr>
+          <tr>
+            <td class="lenya-entry-caption"><i18n:text>Creator</i18n:text>:</td>
+            <td>
+              <input type="hidden" id="creator" name="creator" class="lenya-form-element" value="${usecase.getParameter('creator')}"/>
+              <jx:out value="${usecase.getParameter('creator')}"/>
+            </td>
+          </tr>
+          <tr>
+            <td/>
+            <td>
+              <br/>
+              <jx:choose>
+                <jx:when test="${usecase.getParameter('area').equals('authoring')}">
+                  <input i18n:attr="value" type="submit" value="Save"/>
+                </jx:when>
+                <jx:otherwise>
+                  <input i18n:attr="value" type="submit" disabled="disabled" value="Save"/>
+                </jx:otherwise>
+              </jx:choose>
+            </td>
+          </tr>
+        </table>
+        <input type="hidden" name="lenya.usecase" value="info-meta"/>
+        <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+      </form>
+    </div>
+  </div>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/src/webapp/lenya/usecases/site/overview.jx
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/site/overview.jx?view=auto&rev=123335
==============================================================================
--- (empty file)
+++ lenya/trunk/src/webapp/lenya/usecases/site/overview.jx	Sat Dec 25 04:39:28 2004
@@ -0,0 +1,180 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- $Id: meta.xsp 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<page:page xmlns:jx="http://apache.org/cocoon/templates/jx/1.0" 
+           xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0" 
+           xmlns="http://www.w3.org/1999/xhtml" 
+           xmlns:i18n="http://apache.org/cocoon/i18n/2.1" >
+  <div>
+    <!-- 
+		These are the tabs. Make sure that each of them has the correct id,
+		target and corresponding number in the Tab() call.
+	 -->
+    <table border="0" cellpadding="0" cellspacing="0">
+      <tr>
+        <td>
+          <a href="?lenya.usecase=info-overview&amp;lenya.step=showscreen" class="lenya-tablink-active">
+            <i18n:text>Overview</i18n:text>
+          </a>
+        </td>
+        <jx:if test="${usecase.getParameter('languageexists').equals('true')}">
+          <jx:if test="${not(usecase.getParameter('documentid').equals('/'))}">
+            <td>
+              <a href="?lenya.usecase=info-meta&amp;lenya.step=showscreen" class="lenya-tablink">
+                <i18n:text>Meta</i18n:text>
+              </a>
+            </td>
+            <td>
+              <a href="?lenya.usecase=info-assets&amp;lenya.step=showscreen" class="lenya-tablink">
+                <i18n:text>Assets</i18n:text>
+              </a>
+            </td>
+            <td>
+              <a href="?lenya.usecase=info-workflow&amp;lenya.step=showscreen" class="lenya-tablink">
+                <i18n:text>Workflow</i18n:text>
+              </a>
+            </td>
+            <td>
+              <a href="?lenya.usecase=info-revisions&amp;lenya.step=showscreen" class="lenya-tablink">
+                <i18n:text>Versions</i18n:text>
+              </a>
+            </td>
+          </jx:if>
+          <jx:choose>
+            <jx:when test="${usecase.getParameter('area').equals('authoring')}">
+              <td>
+                <a href="?lenya.usecase=info-ac-auth&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Auth</i18n:text>
+                </a>
+              </td>
+              <td>
+                <a href="?lenya.usecase=ac-live&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Live</i18n:text>
+                </a>
+              </td>
+            </jx:when>
+            <jx:when test="${usecase.getParameter('area').equals('archive')}">
+              <td>
+                <a href="?lenya.usecase=ac-archive&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Archive</i18n:text>
+                </a>
+              </td>
+            </jx:when>
+            <jx:when test="${usecase.getParameter('area').equals('trash')}">
+              <td>
+                <a href="?lenya.usecase=ac-trash&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Trash</i18n:text>
+                </a>
+              </td>
+            </jx:when>
+          </jx:choose>
+          <td>
+            <a href="?lenya.usecase=info-scheduler&amp;lenya.step=showscreen" class="lenya-tablink">
+              <i18n:text>Scheduler</i18n:text>
+            </a>
+          </td>
+        </jx:if>
+      </tr>
+    </table>
+    <div id="contentblock1" class="lenya-tab">
+      <jx:choose>
+        <jx:when test="${not(empty(usecase.getParameter('title')))}">
+          <table class="lenya-table-noborder">
+            <tr>
+              <td colspan="2">
+                <ul>
+                  <jx:forEach var="message" items="${usecase.getErrorMessages()}">
+                    <li>
+                      <i18n:text>
+                        <jx:out value="${message}"/>
+                      </i18n:text>
+                    </li>
+                  </jx:forEach>
+                  <jx:forEach var="message" items="${usecase.getInfoMessages()}">
+                    <li>
+                      <i18n:text>
+                        <jx:out value="${message}"/>
+                      </i18n:text>
+                    </li>
+                  </jx:forEach>
+                </ul>
+              </td>
+            </tr>
+            <tr>
+              <td class="lenya-entry-caption"><i18n:text>Title</i18n:text>:</td>
+              <td>
+                <jx:out value="${usecase.getParameter('title')}"/>
+              </td>
+            </tr>
+            <tr>
+              <td class="lenya-entry-caption"><i18n:text>Description</i18n:text>:</td>
+              <td>
+                <jx:out value="${usecase.getParameter('description')}"/>
+              </td>
+            </tr>
+            <tr>
+              <td class="lenya-entry-caption"><i18n:text>Workflow State</i18n:text>:</td>
+              <td>
+                <jx:choose>
+                  <jx:when test="${not(empty(usecase.getParameter('state')))}"><jx:out select="${usecase.getParameter('state')}"/></jx:when>
+                  <jx:otherwise><span style="color: #999999;"><i18n:text>[no workflow]</i18n:text></span></jx:otherwise>
+                </jx:choose>
+              </td>
+            </tr>
+            <tr>
+              <td class="lenya-entry-caption"><i18n:text>Live</i18n:text>:</td>
+              <td>
+                <jx:out value="${usecase.getParameter('live')}"/>
+              </td>
+            </tr>
+            <tr>
+              <td class="lenya-entry-caption"><i18n:text>Available Languages</i18n:text>:</td>
+              <td>
+                <jx:out value="${usecase.getParameter('languages')}"/>
+              </td>
+            </tr>
+            <tr>
+              <td class="lenya-entry-caption"><i18n:text>Last modified</i18n:text>:</td>
+              <td>
+                <jx:out value="${usecase.getParameter('lastmodified')}"/>
+              </td>
+            </tr>
+            <tr>
+              <td class="lenya-entry-caption"><i18n:text>Document ID</i18n:text>:</td>
+              <td>
+                <jx:out value="${usecase.getParameter('documentid')}"/>
+              </td>
+            </tr>
+            <tr>
+              <td class="lenya-entry-caption"><i18n:text>Resource Type</i18n:text>:</td>
+              <td>
+                <jx:out value="${usecase.getParameter('resourcetype')}"/>
+              </td>
+            </tr>
+          </table>
+        </jx:when>
+        <jx:when test="${usecase.getParameter('languageexists').equals('false')}">
+          <i18n:text>This document is not available in this language.</i18n:text><br/><br/>
+          <i18n:text>Available Languages</i18n:text>: <jx:out value="${usecase.getParameter('languages')}"/>
+        </jx:when>
+        <jx:otherwise><i18n:text>No overview available.</i18n:text></jx:otherwise>
+      </jx:choose>
+    </div>
+  </div>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/src/webapp/lenya/usecases/site/paste.jx
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/site/paste.jx?view=auto&rev=123335
==============================================================================
--- (empty file)
+++ lenya/trunk/src/webapp/lenya/usecases/site/paste.jx	Sat Dec 25 04:39:28 2004
@@ -0,0 +1,66 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!-- $Id: copy.xsp 42702 2004-03-13 12:34:18Z gregor $ -->
+<page:page xmlns:c="http://apache.org/cocoon/templates/jx/1.0" 
+           xmlns="http://www.w3.org/1999/xhtml" 
+           xmlns:i18n="http://apache.org/cocoon/i18n/2.1" 
+           xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0" >
+           
+  <page:title>
+    <i18n:text>Paste Document</i18n:text>
+  </page:title>
+  <page:body>
+    <div class="lenya-box">
+      <div class="lenya-box-title">
+        <i18n:translate>
+          <i18n:text key="paste-doc"/>
+          <i18n:param>
+            <q>
+              <jx:out value="${usecase.getParameter('firstdocumentid')}"/>
+            </q>
+          </i18n:param>
+        </i18n:translate>
+      </div>
+      <div class="lenya-box-body">
+        <form method="get" action="">
+          <input type="hidden" name="lenya.usecase" value="paste"/>
+          <table class="lenya-table-noborder">
+            <tr>
+              <td>
+                <br/>
+                <i18n:translate>
+                  <i18n:text key="paste-doc-from-clip?"/>
+                  <i18n:param>
+                    <strong>
+                      <jx:out value="${usecase.getParameter('firstdocumentid')}"/>
+                    </strong>
+                  </i18n:param>
+                </i18n:translate>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <br/><input i18n:attr="value" type="submit" value="Paste"/>&#160; 
+                <input i18n:attr="value" type="button" onClick="location.href='${requesturi}';" value="Cancel"/> 
+              </td>
+            </tr>
+          </table>
+        </form>
+      </div>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/src/webapp/lenya/usecases/site/rename-label.jx
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/site/rename-label.jx?view=auto&rev=123335
==============================================================================
--- (empty file)
+++ lenya/trunk/src/webapp/lenya/usecases/site/rename-label.jx	Sat Dec 25 04:39:28 2004
@@ -0,0 +1,59 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!-- $Id: copy.xsp 42702 2004-03-13 12:34:18Z gregor $ -->
+<page:page xmlns:c="http://apache.org/cocoon/templates/jx/1.0" 
+           xmlns="http://www.w3.org/1999/xhtml" 
+           xmlns:i18n="http://apache.org/cocoon/i18n/2.1" 
+           xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0" >
+           
+  <page:title>
+    <i18n:text>Edit Navigation Title</i18n:text>
+  </page:title>
+  <page:body>
+    <div class="lenya-box">
+      <div class="lenya-box-title">
+        <i18n:translate>
+          <i18n:text key="rename-label-doc"/>
+          <i18n:param>
+            <q>
+              <jx:out value="${usecase.getParameter('documentid')}"/>
+            </q>
+          </i18n:param>
+        </i18n:translate>
+      </div>
+      <div class="lenya-box-body">
+        <form method="get" action="">
+          <input type="hidden" name="lenya.usecase" value="rename-label"/>
+          <table class="lenya-table-noborder">
+            <tr>
+              <td class="lenya-entry-caption"><i18n:text>New Navigation Title</i18n:text>:</td>
+              <td><input type="text" class="lenya-form-element" name="label" value="${usecase.getParameter('label')}"/></td>
+            </tr>
+            <tr>
+              <td/>
+              <td>
+                <br/>
+                <input i18n:attr="value" type="submit" value="Save"/>&#160;
+                <input i18n:attr="value" type="button" onClick="location.href='${requesturi}';" value="Cancel"/>
+              </td>
+            </tr>
+          </table>
+        </form>
+      </div>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/src/webapp/lenya/usecases/site/rename.jx
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/site/rename.jx?view=auto&rev=123335
==============================================================================
--- (empty file)
+++ lenya/trunk/src/webapp/lenya/usecases/site/rename.jx	Sat Dec 25 04:39:28 2004
@@ -0,0 +1,58 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!-- $Id: copy.xsp 42702 2004-03-13 12:34:18Z gregor $ -->
+<page:page xmlns:c="http://apache.org/cocoon/templates/jx/1.0" 
+           xmlns="http://www.w3.org/1999/xhtml" 
+           xmlns:i18n="http://apache.org/cocoon/i18n/2.1" 
+           xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0" >
+           
+  <page:title>
+    <i18n:text>Rename Document</i18n:text>
+  </page:title>
+  <page:body>
+    <div class="lenya-box">
+      <div class="lenya-box-title">
+        <i18n:translate>
+          <i18n:text key="rename-doc"/>
+          <i18n:param>
+            <q>
+              <jx:out value="${usecase.getParameter('documentid')}"/>
+            </q>
+          </i18n:param>
+        </i18n:translate>
+      </div>
+      <div class="lenya-box-body">
+        <script type="text/javascript" src="${contextprefix}/lenya/javascript/validation.js">&#160;</script>
+        <script Language="JavaScript">function validateForm(theForm) { if (!validContent(theForm["secdocumentid"],"New Document ID")) return false; return true; } </script>
+        <form method="get" onsubmit="return validateForm(this)">
+          <input type="hidden" name="lenya.usecase" value="rename"/>
+          <input type="hidden" name="parenturl" value="{parent-url}"/>
+          <table class="lenya-table-noborder">
+            <tr>
+              <td class="lenya-entry-caption"><i18n:text>New Document ID</i18n:text>:</td>
+              <td><input type="text" class="lenya-form-element" name="secdocumentid" value="{$destination-id}"/> (<i18n:text>No whitespace, no special characters</i18n:text>)</td>
+            </tr>
+            <tr>
+              <td/>
+              <td> <br/> <input i18n:attr="value" type="submit" value="Rename"/>&#160; <input i18n:attr="value" type="button" onClick="location.href='{$request-uri}';" value="Cancel"/> </td>
+            </tr>
+          </table>
+        </form>
+      </div>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/src/webapp/lenya/usecases/site/restore.jx
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/site/restore.jx?view=auto&rev=123335
==============================================================================
--- (empty file)
+++ lenya/trunk/src/webapp/lenya/usecases/site/restore.jx	Sat Dec 25 04:39:28 2004
@@ -0,0 +1,78 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!-- $Id: copy.xsp 42702 2004-03-13 12:34:18Z gregor $ -->
+<page:page xmlns:c="http://apache.org/cocoon/templates/jx/1.0" 
+           xmlns="http://www.w3.org/1999/xhtml" 
+           xmlns:i18n="http://apache.org/cocoon/i18n/2.1" 
+           xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0" >
+           
+  <page:title>
+    <i18n:text>Restore Document</i18n:text>
+  </page:title>
+  <page:body>
+    <div class="lenya-box">
+      <div class="lenya-box-title">
+        <i18n:translate>
+          <i18n:text key="restore-doc"/>
+          <i18n:param>
+            <q>
+              <jx:out value="${usecase.getParameter('documentid')}"/>
+            </q>
+          </i18n:param>
+        </i18n:translate>
+      </div>
+      <div class="lenya-box-body">
+        <jx:choose>
+          <jx:when test="${not(empty(usecase.getErrorMessages()))}">		
+            <ul>
+              <jx:forEach var="message" items="${usecase.getErrorMessages()}">
+                <li>
+                  <i18n:text>
+                    <jx:out value="${message}"/>
+                  </i18n:text>
+                </li>
+              </jx:forEach>
+              <jx:forEach var="message" items="${usecase.getInfoMessages()}">
+                <li>
+                  <i18n:text>
+                    <jx:out value="${message}"/>
+                  </i18n:text>
+                </li>
+              </jx:forEach>
+            </ul>
+            <input type="button" class="lenya-form-element" onClick="location.href='${requesturi}';" value="Back"/>
+          </jx:when>
+          <jx:otherwise>
+            <form method="get">
+              <input type="hidden" name="lenya.usecase" value="restore"/>
+              <i18n:translate>
+                <i18n:text key="restore-doc?"/>
+                <i18n:param>
+                  <strong>
+                    <jx:out value="${usecase.getParameter('documentid')}"/>
+                  </strong>
+                </i18n:param>
+              </i18n:translate>
+              <input type="submit" value="Restore"/>&#160;
+              <input type="button" onClick="location.href='${requesturi}';" value="Cancel"/>
+            </form>
+          </jx:otherwise>
+        </jx:choose>	
+      </div>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/src/webapp/lenya/usecases/site/scheduler.jx
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/site/scheduler.jx?view=auto&rev=123335
==============================================================================
--- (empty file)
+++ lenya/trunk/src/webapp/lenya/usecases/site/scheduler.jx	Sat Dec 25 04:39:28 2004
@@ -0,0 +1,99 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- $Id: meta.xsp 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<page:page xmlns:jx="http://apache.org/cocoon/templates/jx/1.0" 
+           xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0" 
+           xmlns="http://www.w3.org/1999/xhtml" 
+           xmlns:i18n="http://apache.org/cocoon/i18n/2.1" >
+  <div>
+    <!-- 
+		These are the tabs. Make sure that each of them has the correct id,
+		target and corresponding number in the Tab() call.
+	 -->
+    <table border="0" cellpadding="0" cellspacing="0">
+      <tr>
+        <td>
+          <a href="?lenya.usecase=info-overview&amp;lenya.step=showscreen" class="lenya-tablink">
+            <i18n:text>Overview</i18n:text>
+          </a>
+        </td>
+        <jx:if test="${usecase.getParameter('languageexists').equals('true')}">
+          <jx:if test="${not(usecase.getParameter('documentid').equals('/'))}">
+            <td>
+              <a href="?lenya.usecase=info-meta&amp;lenya.step=showscreen" class="lenya-tablink">
+                <i18n:text>Meta</i18n:text>
+              </a>
+            </td>
+            <td>
+              <a href="?lenya.usecase=info-assets&amp;lenya.step=showscreen" class="lenya-tablink">
+                <i18n:text>Assets</i18n:text>
+              </a>
+            </td>
+            <td>
+              <a href="?lenya.usecase=info-workflow&amp;lenya.step=showscreen" class="lenya-tablink">
+                <i18n:text>Workflow</i18n:text>
+              </a>
+            </td>
+            <td>
+              <a href="?lenya.usecase=info-revisions&amp;lenya.step=showscreen" class="lenya-tablink">
+                <i18n:text>Versions</i18n:text>
+              </a>
+            </td>
+          </jx:if>
+          <jx:choose>
+            <jx:when test="${usecase.getParameter('area').equals('authoring')}">
+              <td>
+                <a href="?lenya.usecase=info-ac-auth&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Auth</i18n:text>
+                </a>
+              </td>
+              <td>
+                <a href="?lenya.usecase=ac-live&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Live</i18n:text>
+                </a>
+              </td>
+            </jx:when>
+            <jx:when test="${usecase.getParameter('area').equals('archive')}">
+              <td>
+                <a href="?lenya.usecase=ac-archive&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Archive</i18n:text>
+                </a>
+              </td>
+            </jx:when>
+            <jx:when test="${usecase.getParameter('area').equals('trash')}">
+              <td>
+                <a href="?lenya.usecase=ac-trash&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Trash</i18n:text>
+                </a>
+              </td>
+            </jx:when>
+          </jx:choose>
+          <td>
+            <a href="?lenya.usecase=info-scheduler&amp;lenya.step=showscreen" class="lenya-tablink-active">
+              <i18n:text>Scheduler</i18n:text>
+            </a>
+          </td>
+        </jx:if>
+      </tr>
+    </table>
+    <div id="contentblock1" class="lenya-tab">
+      <!-- TODO xinclude schedule output for this document here -->
+    </div>
+  </div>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/src/webapp/lenya/usecases/site/workflow.jx
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/site/workflow.jx?view=auto&rev=123335
==============================================================================
--- (empty file)
+++ lenya/trunk/src/webapp/lenya/usecases/site/workflow.jx	Sat Dec 25 04:39:28 2004
@@ -0,0 +1,99 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- $Id: meta.xsp 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<page:page xmlns:jx="http://apache.org/cocoon/templates/jx/1.0" 
+           xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0" 
+           xmlns="http://www.w3.org/1999/xhtml" 
+           xmlns:i18n="http://apache.org/cocoon/i18n/2.1" >
+  <div>
+    <!-- 
+		These are the tabs. Make sure that each of them has the correct id,
+		target and corresponding number in the Tab() call.
+	 -->
+    <table border="0" cellpadding="0" cellspacing="0">
+      <tr>
+        <td>
+          <a href="?lenya.usecase=info-overview&amp;lenya.step=showscreen" class="lenya-tablink">
+            <i18n:text>Overview</i18n:text>
+          </a>
+        </td>
+        <jx:if test="${usecase.getParameter('languageexists').equals('true')}">
+          <jx:if test="${not(usecase.getParameter('documentid').equals('/'))}">
+            <td>
+              <a href="?lenya.usecase=info-meta&amp;lenya.step=showscreen" class="lenya-tablink">
+                <i18n:text>Meta</i18n:text>
+              </a>
+            </td>
+            <td>
+              <a href="?lenya.usecase=info-assets&amp;lenya.step=showscreen" class="lenya-tablink">
+                <i18n:text>Assets</i18n:text>
+              </a>
+            </td>
+            <td>
+              <a href="?lenya.usecase=info-workflow&amp;lenya.step=showscreen" class="lenya-tablink-active">
+                <i18n:text>Workflow</i18n:text>
+              </a>
+            </td>
+            <td>
+              <a href="?lenya.usecase=info-revisions&amp;lenya.step=showscreen" class="lenya-tablink">
+                <i18n:text>Versions</i18n:text>
+              </a>
+            </td>
+          </jx:if>
+          <jx:choose>
+            <jx:when test="${usecase.getParameter('area').equals('authoring')}">
+              <td>
+                <a href="?lenya.usecase=info-ac-auth&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Auth</i18n:text>
+                </a>
+              </td>
+              <td>
+                <a href="?lenya.usecase=ac-live&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Live</i18n:text>
+                </a>
+              </td>
+            </jx:when>
+            <jx:when test="${usecase.getParameter('area').equals('archive')}">
+              <td>
+                <a href="?lenya.usecase=ac-archive&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Archive</i18n:text>
+                </a>
+              </td>
+            </jx:when>
+            <jx:when test="${usecase.getParameter('area').equals('trash')}">
+              <td>
+                <a href="?lenya.usecase=ac-trash&amp;lenya.step=showscreen" class="lenya-tablink">
+                  <i18n:text>AC Trash</i18n:text>
+                </a>
+              </td>
+            </jx:when>
+          </jx:choose>
+          <td>
+            <a href="?lenya.usecase=info-scheduler&amp;lenya.step=showscreen" class="lenya-tablink">
+              <i18n:text>Scheduler</i18n:text>
+            </a>
+          </td>
+        </jx:if>
+      </tr>
+    </table>
+    <div id="contentblock1" class="lenya-tab">
+      <!-- TODO xinclude the generated workflow history here -->
+    </div>
+  </div>
+</page:page>
\ No newline at end of file

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