svn commit: r565504 - /lenya/trunk/src/modules/editors/xslt/insertLink.xsl

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: rfrovarp
Date: Mon Aug 13 13:28:41 2007
New Revision: 565504

URL: http://svn.apache.org/viewvc?view=rev&rev=565504
Log:
Cleans up the look of the insert link display. Wraps the form inside of the standard box that is used everywhere else. Also goes back to the side by side layout. Can easily be changed to top to bottom if desired. Most of the changes are formatting as a result of the added divs. Thanks to Jonathan Albers for the help.

Modified:
    lenya/trunk/src/modules/editors/xslt/insertLink.xsl

Modified: lenya/trunk/src/modules/editors/xslt/insertLink.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/editors/xslt/insertLink.xsl?view=diff&rev=565504&r1=565503&r2=565504
==============================================================================
--- lenya/trunk/src/modules/editors/xslt/insertLink.xsl (original)
+++ lenya/trunk/src/modules/editors/xslt/insertLink.xsl Mon Aug 13 13:28:41 2007
@@ -48,7 +48,7 @@
   <xsl:template match="/">
     <page:page>
       <page:title><i18n:text>insertLink.heading</i18n:text></page:title>
-      <page:body>
+      <page:body style="width:auto;">
 
         <script type="text/javascript" src="/modules/sitetree/javascript/tree.js">&#160;</script>
         <script type="text/javascript" src="/modules/sitetree/javascript/lenyatree.js">&#160;</script>
@@ -68,82 +68,87 @@
           AREA_BASE_PATH = "<xsl:value-of select="$areaBasePath"/>";
         </script>
 
-        <div id="lenya-info-treecanvas" style="width: 30%; float:left;">
+        <div id="lenya-info-treecanvas" style="width: 250px;">
           <div class="lenya-tabs">
             <xsl:call-template name="languageTabs">
               <xsl:with-param name="languages" select="$languages"/>
             </xsl:call-template>
           </div>
           <div id="lenya-info-tree">
-            <div id="tree">
+            <div id="tree">&#160;
             </div>
           </div>
         </div>
-        
-        <form name="insertLink">
+        <div class="lenya-box" style="margin-left: 260px;">
+          <div class="lenya-box-title"><i18n:text>insertLink.heading</i18n:text></div>
+          <div class="lenya-box-body">
 
-          <table class="lenya-table-noborder">
-            <tr>
-              <td colspan="2" class="lenya-form-caption">
-                <i18n:text>insertLink.clickTreeOrType</i18n:text>
-              </td>
-            </tr>
-            <tr>
-              <td colspan="2">&#160;</td>
-            </tr>
-            <tr>
-              <td class="lenya-form-caption">
-                <i18n:text>insertLink.URL</i18n:text>:
-              </td>
-              <td>
-                <input class="lenya-form-element" type="text" name="url"/>
-              </td>
-            </tr>
-            <tr>
-              <td class="lenya-form-caption">
-                <i18n:text>insertLink.title</i18n:text>:
-              </td>
-              <td>
-                <input class="lenya-form-element" type="text" name="title"/>
-              </td>
-            </tr>
-            <tr>
-              <td class="lenya-form-caption">
-                <i18n:text>insertLink.text</i18n:text>:</td>
-              <td>
-                <input class="lenya-form-element" type="text" name="text"/>
-              </td>
-            </tr>
-            <tr>
-              <td colspan="2">&#160;</td>
-            </tr>
-            <tr>
-              <td colspan="2">
-                <input 
-                  i18n:attr="value" 
-                  type="submit" 
-                  value="insertLink.submit" 
-                  onclick="org.apache.lenya.editors.handleFormSubmit('insertLink')"
-                />
-                &#160;
-                <input 
-                  i18n:attr="value"
-                  type="submit"
-                  value="Cancel" 
-                  name="cancel"
-                  onclick="window.close()"
-                />
-                &#160;
-                <input 
-                  i18n:attr="value" 
-                  type="button" 
-                  value="insertAsset.createResource" 
-                  onclick="location.href='?lenya.usecase=editors.createResource&amp;doctype=resource&amp;lenya.exitUsecase=editors.insertLink'"
-                />
-              </td>
-            </tr>
-          </table>
-        </form>
+            <form name="insertLink">
+
+              <table class="lenya-table-noborder">
+                <tr>
+                  <td colspan="2" class="lenya-form-caption">
+                    <i18n:text>insertLink.clickTreeOrType</i18n:text>
+                  </td>
+                </tr>
+                <tr>
+                  <td colspan="2">&#160;</td>
+                </tr>
+                <tr>
+                  <td class="lenya-form-caption">
+                    <i18n:text>insertLink.URL</i18n:text>:
+                  </td>
+                  <td>
+                    <input class="lenya-form-element" type="text" name="url"/>
+                  </td>
+                </tr>
+                <tr>
+                  <td class="lenya-form-caption">
+                    <i18n:text>insertLink.title</i18n:text>:
+                  </td>
+                  <td>
+                    <input class="lenya-form-element" type="text" name="title"/>
+                  </td>
+                </tr>
+                <tr>
+                  <td class="lenya-form-caption">
+                    <i18n:text>insertLink.text</i18n:text>:</td>
+                  <td>
+                    <input class="lenya-form-element" type="text" name="text"/>
+                  </td>
+                </tr>
+                <tr>
+                  <td colspan="2">&#160;</td>
+                </tr>
+                <tr>
+                  <td colspan="2">
+                    <input 
+                      i18n:attr="value" 
+                      type="submit" 
+                      value="insertLink.submit" 
+                      onclick="org.apache.lenya.editors.handleFormSubmit('insertLink')"
+                    />
+                    &#160;
+                    <input 
+                      i18n:attr="value"
+                      type="submit"
+                      value="Cancel" 
+                      name="cancel"
+                      onclick="window.close()"
+                    />
+                    &#160;
+                    <input 
+                      i18n:attr="value" 
+                      type="button" 
+                      value="insertAsset.createResource" 
+                      onclick="location.href='?lenya.usecase=editors.createResource&amp;doctype=resource&amp;lenya.exitUsecase=editors.insertLink'"
+                    />
+                  </td>
+                </tr>
+              </table>
+            </form>
+          </div>
+        </div>
       </page:body>
     </page:page>
   </xsl:template>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.