Mercurial > hg > MPIWGWeb
comparison zpt/staff/edit_profile.zpt @ 187:71c2d76f09b5
fix editProfile.
author | casties |
---|---|
date | Fri, 14 Jun 2013 15:49:53 +0200 |
parents | 485bf377913a |
children | e2d2f018a8e2 |
comparison
equal
deleted
inserted
replaced
186:3ea224968f95 | 187:71c2d76f09b5 |
---|---|
3 <html xmlns:metal="http://xml.zope.org/namespaces/metal" xmlns:tal="http://xml.zope.org/namespaces/tal" | 3 <html xmlns:metal="http://xml.zope.org/namespaces/metal" xmlns:tal="http://xml.zope.org/namespaces/tal" |
4 metal:use-macro="here/mainEditFile/macros/page"> | 4 metal:use-macro="here/mainEditFile/macros/page"> |
5 <metal:x metal:fill-slot="javascript" tal:define="global onload string:kupu = startKupu();"> | 5 <metal:x metal:fill-slot="javascript" tal:define="global onload string:kupu = startKupu();"> |
6 <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" use-macro="here/kupuEditor/kupumacros/macros/head"> | 6 <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" use-macro="here/kupuEditor/kupumacros/macros/head"> |
7 <metal:macros fill-slot="bootstrap-editor"> | 7 <metal:macros fill-slot="bootstrap-editor"> |
8 <script type="text/javascript" src="/kupuEditor/kupuinit_form.js"> | 8 <script type="text/javascript" src="/kupuEditor/kupuinit_form.js"></script> |
9 | 9 <script type="text/javascript" src="/kupuEditor/kupustart_form.js"></script> |
10 </script> | |
11 <script type="text/javascript" src="/kupuEditor/kupustart_form.js"> | |
12 | |
13 </script> | |
14 </metal:macros> | 10 </metal:macros> |
15 </metal:macros> | 11 </metal:macros> |
16 </metal:x> | 12 </metal:x> |
17 <body> | 13 <body> |
18 <tal:block metal:fill-slot="navsel" tal:define="global menusel string:cv" /> | 14 <tal:block metal:fill-slot="navsel" tal:define="global menusel string:cv" /> |
19 | 15 |
20 <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> | 16 <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> |
21 <form tal:attributes="action string:$root/editProfile" method="post"> | 17 <form tal:attributes="action string:$root/editProfile" method="post"> |
22 <input type="hidden" name="key" tal:attributes="value here/content/key"/> | 18 <input type="hidden" name="key" tal:attributes="value here/content/key"/> |
23 <tal:x tal:condition="python:(here.content.profile is None) | (here.content.profile=='')"> | 19 <tal:x tal:condition="not:here/content/profile"> |
24 <p>You haven't edited your profile yet, this entry is generated automatically from you old CV entry, your current work | 20 <p>You haven't edited your profile yet, this entry is generated automatically from you old CV entry, your current work |
25 entry, and research interests entry from you old profile!</p> | 21 entry, and research interests entry from you old profile!</p> |
26 </tal:x> | 22 </tal:x> |
27 | 23 |
28 <div> | 24 <div> |
29 <span class="kupu-tb-buttongroup"> | 25 <span class="kupu-tb-buttongroup"> |
30 <button type="button" id="kupu-preview-button" title="preview: alt-p" accesskey="p">Preview</button> | 26 <button type="button" id="kupu-preview-button" title="preview: alt-p" accesskey="p">Preview</button> |
31 </span> | 27 </span> |
32 <span class="kupu-tb-buttongroup"> | 28 <span class="kupu-tb-buttongroup"> |
33 <button type="button" id="kupu-save-button" title="save: alt-s" accesskey="s">Publish</button> | 29 <button type="button" id="kupu-save-button" title="save: alt-s" accesskey="s">Publish</button> |
34 </span> | 30 </span> |
35 </div> | 31 </div> |
36 | 32 |
52 </div> | 48 </div> |
53 </metal:macros> | 49 </metal:macros> |
54 | 50 |
55 <metal:macros fill-slot="editorframe"> | 51 <metal:macros fill-slot="editorframe"> |
56 <iframe class="kupu-editor-iframe" id="kupu-editor" frameborder="0" scrolling="auto" src="fulldoc" | 52 <iframe class="kupu-editor-iframe" id="kupu-editor" frameborder="0" scrolling="auto" src="fulldoc" |
57 tal:attributes="src python:here.REQUEST['URL1']+'/'+here.getStaffURL()+'/getProfile?time='+here.REQUEST.get('time','0')"> | 53 tal:attributes="src python:root+'/getProfile?time='+here.REQUEST.get('time','0')"> |
58 </iframe> | 54 </iframe> |
59 </metal:macros> | 55 </metal:macros> |
60 | 56 |
61 </metal:macros> | 57 </metal:macros> |
62 </form> | 58 </form> |