Changeset 640


Ignore:
Timestamp:
11/21/11 02:38:41 (6 months ago)
Author:
niko
Message:

template editor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/trunk/xsl/Cms/templateEditor.xsl

    r554 r640  
    77         
    88        <xsl:template match="/"> 
     9                <xsl:variable name="prepath"> 
     10                        <xsl:choose> 
     11                                <xsl:when test="/CORINIS/CmsAdmin/modifyTemplate"> 
     12                        <xsl:value-of select="'../'"/> 
     13                                </xsl:when> 
     14                                <xsl:otherwise> 
     15                                        <xsl:value-of select="''"/> 
     16                                </xsl:otherwise> 
     17                        </xsl:choose> 
     18                </xsl:variable> 
    919                <xsl:text disable-output-escaping="yes"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD xhtml 1.0//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml.dtd">]]></xsl:text> 
    1020                <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> 
    1121                        <head> 
    12                                 <xsl:call-template name="htmlHeaders"/> 
     22                                <xsl:call-template name="htmlHeaders"> 
     23                                        <xsl:with-param name="prePath" select="$prepath"/> 
     24                                </xsl:call-template> 
    1325                                 
    1426                                <title>Corinis Administration - Cms</title> 
    1527                                <!-- module js --> 
    16                                 <script type="text/javascript" src="static/Cms/templateEditor.js"><xsl:text> </xsl:text></script> 
     28                                <link rel="stylesheet" href="{$prepath}static/Cms/template/lib/codemirror.css"><xsl:text> </xsl:text></link> 
     29                                <link rel="stylesheet" href="{$prepath}static/Cms/template/theme/default.css"><xsl:text> </xsl:text></link> 
     30                                <script type="text/javascript" src="{$prepath}static/Cms/template/lib/codemirror.js"><xsl:text> </xsl:text></script> 
     31                                <script type="text/javascript" src="{$prepath}static/Cms/template/mode/xml/xml.js"><xsl:text> </xsl:text></script> 
     32                                <script type="text/javascript" src="{$prepath}static/Cms/templateEditor.js"><xsl:text> </xsl:text></script> 
    1733                        </head> 
    1834                        <body style="background-color:#fff"> 
    19                                 <form class="text" type="post" method="post" name="quelltext"> 
    20                                         <input type="hidden" name="CmsAdmin_modifyTemplateEntry" value="true"/>                                          
    21                                         <table width="100%" height="100%" border="0"> 
    22                                                 <tr><td> 
    23                                                         <div style="width:100%;height:100%"> 
    24                                                                 <textarea onblur="saved=false;" name="CmsAdmin_content" wrap="off" style="width:100%;height:100%"> 
    25                                                                         $CONTENT; 
    26                                                                 </textarea> 
    27                                                         </div> 
    28                                                 </td></tr></table> 
     35                                File <xsl:value-of select="//TEMPLATE"/>  
     36                                <form class="text" type="post" method="post" name="sourceForm" id="sourceForm" action="./CmsAdmin:modifyTemplate/CmsAdmin:getDocument?xsl=Cms/templateEditor.xsl&amp;CmsAdmin_modelType=1"> 
     37                                        <input type="hidden" name="CmsAdmin_modifyTemplateEntry" value="true"/> 
     38                                        <input type="hidden" name="CmsAdmin_id" value="-1" id="docid"/> 
     39                                        <textarea onblur="saved=false;" name="CmsAdmin_content" id="code" rows="40">$CONTENT;</textarea> 
     40                                        <input type="submit"/> 
    2941                                </form> 
    3042                                 
    31                                 <form class="text" type="post" name="clean"> 
    32                                         <input type="hidden" name="CmsAdmin_showTidy" value="T"/> 
    33                                         <input type="hidden" name="field" value="clean version"/>  
    34                                 </form> 
    3543                                <form class="text" type="post" name="indent"> 
    3644                                        <input type="hidden" name="CmsAdmin_indent" value="T"/> 
Note: See TracChangeset for help on using the changeset viewer.