You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by fl...@apache.org on 2010/11/09 19:49:16 UTC

svn commit: r1033150 [1/2] - in /lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources: ./ COB-INF/ COB-INF/jx/ COB-INF/jx/site/ COB-INF/jx/tab/ COB-INF/jx/tab/ac/ META-INF/ META-INF/cocoon/ META-INF/cocoon/spring/

Author: florent
Date: Tue Nov  9 18:49:14 2010
New Revision: 1033150

URL: http://svn.apache.org/viewvc?rev=1033150&view=rev
Log:
add materials for sitemanagement usecases

Added:
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/archive.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/changeLabel.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/changeNodeID.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/copy.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/create.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/createFields.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/createLanguage.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/cut.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/delete.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/deleteLanguage.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/forceCheckIn.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/paste.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/restore.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/ac/
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/ac/ac.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/ac/ssl-form.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acArchive.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acAuthoring.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acLive.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acTrash.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/assets.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/head.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/meta.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/overview.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/revisions.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/scheduler.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/sitetree.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/workflow.jx
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/META-INF/
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/META-INF/cocoon/
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/META-INF/cocoon/spring/
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/META-INF/cocoon/spring/lenya-module-sitemanagement-blockServlet.xml
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/META-INF/cocoon/spring/lenya-module-sitemanagement-registration.xml
    lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/META-INF/cocoon/spring/lenya-module-sitemanagement-usecases.xml

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/archive.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/archive.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/archive.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/archive.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,78 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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: archive.jx 496697 2007-01-16 14:12:36Z andreas $ -->
+
+<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('document').getLink().getLabel()}"/></q></i18n:param>
+        </i18n:translate>
+      </div>
+      <div class="lenya-box-body">
+        <form method="get" id="form-archive_document">
+          
+          <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+          <input type="hidden" name="lenya.usecase" value="${request.getParameter('lenya.usecase')}"/>
+          
+          <table class="lenya-table-noborder">
+            <tr>
+              <td>
+                <i18n:translate>
+                  <i18n:text key="archive-doc?"/>
+                  <i18n:param><strong><jx:out value="${usecase.getParameter('document').getLink().getLabel()}"/></strong></i18n:param>
+                </i18n:translate><br/><br/>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <jx:import uri="fallback://lenya/modules/usecase/templates/messages.jx"/>
+              </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>
+                <input i18n:attr="value" type="submit" name="submit" value="Archive"/>&#160;
+                <input i18n:attr="value" type="submit" name="cancel" value="Cancel"/>
+              </td>
+            </tr>
+          </table>
+        </form>
+      </div>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/changeLabel.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/changeLabel.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/changeLabel.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/changeLabel.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,69 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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: renameLabel.jx 123364 2004-12-26 16:11:27Z 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"
+           xmlns:jx="http://apache.org/cocoon/templates/jx/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('document')
+                .getMetaData('http://purl.org/dc/elements/1.1/')
+                .getFirstValue('title')}"/></q>
+          </i18n:param>
+        </i18n:translate>
+      </div>
+      <div class="lenya-box-body">
+        <form method="post" action="" id="form-change_label">
+          <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+          <input type="hidden" name="lenya.usecase" value="${request.getParameter('lenya.usecase')}"/>
+          <table class="lenya-table-noborder">
+            <tr>
+              <td colspan="2">
+                <jx:import uri="fallback://lenya/modules/usecase/templates/messages.jx"/>
+              </td>
+            </tr>
+            <tr>
+              <td class="lenya-entry-caption"><label for="label"><i18n:text>New Navigation Title</i18n:text>:</label></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" name="submit" value="Save"/>
+                &#160;
+                <input i18n:attr="value" type="submit" name="cancel" value="Cancel"/>
+              </td>
+            </tr>
+          </table>
+        </form>
+      </div>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/changeNodeID.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/changeNodeID.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/changeNodeID.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/changeNodeID.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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: renameLabel.jx 123364 2004-12-26 16:11:27Z 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"
+           xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
+           >
+           
+  <page:title>
+    <i18n:text>Change Document URL</i18n:text>
+  </page:title>
+  <page:body>
+    <div class="lenya-box">
+      <div class="lenya-box-title">
+        <i18n:translate>
+          <i18n:text key="change-document-url"/>
+          <i18n:param><jx:out value="${usecase.getParameter('document').getLink().getLabel()}"/></i18n:param>
+        </i18n:translate>
+      </div>
+      <div class="lenya-box-body">
+        <form method="post" action="" id="form-change_node_id">
+          <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+          <input type="hidden" name="lenya.usecase" value="${request.getParameter('lenya.usecase')}"/>
+          <table class="lenya-table-noborder">
+            <tr>
+              <td colspan="2">
+                <jx:import uri="fallback://lenya/modules/usecase/templates/messages.jx"/>
+              </td>
+            </tr>
+            <tr>
+              <td class="lenya-entry-caption"><label for="nodeId"><i18n:text>New URL Fragment</i18n:text>: *</label></td>
+              <td><input type="text" class="lenya-form-element" name="nodeId" value="${usecase.getParameter('nodeId')}"/></td>
+            </tr>
+            <tr>
+              <td/>
+              <td>
+                <br/>
+                <input i18n:attr="value" type="submit" name="submit" value="Save"/>
+                &#160;
+                <input i18n:attr="value" type="submit" name="cancel" value="Cancel"/>
+              </td>
+            </tr>
+          </table>
+        </form>
+      </div>
+    </div>
+  </page:body>
+</page:page>

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/copy.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/copy.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/copy.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/copy.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,66 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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.jx 602874 2007-12-10 11:57:14Z andreas $ -->
+<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"
+           xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
+           >
+           
+  <page:title>
+    <i18n:text>Copy Document</i18n:text>
+  </page:title>
+  <page:body>
+    <div class="lenya-box">
+      <div class="lenya-box-title">
+        <i18n:text>Copy Document</i18n:text>
+      </div>
+      <div class="lenya-box-body">
+        <form method="get" action="" id="form-copy_document">
+          <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+          <input type="hidden" name="lenya.usecase" value="${request.getParameter('lenya.usecase')}"/>
+          <table class="lenya-table-noborder">
+            <tr>
+              <td>
+                <jx:import uri="fallback://lenya/modules/usecase/templates/messages.jx"/>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <br/>
+                <i18n:translate>
+                  <i18n:text key="copy-doc-to-clip?"/>
+                  <i18n:param>${usecase.getParameter('document').getLink().getLabel()}</i18n:param>
+                </i18n:translate>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <br/>
+                <input i18n:attr="value" type="submit" name="submit" value="Copy"/>
+                &#160;
+                <input i18n:attr="value" type="submit" name="cancel" value="Cancel"/>
+              </td>
+            </tr>
+          </table>
+        </form>
+      </div>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/create.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/create.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/create.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/create.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,70 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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: create.jx 611241 2008-01-11 17:24:09Z andreas $ -->
+
+<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>
+    <jx:choose>
+      <jx:when test="${usecase.getParameter('doctype') == null}">
+        <i18n:translate>
+          <i18n:text>New Document</i18n:text>
+        </i18n:translate>
+      </jx:when>
+      <jx:otherwise>
+        <i18n:translate>
+          <i18n:text>New ... Document</i18n:text>
+          <i18n:param><i18n:text>resourceType-<jx:out value="${usecase.getParameter('doctype')}"/></i18n:text></i18n:param>
+        </i18n:translate>
+      </jx:otherwise>
+    </jx:choose>
+  </page:title>
+  <page:body>
+    <div class="lenya-box">
+      <div class="lenya-box-title">
+        <i18n:translate>
+          <i18n:text>New Document</i18n:text>
+        </i18n:translate>
+      </div>
+      
+      <jx:import uri="fallback://lenya/modules/usecase/templates/messages.jx"/>
+      
+      <div class="lenya-box-body">
+        <form action="${usecase.getSourceURL()}" method="post" id="form-create">
+          <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+          <input type="hidden" name="lenya.usecase" value="${request.getParameter('lenya.usecase')}"/>
+          <table class="lenya-table-noborder">
+            <jx:import uri="fallback://lenya/modules/sitemanagement/usecases/site/createFields.jx"/>
+            <tr>
+              <td/>
+              <td>
+                <input i18n:attr="value" type="submit" name="submit" value="Create"/>
+                &#160;
+                <input i18n:attr="value" type="submit" name="cancel" value="Cancel"/>
+              </td>
+            </tr>
+          </table>
+        </form>
+      </div>
+    </div>
+  </page:body>
+</page:page>

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/createFields.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/createFields.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/createFields.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/createFields.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,235 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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: create.jx 486213 2006-12-12 16:14:30Z andreas $ -->
+
+<jx:template 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" >
+  
+  <jx:set var="newLanguageVersion" value="${usecase.getName().equals('sitemanagement.createLanguage')}"/>
+  
+  <jx:choose>
+    <jx:when test="${usecase.getParameter('pathProvided')}">
+      <tr>
+        <td class="lenya-entry-caption">
+          <label for="nodeName"><i18n:text>Path</i18n:text>: </label>
+        </td>
+        <td>
+          <input class="lenya-form-element" type="text" name="path" value="${usecase.getParameter('path')}"/>
+        </td>
+      </tr>
+    </jx:when>
+    <jx:when test="${newLanguageVersion}">
+      <tr>
+        <td class="lenya-entry-caption">
+          <label for="nodeName"><i18n:text>Path</i18n:text>: </label>
+        </td>
+        <td>
+          <jx:out value="${usecase.getParameter('path')}"/>
+        </td>
+      </tr>
+    </jx:when>
+    <jx:otherwise>
+      <tr>
+        <td class="lenya-entry-caption">
+          <label for="nodeName"><i18n:text>Parent Path</i18n:text>: </label>
+        </td>
+        <td>
+          <jx:out value="${usecase.getParameter('parentPath')}"/>
+        </td>
+      </tr>
+      <tr>
+        <td class="lenya-entry-caption">
+          <label for="nodeName"><i18n:text>Node Name</i18n:text>*: </label>
+        </td>
+        <td>
+          <input class="lenya-form-element" type="text" name="nodeName" value="${usecase.getParameter('nodeName')}"/>
+          <br/> (<i18n:text>No whitespace, no special characters</i18n:text>)
+        </td>
+      </tr>
+    </jx:otherwise>
+  </jx:choose>
+  <tr>
+    <td class="lenya-entry-caption">
+      <label for="dublincore.title"><i18n:text>Navigation Title</i18n:text>*: </label></td>
+    <td>
+      <input class="lenya-form-element" type="text"
+        name="dublincore.title" value="${usecase.getParameter('dublincore.title')}"/>
+    </td>
+  </tr>
+  <jx:if test="${!newLanguageVersion}">
+    <tr>
+      <td class="lenya-entry-caption">
+        <label for="visibleinnav"><i18n:text>Document visible in Navigation</i18n:text>*: </label></td>
+      <jx:set var="visible" value="yes"/>
+      <jx:if test="${usecase.getParameter('visibleInNav').equals('false')}">
+        <jx:set var="visible" value="no"/>
+      </jx:if> 
+      <td>
+        <select class="lenya-form-element" name="visibleInNav">
+          <jx:choose>
+            <jx:when test="${visible.equals('yes')}">
+              <option value="true" selected="selected"><i18n:text>yes</i18n:text></option>
+              <option value="false"><i18n:text>no</i18n:text></option>
+            </jx:when>
+            <jx:otherwise>
+              <option value="true"><i18n:text>yes</i18n:text></option>
+              <option value="false" selected="selected"><i18n:text>no</i18n:text></option>
+            </jx:otherwise>
+          </jx:choose>
+        </select>
+      </td>
+    </tr>
+  </jx:if>
+  <jx:set var="relations" value="${usecase.getParameter('relations')}"/>
+  <jx:if test="${relations.size() &gt; 1}">
+    <tr>
+      <td class="lenya-entry-caption">
+        <label for="relation"><i18n:text>Relation</i18n:text>*: </label>
+      </td>
+      <td>
+        <jx:forEach var="relation" items="${relations}">
+          <jx:choose>
+            <jx:when test="${relation.equals(usecase.getParameter('relation'))}">
+              <input type="radio" name="relation" value="${relation}" checked="checked"/><i18n:text>${relation}</i18n:text>
+            </jx:when>
+            <jx:otherwise>
+              <input type="radio" name="relation" value="${relation}"/><i18n:text>${relation}</i18n:text>
+            </jx:otherwise>
+          </jx:choose>
+        </jx:forEach>
+      </td>
+    </tr>
+  </jx:if>
+  <jx:set var="languages" value="${usecase.getParameter('languages')}"/>
+  <jx:choose>
+    <jx:when test="${languages.size() &gt; 1}">            
+      <tr>
+        <td class="lenya-entry-caption">
+          <label for="language"><i18n:text>Language</i18n:text>*: </label></td>
+        <td>
+          <select class="lenya-form-element" name="language">
+            <jx:forEach var="language" items="${usecase.getParameter('languages')}">
+              <jx:choose>
+                <jx:when test="${language.equals(usecase.getParameter('language'))}">
+                  <option value="${language}" selected="selected">${language} (<i18n:text>${language}</i18n:text>)</option>
+                </jx:when>
+                <jx:otherwise>
+                  <option value="${language}">${language} (<i18n:text>${language}</i18n:text>)</option>
+                </jx:otherwise>
+              </jx:choose>
+            </jx:forEach>
+          </select>
+        </td>
+      </tr>
+    </jx:when>
+    <jx:otherwise>
+      <tr>
+        <td class="lenya-entry-caption">
+          <label for="language"><i18n:text>Language</i18n:text>: </label></td>
+        <td>
+          <jx:set var="language" value="${languages[0]}"/>
+          <input type="hidden" name="language" value="${language}"/>
+          <jx:out value="${language}"/>
+        </td>
+      </tr>
+    </jx:otherwise>
+  </jx:choose>
+  <tr>
+    <td class="lenya-entry-caption">
+      <label for="dublincore.creator"><i18n:text>Creator</i18n:text>:</label></td>
+    <td>
+      <input class="lenya-form-element" type="text" name="dublincore.creator" value="${usecase.getParameter('dublincore.creator')}"/>
+    </td>
+  </tr>
+  <tr>
+    <td class="lenya-entry-caption">
+      <label for="dublincore.subject"><i18n:text>Subject</i18n:text>:</label></td>
+    <td>
+      <input class="lenya-form-element" type="text" name="dublincore.subject" value="${usecase.getParameter('dublincore.subject')}"/>
+    </td>
+  </tr>
+  <tr>
+    <td class="lenya-entry-caption">
+      <label for="dublincore.publisher"><i18n:text>Publisher</i18n:text>:</label></td>
+    <td>
+      <input class="lenya-form-element" type="text" name="dublincore.publisher" value="${usecase.getParameter('dublincore.publisher')}"/>
+    </td>
+  </tr>
+  <tr>
+    <td class="lenya-entry-caption">
+      <i18n:text>Date</i18n:text>:</td>
+    <td>
+      <jx:out value="${usecase.getParameter('dublincore.date')}"/>
+    </td>
+  </tr>
+  <tr>
+    <td class="lenya-entry-caption">
+      <label for="dublincore.rights"><i18n:text>Rights</i18n:text>:</label></td>
+    <td>
+      <input class="lenya-form-element" type="text" name="dublincore.rights" value="${usecase.getParameter('dublincore.rights')}"/>
+    </td>
+  </tr>
+  <jx:set var="resourceTypes" value="${usecase.getParameter('resourceTypes')}"/>
+  <jx:if test="${resourceTypes.size()  &gt; 0}">
+    <tr>
+      <td class="lenya-entry-caption">
+        <label for="sample"><i18n:text>Resource Type</i18n:text>:</label></td>
+      <td>
+        <select name="doctype">
+          <jx:forEach var="item" items="${resourceTypes}">
+            <jx:choose>
+              <jx:when test="${usecase.getParameter('doctype').equals(item)}">
+                <option value="${item}" selected="selected">${item}</option>
+              </jx:when>
+              <jx:otherwise>
+                <option value="${item}">${item}</option>
+              </jx:otherwise>
+            </jx:choose>
+          </jx:forEach>
+        </select>
+      </td>
+    </tr>
+  </jx:if>
+  <jx:set var="samples" value="${usecase.getParameter('samples')}"/>
+  <jx:if test="${samples.size() &gt; 0 &amp;&amp; !newLanguageVersion}">
+    <tr>
+      <td class="lenya-entry-caption" style="vertical-align: top">
+        <label for="sample"><i18n:text>Page Layout</i18n:text>:</label></td>
+      <td>
+        <jx:forEach var="item" items="${samples}">
+          <jx:choose>
+            <jx:when test="${usecase.getParameter('sample').equals(item)}">
+              <input type="radio" name="sample" value="${item}" checked="checked"/><i18n:text>${item}</i18n:text><br />
+            </jx:when>
+            <jx:otherwise>
+              <input type="radio" name="sample" value="${item}"/><i18n:text>${item}</i18n:text><br />
+            </jx:otherwise>
+          </jx:choose>
+        </jx:forEach>
+      </td>
+    </tr>
+  </jx:if>  
+  <tr>
+    <td class="lenya-entry-caption">* <i18n:text>required fields</i18n:text>
+    </td>
+  </tr>
+  
+</jx:template>

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/createLanguage.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/createLanguage.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/createLanguage.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/createLanguage.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,54 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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: createLanguage.jx 654822 2008-05-09 14:15:25Z andreas $ -->
+
+<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>New Language Version</i18n:text></page:title>
+  <page:body>
+    <div class="lenya-box">
+      <div class="lenya-box-title">
+        <i18n:text>New Language Version</i18n:text>
+      </div>
+
+      <jx:import uri="fallback://lenya/modules/usecase/templates/messages.jx"/>
+      
+      <div class="lenya-box-body">
+        <form action="${usecase.getSourceURL()}" method="post" id="form-create_language">
+          <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+          <input type="hidden" name="lenya.usecase" value="${request.getParameter('lenya.usecase')}"/>
+          <table class="lenya-table-noborder">
+            <jx:import uri="fallback://lenya/modules/sitemanagement/usecases/site/createFields.jx"/>
+            <tr>
+                <td/>
+                <td>
+                  <input i18n:attr="value" type="submit" name="submit" value="Create"/>
+                  &#160;
+                  <input i18n:attr="value" type="submit" name="cancel" value="Cancel"/>
+                </td>
+              </tr>
+          </table>
+        </form>
+      </div>
+    </div>
+  </page:body>
+</page:page>

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/cut.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/cut.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/cut.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/cut.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,66 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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: cut.jx 602876 2007-12-10 12:02:52Z andreas $ -->
+<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"
+           xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
+           >
+           
+  <page:title>
+    <i18n:text>Cut Document</i18n:text>
+  </page:title>
+  <page:body>
+    <div class="lenya-box">
+      <div class="lenya-box-title">
+        <i18n:text>Cut Document</i18n:text>
+      </div>
+      <div class="lenya-box-body">
+        <form method="get" action="" id="form-cut_document">
+          <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+          <input type="hidden" name="lenya.usecase" value="${request.getParameter('lenya.usecase')}"/>
+          <table class="lenya-table-noborder">
+            <tr>
+              <td>
+                <jx:import uri="fallback://lenya/modules/usecase/templates/messages.jx"/>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <br/>
+                <i18n:translate>
+                  <i18n:text key="cut-doc-to-clip?"/>
+                  <i18n:param>${usecase.getParameter('document').getLink().getLabel()}</i18n:param>
+                </i18n:translate>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <br/>
+                <input i18n:attr="value" type="submit" name="submit" value="Cut"/>
+                &#160;
+                <input i18n:attr="value" type="submit" name="cancel" value="Cancel"/>
+              </td>
+            </tr>
+          </table>
+        </form>
+      </div>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/delete.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/delete.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/delete.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/delete.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,96 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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: delete.jx 595167 2007-11-15 01:04:23Z andreas $ -->
+
+<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"/>
+          <jx:set var="document" value="${usecase.getParameter('document')}"/>
+          <jx:choose>
+            <jx:when test="${document.hasLink()}">
+              <i18n:param><q><jx:out value="${document.getLink().getLabel()}"/></q></i18n:param>
+            </jx:when>
+            <jx:otherwise>
+              <i18n:param>(not available)</i18n:param>
+            </jx:otherwise>
+          </jx:choose>
+        </i18n:translate>
+      </div>
+      <div class="lenya-box-body">
+        <form method="post" id="form-delete">
+          <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+          <input type="hidden" name="lenya.usecase" value="${request.getParameter('lenya.usecase')}"/>
+          <table class="lenya-table-noborder">
+            <tr>
+              <td>
+                <jx:import uri="fallback://lenya/modules/usecase/templates/messages.jx"/>
+              </td>
+            </tr>
+            <jx:choose>
+              <jx:when test="${usecase.hasErrors()}">
+                <tr>
+                  <td>
+                    <input i18n:attr="value" type="submit" name="cancel" value="Cancel"/>
+                  </td>
+                </tr>
+              </jx:when>
+              <jx:otherwise>
+                <tr>
+                  <td>
+                    <i18n:translate>
+                      <i18n:text key="delete-language-versions?"/>
+                      <i18n:param><strong><jx:out value="${usecase.getParameter('document').getLink().getLabel()}"/></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>
+                    <input i18n:attr="value" type="submit" name="submit" value="Delete"/>
+                    &#160;
+                    <input i18n:attr="value" type="submit" name="cancel" value="Cancel"/>
+                  </td>
+                </tr>
+              </jx:otherwise>
+            </jx:choose>
+          </table>
+        </form>
+      </div>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/deleteLanguage.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/deleteLanguage.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/deleteLanguage.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/deleteLanguage.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,69 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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: login.jx 123986 2005-01-03 15:23:11Z andreas $ -->
+
+<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>Remove Language Version</i18n:text></page:title>
+  <page:body>
+    <div class="lenya-box">
+      <div class="lenya-box-title">
+        <i18n:text>Remove Language Version</i18n:text>
+      </div>
+      <div class="lenya-box-body">
+        <form method="post" id="form-delete_language">
+          <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+          <input type="hidden" name="lenya.usecase" value="${request.getParameter('lenya.usecase')}"/>
+          <table class="lenya-table-noborder">
+            <tr>
+              <td colspan="2">
+                <jx:import uri="fallback://lenya/modules/usecase/templates/messages.jx"/>
+              </td>
+            </tr>
+              <tr>
+                <td class="lenya-entry-caption">
+                  <i18n:text>Document</i18n:text>: </td>
+                <td>
+                  <jx:out value="${usecase.getParameter('document').getLink().getLabel()}"/>
+                </td>
+              </tr>
+              <tr>
+                <td class="lenya-entry-caption">
+                  <i18n:text>Language</i18n:text>*: </td>
+                <td>
+                  <jx:out value="${usecase.getParameter('document').getLanguage()}"/>
+                </td>
+              </tr>
+              <tr>
+                <td/>
+                <td>
+                  <input i18n:attr="value" type="submit" name="submit" value="Delete"/>
+                  &#160;
+                  <input i18n:attr="value" type="submit" name="cancel" value="Cancel"/>
+                </td>
+              </tr>
+          </table>
+        </form>
+      </div>
+    </div>
+  </page:body>
+</page:page>

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/forceCheckIn.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/forceCheckIn.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/forceCheckIn.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/forceCheckIn.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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: delete.jx 499060 2007-01-23 15:50:56Z andreas $ -->
+
+<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>force-checkin</i18n:text></page:title>
+  <page:body>
+    <p>
+      <i18n:translate>
+        <i18n:text key="force-checkin-question"/>
+        <jx:set var="document" value="${usecase.getParameter('document')}"/>
+        <i18n:param><jx:out value="${document.getMetaData('http://purl.org/dc/elements/1.1/').getFirstValue('title')}"/></i18n:param>
+      </i18n:translate>
+    </p>
+    
+    <jx:import uri="fallback://lenya/modules/usecase/templates/messages.jx"/>
+    
+    <form method="post" action="" id="form-force_checkin">
+      <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+      <input type="hidden" name="lenya.usecase" value="${usecase.getName()}"/>
+      
+      <p>
+        <jx:if test="${!usecase.hasErrors()}">
+          <input i18n:attr="value" type="submit" name="submit" value="Submit"/>
+          &#160;
+        </jx:if>
+        <input i18n:attr="value" type="submit" name="cancel" value="Cancel"/>
+      </p>
+    </form>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/paste.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/paste.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/paste.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/paste.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,66 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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: paste.jx 602874 2007-12-10 11:57:14Z andreas $ -->
+<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"
+           xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
+           >
+           
+  <page:title>
+    <i18n:text>Paste Document</i18n:text>
+  </page:title>
+  <page:body>
+    <div class="lenya-box">
+      <div class="lenya-box-title">
+        <i18n:text>Paste Document</i18n:text>
+      </div>
+      <div class="lenya-box-body">
+        <form method="post" action="" id="form-paste">
+          <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+          <input type="hidden" name="lenya.usecase" value="${request.getParameter('lenya.usecase')}"/>
+          <table class="lenya-table-noborder">
+            <tr>
+              <td>
+                <jx:import uri="fallback://lenya/modules/usecase/templates/messages.jx"/>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <br/>
+                <i18n:translate>
+                  <i18n:text key="paste-doc-from-clip?"/>
+                  <i18n:param>${usecase.getParameter('clipboardLabel')}</i18n:param>
+                </i18n:translate>
+              </td>
+            </tr>
+            <tr>
+              <td>
+                <br/>
+                <input i18n:attr="value" type="submit" name="submit" value="Paste"/>
+                &#160;
+                <input i18n:attr="value" type="submit" name="cancel" value="Cancel"/>
+              </td>
+            </tr>
+          </table>
+        </form>
+      </div>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/restore.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/restore.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/restore.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/site/restore.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,67 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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: restore.jx 595167 2007-11-15 01:04:23Z andreas $ -->
+<page:page xmlns:jx="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('document').getLink().getLabel()}"/>
+            </q>
+          </i18n:param>
+        </i18n:translate>
+      </div>
+      <div class="lenya-box-body">
+        <jx:choose>
+          <jx:when test="${usecase.hasErrors()}">		
+            <jx:import uri="fallback://lenya/modules/usecase/templates/messages.jx"/>
+            <input type="button" class="lenya-form-element" onClick="location.href='${requesturi}';" value="Back"/>
+          </jx:when>
+          <jx:otherwise>
+            <form method="post" id="form-restore">
+              <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+              <input type="hidden" name="lenya.usecase" value="${request.getParameter('lenya.usecase')}"/>
+              <i18n:translate>
+                <i18n:text key="restore-doc?"/>
+                <i18n:param>
+                  <strong>
+                    <jx:out value="${usecase.getParameter('document').getLink().getLabel()}"/>
+                  </strong>
+                </i18n:param>
+              </i18n:translate>
+              <br/><br/>
+              <input i18n:attr="value" type="submit" name="submit" value="Restore"/>
+              &#160;
+              <input i18n:attr="value" type="submit" name="cancel" value="Cancel"/>
+            </form>
+          </jx:otherwise>
+        </jx:choose>	
+      </div>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/ac/ac.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/ac/ac.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/ac/ac.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/ac/ac.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,315 @@
+<?xml version="1.0"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You 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: ac.jx 156161 2005-03-04 15:23:21Z andreas $ -->
+<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">
+  
+  <jx:import uri="fallback://lenya/modules/sitemanagement/usecases/tab/head.jx"/>
+  <page:body>
+    <jx:import
+      uri="fallback://lenya/modules/sitemanagement/usecases/tab/sitetree.jx"/>
+    <jx:import uri="fallback://lenya/modules/usecase/templates/tabs.jx"/>
+    
+    <jx:set var="area" value="${usecase.getParameter('acArea')}"/>
+    
+    <div id="contentblock1" class="lenya-tab-sitetree">
+      
+      <h1><i18n:text><jx:out value="${usecase.getView().getTab().getLabel()}"/></i18n:text></h1>
+
+      <!--
+      <div class="lenya-box-toggled">
+        <div class="lenya-box-title"><i18n:text>Help</i18n:text></div>
+        <div class="lenya-box-body">
+          I guess a help text would be necessary for this page.
+          Would someone mind adding some hints? Or maybe we should add a
+          link to the documentation.
+        </div>
+      </div>
+      -->
+      
+      <table class="lenya-table-list-noborder">
+        <tr>
+          <td colspan="5" style="border-left: 0; border-right: 0; border-top: 0px;">
+            <jx:import uri="fallback://lenya/modules/usecase/templates/messages.jx"/>
+          </td>
+        </tr>
+        <tr>
+          <td colspan="5">
+            <jx:import
+              uri="fallback://lenya/modules/sitemanagement/usecases/tab/ac/ssl-form.jx"/>
+          </td>
+        </tr>
+        <tr>
+          <td colspan="5" style="border-left: 0; border-right: 0;">
+            <h4 style="margin: 30px 0 0 0;">
+              <i18n:text>Inherited credentials</i18n:text>
+            </h4>
+          </td>
+        </tr>
+        <tr>
+          <th><i18n:text>Type</i18n:text></th>
+          <th><i18n:text>ID</i18n:text></th>
+          <th><i18n:text>Role</i18n:text></th>
+          <th colspan="2"><i18n:text>Method</i18n:text></th>
+        </tr>
+        <jx:forEach var="credential"
+          items="${usecase.getParameter('parentCredentials')}">
+          <tr>
+            <td>
+              <i18n:text><jx:out value="${credential.getType()}"/></i18n:text>
+            </td>
+            <td>
+              <jx:out value="${credential.getAccreditableId()}"/>
+            </td>
+            <td>
+              <jx:out value="${credential.getRoleId()}"/>
+            </td>
+            <td colspan="2">
+              <i18n:text><jx:out value="${credential.getMethod()}"/></i18n:text>
+            </td>
+          </tr>
+        </jx:forEach>
+        
+        
+        <tr>
+          <td colspan="5" style="border-left: 0; border-right: 0;">
+            <h4 style="margin: 30px 0 0 0;">
+              <i18n:text>Subtree credentials</i18n:text>
+            </h4>
+          </td>
+        </tr>
+        <tr>
+          <th><i18n:text>Type</i18n:text></th>
+          <th><i18n:text>ID</i18n:text></th>
+          <th><i18n:text>Role</i18n:text></th>
+          <th><i18n:text>Method</i18n:text></th>
+          <th>&#160;
+          </th>
+        </tr>
+        <jx:forEach var="credential" varStatus="status"
+          items="${usecase.getParameter('subCredentials')}">
+          <form method="post" id="form-deleteSubCredential">
+            <input type="hidden" name="lenya.usecase" value="${usecase.getName()}"/>
+            <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+            <input type="hidden" name="submit" value="Submit"/>
+            <tr>
+              <td>
+                <i18n:text><jx:out value="${credential.getType()}"/></i18n:text>
+              </td>
+              <td>
+                <input type="hidden" name="${credential.getType()}" value="${credential.getAccreditableId()}"/>
+                <jx:out value="${credential.getAccreditableId()}"/>
+              </td>
+              <td>
+                <input type="hidden" name="role" value="${credential.getRoleId()}"/>
+                <jx:out value="${credential.getRoleId()}"/>
+              </td>
+              <td>
+                <input type="hidden" name="method" value="${credential.getMethod()}"/>
+                <i18n:text><jx:out value="${credential.getMethod()}"/></i18n:text>
+              </td>
+              <td>
+                <input type="submit"
+                  name="deleteCredential_${credential.getType()}"
+                  i18n:attr="value" value="Delete"/>
+                <jx:if test="${status.count>1}">
+                  <input type="submit"
+                    name="upCredential_${credential.getType()}"
+                    i18n:attr="value" value="Move Up"/>
+                </jx:if>
+                <jx:if test="${!status.last}">
+                  <input type="submit"
+                    name="downCredential_${credential.getType()}"
+                    i18n:attr="value" value="Move Down"/>
+                </jx:if>
+              </td>
+            </tr>
+          </form>
+        </jx:forEach>
+        
+        <tr>
+          <td colspan="5" style="border-left: 0; border-right: 0; border-top: 0px;">
+            <h4 style="margin: 30px 0 0 0;">
+              <i18n:text>New subtree credential</i18n:text>
+            </h4>
+          </td>
+        </tr>
+        <tr>
+          <th><i18n:text>Type</i18n:text></th>
+          <th><i18n:text>ID</i18n:text></th>
+          <th><i18n:text>Role</i18n:text></th>
+          <th><i18n:text>Method</i18n:text></th>
+          <th>&#160;
+          </th>
+        </tr>
+        <tr>
+          
+          <form method="post" id="form-addCredential_user">
+            <input type="hidden" name="lenya.usecase" value="${usecase.getName()}"/>
+            <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+            <input type="hidden" name="submit" value="Submit"/>
+            <td>
+              <i18n:text>user</i18n:text>
+            </td>
+            <td>
+              <select name="user" class="lenya-form-element-verynarrow">
+                <jx:forEach var="user" items="${usecase.getParameter('users')}">
+                  <option value="${user}">
+                    <jx:out value="${user}"/>
+                  </option>
+                </jx:forEach>
+              </select>
+            </td>
+            <td>
+              <select name="role" class="lenya-form-element-verynarrow">
+                <jx:forEach var="role" items="${usecase.getParameter('roles')}">
+                  <option value="${role}">
+                    <jx:out value="${role}"/>
+                  </option>
+                </jx:forEach>
+              </select>
+            </td>
+            <td>
+              <select name="method" class="lenya-form-element-verynarrow">
+                <option value="deny"><i18n:text>deny</i18n:text></option>
+                <option value="grant"><i18n:text>grant</i18n:text></option>
+              </select>
+            </td>
+            <td>
+              <input i18n:attr="value" type="submit" name="addCredential_user"
+                value="Add"/>
+            </td>
+          </form>
+          
+        </tr>
+        <tr>
+          <form method="post" id="form-addCredential_group">
+            <input type="hidden" name="lenya.usecase" value="${usecase.getName()}"/>
+            <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+            <input type="hidden" name="submit" value="Submit"/>
+            <td>
+              <i18n:text>group</i18n:text>
+            </td>
+            <td>
+              <select name="group" class="lenya-form-element-verynarrow">
+                <jx:forEach var="group" items="${usecase.getParameter('groups')}">
+                  <option value="${group}">
+                    <jx:out value="${group}"/>
+                  </option>
+                </jx:forEach>
+              </select>
+            </td>
+            <td>
+              <select name="role" class="lenya-form-element-verynarrow">
+                <jx:forEach var="role" items="${usecase.getParameter('roles')}">
+                  <option value="${role}">
+                    <jx:out value="${role}"/>
+                  </option>
+                </jx:forEach>
+              </select>
+            </td>
+            <td>
+              <select name="method" class="lenya-form-element-verynarrow">
+                <option value="deny"><i18n:text>deny</i18n:text></option>
+                <option value="grant"><i18n:text>grant</i18n:text></option>
+              </select>
+            </td>
+            <td>
+              <input i18n:attr="value" type="submit" name="addCredential_group"
+                value="Add"/>
+            </td>
+          </form>
+        </tr>
+        
+        <tr>
+          <form method="post" id="form-addCredential_ipRange">
+            <input type="hidden" name="lenya.usecase" value="${usecase.getName()}"/>
+            <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+            <input type="hidden" name="submit" value="Submit"/>
+            <td>
+              <i18n:text>IP Range</i18n:text>
+            </td>
+            <td>
+              <select name="ipRange" class="lenya-form-element-verynarrow">
+                <jx:forEach var="ipRange" items="${usecase.getParameter('ipRanges')}">
+                  <option value="${ipRange}">
+                    <jx:out value="${ipRange}"/>
+                  </option>
+                </jx:forEach>
+              </select>
+            </td>
+            <td>
+              <select name="role" class="lenya-form-element-verynarrow">
+                <jx:forEach var="role" items="${usecase.getParameter('roles')}">
+                  <option value="${role}">
+                    <jx:out value="${role}"/>
+                  </option>
+                </jx:forEach>
+              </select>
+            </td>
+            <td>
+              <select name="method" class="lenya-form-element-verynarrow">
+                <option value="deny"><i18n:text>deny</i18n:text></option>
+                <option value="grant"><i18n:text>grant</i18n:text></option>
+              </select>
+            </td>
+            <td>
+              <input i18n:attr="value" type="submit" name="addCredential_ipRange"
+                value="Add"/>
+            </td>
+          </form>
+        </tr>
+        
+        <tr>
+          <form method="post" id="form-addCredential_world">
+            <input type="hidden" name="lenya.usecase" value="${usecase.getName()}"/>
+            <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+            <input type="hidden" name="submit" value="Submit"/>
+            <td>
+              <i18n:text>world</i18n:text>
+            </td>
+            <td/>
+            <td>
+              <select name="role" class="lenya-form-element-verynarrow">
+                <jx:forEach var="role" items="${usecase.getParameter('roles')}">
+                  <option value="${role}">
+                    <jx:out value="${role}"/>
+                  </option>
+                </jx:forEach>
+              </select>
+            </td>
+            <td>
+              <select name="method" class="lenya-form-element-verynarrow">
+                <option value="deny"><i18n:text>deny</i18n:text></option>
+                <option value="grant"><i18n:text>grant</i18n:text></option>
+              </select>
+            </td>
+            <td>
+              <input i18n:attr="value" type="submit" name="addCredential_world"
+                value="Add"/>
+            </td>
+          </form>
+        </tr>
+        
+      </table>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/ac/ssl-form.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/ac/ssl-form.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/ac/ssl-form.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/ac/ssl-form.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,64 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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: ac.jx 156161 2005-03-04 15:23:21Z andreas $ -->
+<jx:template
+  xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
+  xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+  xmlns="http://www.w3.org/1999/xhtml"
+  name="">
+<jx:set var="area" value="${usecase.getParameter('document').getArea()}"/>
+<form method="POST" name="form_ssl_${area}" id="form_ssl_${area}">
+  <input type="hidden" name="lenya.usecase" value="${usecase.getName()}"/>
+  <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+  <input type="hidden" name="lenya.submit" value="ok"/>
+  <input type="hidden" name="change_ssl" value="true"/>
+  <jx:set var="ssl" value="${usecase.getParameter('ssl')}"/>
+  <jx:set var="ancestorSsl" value="${usecase.getParameter('ancestorSsl')}"/>
+  <jx:choose>
+    <jx:when test="${ssl.equals('true') || ancestorSsl.equals('true')}">
+      <jx:choose>
+        <jx:when test="${ancestorSsl.equals('true')}">
+          <input type="checkbox" name="ssl" checked="checked" disabled="disabled">
+            <i18n:text>SSL Encryption</i18n:text>
+          </input>
+        </jx:when>
+        <jx:otherwise>
+          <input type="checkbox" name="ssl" onchange="document.forms.form_ssl_${area}.submit()" checked="checked">
+            <i18n:text>SSL Encryption</i18n:text>
+          </input>
+        </jx:otherwise>
+      </jx:choose>
+    </jx:when>
+    <jx:otherwise>
+      <jx:choose>
+        <jx:when test="${ancestorSsl.equals('true')}">
+          <input type="checkbox" name="ssl" disabled="disabled">
+            <i18n:text>SSL Encryption</i18n:text>
+          </input>
+        </jx:when>
+        <jx:otherwise>
+          <input type="checkbox" name="ssl" onchange="document.forms.form_ssl_${area}.submit()">
+            <i18n:text>SSL Encryption</i18n:text>
+          </input>
+        </jx:otherwise>
+      </jx:choose>
+    </jx:otherwise>
+  </jx:choose>
+</form>
+</jx:template>
\ No newline at end of file

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acArchive.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acArchive.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acArchive.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acArchive.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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: ac.jx 156161 2005-03-04 15:23:21Z andreas $ -->
+<jx:import uri="fallback://lenya/modules/sitemanagement/usecases/tab/ac/ac.jx"
+  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"/>

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acAuthoring.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acAuthoring.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acAuthoring.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acAuthoring.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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: ac.jx 156161 2005-03-04 15:23:21Z andreas $ -->
+<jx:import uri="fallback://lenya/modules/sitemanagement/usecases/tab/ac/ac.jx"
+  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"/>

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acLive.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acLive.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acLive.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acLive.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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: ac.jx 156161 2005-03-04 15:23:21Z andreas $ -->
+<jx:import uri="fallback://lenya/modules/sitemanagement/usecases/tab/ac/ac.jx"
+  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"/>

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acTrash.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acTrash.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acTrash.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/acTrash.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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: ac.jx 156161 2005-03-04 15:23:21Z andreas $ -->
+<jx:import uri="fallback://lenya/modules/sitemanagement/usecases/tab/ac/ac.jx"
+  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"/>

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/assets.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/assets.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/assets.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/assets.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,91 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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: assets.jx 667017 2008-06-12 09:47:19Z andreas $ -->
+
+<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" >
+
+  <jx:import uri="fallback://lenya/modules/sitemanagement/usecases/tab/head.jx"/>
+  <page:body>
+    <jx:import uri="fallback://lenya/modules/sitemanagement/usecases/tab/sitetree.jx"/>
+    <jx:import uri="fallback://lenya/modules/usecase/templates/tabs.jx"/>
+    <div id="contentblock1" class="lenya-tab-sitetree">
+      
+      <h1><i18n:text>Assets</i18n:text></h1>
+      
+      <jx:import uri="fallback://lenya/modules/usecase/templates/messages.jx"/>
+
+      <jx:choose>
+        <jx:when test="${usecase.getParameter('resourceDocuments').size() == 0}">
+          <i18n:text>no-assets</i18n:text>
+        </jx:when>
+        <jx:otherwise>
+          <table class="lenya-table-list-noborder">
+            <tr>
+              <th><i18n:text>Title</i18n:text></th>
+              <th><i18n:text>Preview</i18n:text></th>
+              <th><i18n:text>File Size</i18n:text></th>
+              <th><i18n:text>Dimension (w x h)</i18n:text></th>
+              <th><i18n:text>Creation Date</i18n:text></th>
+            </tr>
+            <jx:forEach var="doc" items="${usecase.getParameter('resourceDocuments')}">
+              <tr>
+                <jx:set var="title" value="${doc.getMetaData('http://purl.org/dc/elements/1.1/').getFirstValue('title')}"/>
+                <td>
+                  <a href="${doc.getCanonicalWebappURL()}"><jx:out value="${title}"/></a>
+                </td>
+                <td>        
+                  <jx:set var="mimeType" value="${doc.getMimeType()}"/>
+                  <jx:if test="${mimeType.startsWith('image/')}">
+                    <jx:set var="extension" value="${doc.getSourceExtension()}"/>
+                    <jx:set var="url" value="${doc.getCanonicalWebappURL()}"/>
+                    <jx:set var="imageUrl" value="${url.replaceFirst('\.html', '\.' + extension)}"/>
+                    <img src="${imageUrl}"
+                      style="height: 32px; vertical-align: middle;"/>&#160;
+                  </jx:if>
+                </td>
+                <td align="right"><jx:out value="${doc.getContentLength() / 1000}"/> kB</td>
+                <td align="right">
+                  <jx:if test="${mimeType.startsWith('image/')}">
+                    <jx:set var="mediaMeta" value="${doc.getMetaData('http://apache.org/lenya/metadata/media/1.0')}"/>
+                    <jx:out value="${mediaMeta.getFirstValue('width')}"/> x <jx:out value="${mediaMeta.getFirstValue('height')}"/>
+                  </jx:if>
+                </td>
+                <td align="right"><jx:out value="${java.text.DateFormat.getDateInstance().format(doc.getLastModified())}"/></td>
+              </tr> 
+            </jx:forEach>
+          </table>
+        </jx:otherwise>
+      </jx:choose>
+      
+     <jx:if test="${usecase.getParameter('document').getArea().equals('authoring')
+       &amp;&amp; !usecase.getParameter('uploadEnabled').equals(Packages.java.lang.Boolean.FALSE)}">
+      <form method="GET" id="form-add_asset" style="margin-top: 20px">
+        <input type="hidden" name="lenya.usecase" value="resource.create"/>
+        <input type="hidden" name="doctype" value="resource"/>
+        <input type="hidden" name="lenya.exitUsecase" value="tab.assets"/>
+        <input type="hidden" name="lenya.exitUri" value="${usecase.getParameter('document').getCanonicalWebappURL()}"/>
+        <input i18n:attr="value" name="submit" type="submit" value="New Asset"/>
+       </form>
+     </jx:if>
+    </div>
+  </page:body>
+</page:page>
\ No newline at end of file

Added: lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/head.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/head.jx?rev=1033150&view=auto
==============================================================================
--- lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/head.jx (added)
+++ lenya/trunk/org.apache.lenya.core.sitemanagement/src/main/resources/COB-INF/jx/tab/head.jx Tue Nov  9 18:49:14 2010
@@ -0,0 +1,44 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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: overview.jx 123960 2005-01-03 12:39:05Z andreas $ -->
+
+<jx:template
+  xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
+  xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0" 
+  xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+  xmlns:proxy="http://apache.org/lenya/proxy/1.0"
+  xmlns="http://www.w3.org/1999/xhtml"
+  name="">
+  
+  <page:head>
+    <jx:set var="pubId" value="${usecase.getParameter('document').getPublication().getId()}"/>
+    <jx:set var="area" value="${usecase.getParameter('document').getArea()}"/>
+    <jx:set var="language" value="${usecase.getParameter('document').getLanguage()}"/>
+    <script src="/modules/sitetree/javascript/tree.js"/>
+    <script src="/modules/sitetree/javascript/lenyatree.js"/>
+    <script src="/modules/sitetree/javascript/navtree.js"/>
+    <script src="/modules/sitemanagement/javascript/lenyaTabs.js"/>
+    <script type="text/javascript">
+      djConfig = { isDebug: false, bindEncoding: "UTF-8" };
+      URL = "<proxy:url href="${usecase.getParameter('private.sourceUrl')}"/>";
+    </script>
+    <script type="text/javascript" src="/modules/menubar/dojo/dojo.js"/>
+    <script src="/modules/sitemanagement/javascript/metadata.js"/>
+  </page:head>
+</jx:template>
\ 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