Mercurial > hg > MPIWGWeb
diff zpt/staff/edit_profile.zpt @ 170:485bf377913a
fix staff editing pages.
author | casties |
---|---|
date | Fri, 07 Jun 2013 16:29:34 +0200 |
parents | ee79f6ba8d01 |
children | 71c2d76f09b5 |
line wrap: on
line diff
--- a/zpt/staff/edit_profile.zpt Fri Jun 07 12:47:11 2013 +0200 +++ b/zpt/staff/edit_profile.zpt Fri Jun 07 16:29:34 2013 +0200 @@ -1,84 +1,65 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:use-macro="here/mainEditFile/macros/page"> -<metal:x metal:fill-slot="javascript" - tal:define="global onload string:kupu = startKupu();"> -<metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" use-macro="here/kupuEditor/kupumacros/macros/head"> - <metal:macros fill-slot="bootstrap-editor"> - <script type="text/javascript" src="/kupuEditor/kupuinit_form.js"> </script> - <script type="text/javascript" src="/kupuEditor/kupustart_form.js"> </script> +<html xmlns:metal="http://xml.zope.org/namespaces/metal" xmlns:tal="http://xml.zope.org/namespaces/tal" + metal:use-macro="here/mainEditFile/macros/page"> +<metal:x metal:fill-slot="javascript" tal:define="global onload string:kupu = startKupu();"> + <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" use-macro="here/kupuEditor/kupumacros/macros/head"> + <metal:macros fill-slot="bootstrap-editor"> + <script type="text/javascript" src="/kupuEditor/kupuinit_form.js"> + + </script> + <script type="text/javascript" src="/kupuEditor/kupustart_form.js"> + + </script> + </metal:macros> </metal:macros> -</metal:macros> </metal:x> <body> - <tal:block metal:fill-slot="navsel" tal:define="global menusel string:cv"/> + <tal:block metal:fill-slot="navsel" tal:define="global menusel string:cv" /> -<tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> -<form action="" method="post"> -<input type="hidden" name="key" tal:attributes="value here/content/key"> -<tal:x condition="python:(here.content.profile is None) | (here.content.profile=='')"> -<p>You haven't edited your profile yet, this entry is generated automatically from you old CV entry, your current work entry, and research interests entry from you old profile! </p> - -</tal:x> - - + <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> + <form tal:attributes="action string:$root/editProfile" method="post"> + <input type="hidden" name="key" tal:attributes="value here/content/key"/> + <tal:x tal:condition="python:(here.content.profile is None) | (here.content.profile=='')"> + <p>You haven't edited your profile yet, this entry is generated automatically from you old CV entry, your current work + entry, and research interests entry from you old profile!</p> + </tal:x> - <div><span class="kupu-tb-buttongroup"> - <button type="button" id="kupu-preview-button" title="preview: alt-p" accesskey="p">Preview</button> - </span> - <span class="kupu-tb-buttongroup"> - <button type="button" id="kupu-save-button" title="save: alt-s" accesskey="s">Publish</button> - </span> - </div> - <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" use-macro="here/kupuEditor/kupumacros/macros/xmlconfig"> - <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" fill-slot="dst">saveEditedContent</metal:macros> - </metal:macros> - <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" use-macro="here/kupuEditor/kupumacros/macros/fulleditor"> - - <!-- <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" fill-slot="tb_select_styles"> - <span id="kupu-tb-styles"/> - </metal:macros> - <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" fill-slot="buttongroup_subsuper"> - <span id="kupu-bg-subsuper"/> - <span id="kupu-subscript-button"/> - <span id="kupu-superscript-button"/> - </metal:macros> - - <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" fill-slot="buttongroup_justify"> - <span id="kupu-justifyleft-button"/> - <span id="kupu-justifycenter-button"/> - <span id="kupu-justifyright-button"/> - </metal:macros> - <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" fill-slot="buttongroup_list"> - <span id="kupu-list-ol-addbutton"/> - <span id="kupu-list-ul-addbutton"/> - - </metal:macros> - <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" fill-slot="buttongroup_indent"/> - --> - - <metal:macros fill-slot="toolbox_properties"> - <div class="kupu-toolbox" id="kupu-toolbox-properties"><input type="hidden" class="wide" id="kupu-properties-title" /> <input - type="hidden" class="wide" id="kupu-properties-description" /></div> - </metal:macros> - <metal:macros fill-slot="toolbox_tables"> - <div class="kupu-toolbox" id="kupu-toolbox-properties"><input type="hidden" class="wide" id="kupu-table-classchooser" /> <input - type="hidden" class="wide" id="kupu-table-newrows" /> <input type="hidden" class="wide" id="kupu-table-newcols" /></div> - </metal:macros> - <metal:macros fill-slot="editorframe"> + <div> + <span class="kupu-tb-buttongroup"> + <button type="button" id="kupu-preview-button" title="preview: alt-p" accesskey="p">Preview</button> + </span> + <span class="kupu-tb-buttongroup"> + <button type="button" id="kupu-save-button" title="save: alt-s" accesskey="s">Publish</button> + </span> + </div> - <iframe class="kupu-editor-iframe" id="kupu-editor" frameborder="0" scrolling="auto" src="fulldoc" - tal:attributes="src python:here.REQUEST['URL1']+'/'+here.getStaffURL()+'/getProfile?time='+here.REQUEST.get('time','0')"> - </iframe> - - </metal:macros> - </metal:macros> - - - </form> - - -<br/> -</tal:block> + <metal:macros use-macro="here/kupuEditor/kupumacros/macros/xmlconfig"> + <metal:macros fill-slot="dst">saveEditedContent</metal:macros> + </metal:macros> + <metal:macros use-macro="here/kupuEditor/kupumacros/macros/fulleditor"> + <metal:macros fill-slot="toolbox_properties"> + <div class="kupu-toolbox" id="kupu-toolbox-properties"> + <input type="hidden" class="wide" id="kupu-properties-title" /> + <input type="hidden" class="wide" id="kupu-properties-description" /> + </div> + </metal:macros> + <metal:macros fill-slot="toolbox_tables"> + <div class="kupu-toolbox" id="kupu-toolbox-properties"> + <input type="hidden" class="wide" id="kupu-table-classchooser" /> + <input type="hidden" class="wide" id="kupu-table-newrows" /> + <input type="hidden" class="wide" id="kupu-table-newcols" /> + </div> + </metal:macros> + + <metal:macros fill-slot="editorframe"> + <iframe class="kupu-editor-iframe" id="kupu-editor" frameborder="0" scrolling="auto" src="fulldoc" + tal:attributes="src python:here.REQUEST['URL1']+'/'+here.getStaffURL()+'/getProfile?time='+here.REQUEST.get('time','0')"> + </iframe> + </metal:macros> + + </metal:macros> + </form> + </tal:block> </body> </html>