File:  [Repository] / MPIWGWeb / zpt / Attic / edit_MPIWGProjectNeu.zpt
Revision 1.1.2.3: download - view: text, annotated - select for diffs - revision graph
Thu Sep 15 12:57:41 2005 UTC (18 years, 9 months ago) by dwinter
Branches: r2
new editing environment for project pages

    1: <html>
    2: <head>
    3: <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" use-macro="here/kupuEditor/kupumacros/macros/head">
    4: <metal:macros fill-slot="bootstrap-editor">
    5: <script type="text/javascript" src="/kupuEditor/kupuinit_form.js"> </script>
    6: <script type="text/javascript" src="/kupuEditor/kupustart_form.js"> </script>
    7: 
    8: </metal:macros>
    9: </metal:macros>
   10: <style type="text/css">
   11: <!--
   12: .add-nav {
   13: font-weight:bold;
   14: padding-left:8px;
   15: }
   16: -->
   17: </style>
   18: <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   19: </head>
   20: 
   21: <!--<body onload="kupu = startKupu();addEventHandler(window.document.getElementById('kupu-preview-button'),'click',preparePreviewForm,kupu);">-->
   22: <body onload="kupu = startKupu();">
   23: <h2>Edit: <i tal:content="python:here.getContent('WEB_title')"/></h2>
   24: <p><a class="add-nav">Project Description</a> <a class="add-nav" href="managePublications">Publications</a><a class="add-nav" href="manageImages">Images at the margin</a><a class="add-nav" href="editMPIWGDisciplinesThemesEditor">Themes and disciplines</a><a class="add-nav" href="editMPIWGBasisEditor">Additional information</a></p>
   25: <hr>
   26: <h3>Project description</h3>
   27: <form action="saveEditedContent" method="POST">
   28: <span class="kupu-tb-buttongroup">
   29:   <button type="button"
   30:           id="kupu-preview-button" title="preview: alt-p"
   31:           accesskey="p">Preview</button>
   32:    </span>
   33: 
   34: <span class="kupu-tb-buttongroup">
   35:       <button xmlns:i18n="http://xml.zope.org/namespaces/i18n" type="button" id="kupu-save-button" title="save: alt-s" i18n:attributes="title" accesskey="s">Publish</button>
   36: </span>
   37: 
   38: 
   39: <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" use-macro="here/kupuEditor/kupumacros/macros/xmlconfig">
   40: <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" fill-slot="dst">saveEditedContent</metal:macros>
   41: </metal:macros>
   42: <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" use-macro="here/kupuEditor/kupumacros/macros/fulleditor">
   43: <metal:macros fill-slot="toolbox_properties">
   44:  <div class="kupu-toolbox" id="kupu-toolbox-properties">
   45:       <input type="hidden" class="wide" id="kupu-properties-title"/>
   46:       <input type="hidden" class="wide" id="kupu-properties-description"/> 
   47:    </div>
   48: </metal:macros>
   49: <metal:macros fill-slot="toolbox_tables">
   50:  <div class="kupu-toolbox" id="kupu-toolbox-properties">
   51:       <input type="hidden" class="wide" id="kupu-table-classchooser"/>
   52: 
   53:       <input type="hidden" class="wide" id="kupu-table-newrows"/> 
   54:       <input type="hidden" class="wide" id="kupu-table-newcols"/> 
   55:    </div>
   56: </metal:macros>
   57: <metal:macros fill-slot="editorframe">
   58: <tal:block tal:condition="not:python:here.REQUEST.get('fromPreview',None)"> 
   59: <iframe class="kupu-editor-iframe" id="kupu-editor" frameborder="0" scrolling="auto" src="fulldoc" tal:attributes="src python:here.absolute_url()+'/getWebProject_description'">
   60: </iframe>
   61: </tal:block>
   62: <tal:block tal:condition="python:here.REQUEST.get('fromPreview',None)"> 
   63: <iframe class="kupu-editor-iframe" id="kupu-editor" frameborder="0" scrolling="auto" src="fulldoc" tal:attributes="src python:here.absolute_url()+'/previewTemplate/getWebProject_description'">
   64: </iframe>
   65: </tal:block>
   66: </metal:macros>
   67: 
   68: </metal:macros>
   69: 
   70: </form>
   71: </body>
   72: </html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>