comparison 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
comparison
equal deleted inserted replaced
169:2da62e93a1c6 170:485bf377913a
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html metal:use-macro="here/mainEditFile/macros/page"> 3 <html xmlns:metal="http://xml.zope.org/namespaces/metal" xmlns:tal="http://xml.zope.org/namespaces/tal"
4 <metal:x metal:fill-slot="javascript" 4 metal:use-macro="here/mainEditFile/macros/page">
5 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"> </script> 8 <script type="text/javascript" src="/kupuEditor/kupuinit_form.js">
9 <script type="text/javascript" src="/kupuEditor/kupustart_form.js"> </script> 9
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>
12 </metal:x> 16 </metal:x>
13 <body> 17 <body>
14 <tal:block metal:fill-slot="navsel" tal:define="global menusel string:cv"/> 18 <tal:block metal:fill-slot="navsel" tal:define="global menusel string:cv" />
15 19
16 <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> 20 <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'">
17 <form action="" method="post"> 21 <form tal:attributes="action string:$root/editProfile" method="post">
18 <input type="hidden" name="key" tal:attributes="value here/content/key"> 22 <input type="hidden" name="key" tal:attributes="value here/content/key"/>
19 <tal:x condition="python:(here.content.profile is None) | (here.content.profile=='')"> 23 <tal:x tal:condition="python:(here.content.profile is None) | (here.content.profile=='')">
20 <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> 24 <p>You haven't edited your profile yet, this entry is generated automatically from you old CV entry, your current work
21 25 entry, and research interests entry from you old profile!</p>
22 </tal:x> 26 </tal:x>
23 27
24 28 <div>
25 29 <span class="kupu-tb-buttongroup">
26 <div><span class="kupu-tb-buttongroup"> 30 <button type="button" id="kupu-preview-button" title="preview: alt-p" accesskey="p">Preview</button>
27 <button type="button" id="kupu-preview-button" title="preview: alt-p" accesskey="p">Preview</button> 31 </span>
28 </span> 32 <span class="kupu-tb-buttongroup">
29 <span class="kupu-tb-buttongroup"> 33 <button type="button" id="kupu-save-button" title="save: alt-s" accesskey="s">Publish</button>
30 <button type="button" id="kupu-save-button" title="save: alt-s" accesskey="s">Publish</button> 34 </span>
31 </span> 35 </div>
32 </div>
33 <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" use-macro="here/kupuEditor/kupumacros/macros/xmlconfig">
34 <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" fill-slot="dst">saveEditedContent</metal:macros>
35 </metal:macros>
36 <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" use-macro="here/kupuEditor/kupumacros/macros/fulleditor">
37
38 <!-- <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" fill-slot="tb_select_styles">
39 <span id="kupu-tb-styles"/>
40 </metal:macros>
41 <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" fill-slot="buttongroup_subsuper">
42 <span id="kupu-bg-subsuper"/>
43 <span id="kupu-subscript-button"/>
44 <span id="kupu-superscript-button"/>
45 </metal:macros>
46
47 <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" fill-slot="buttongroup_justify">
48 <span id="kupu-justifyleft-button"/>
49 <span id="kupu-justifycenter-button"/>
50 <span id="kupu-justifyright-button"/>
51 </metal:macros>
52 <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" fill-slot="buttongroup_list">
53 <span id="kupu-list-ol-addbutton"/>
54 <span id="kupu-list-ul-addbutton"/>
55
56 </metal:macros>
57 <metal:macros xmlns:metal="http://xml.zope.org/namespaces/metal" fill-slot="buttongroup_indent"/>
58 -->
59
60 <metal:macros fill-slot="toolbox_properties">
61 <div class="kupu-toolbox" id="kupu-toolbox-properties"><input type="hidden" class="wide" id="kupu-properties-title" /> <input
62 type="hidden" class="wide" id="kupu-properties-description" /></div>
63 </metal:macros>
64 <metal:macros fill-slot="toolbox_tables">
65 <div class="kupu-toolbox" id="kupu-toolbox-properties"><input type="hidden" class="wide" id="kupu-table-classchooser" /> <input
66 type="hidden" class="wide" id="kupu-table-newrows" /> <input type="hidden" class="wide" id="kupu-table-newcols" /></div>
67 </metal:macros>
68 <metal:macros fill-slot="editorframe">
69 36
70 <iframe class="kupu-editor-iframe" id="kupu-editor" frameborder="0" scrolling="auto" src="fulldoc" 37 <metal:macros use-macro="here/kupuEditor/kupumacros/macros/xmlconfig">
71 tal:attributes="src python:here.REQUEST['URL1']+'/'+here.getStaffURL()+'/getProfile?time='+here.REQUEST.get('time','0')"> 38 <metal:macros fill-slot="dst">saveEditedContent</metal:macros>
72 </iframe> 39 </metal:macros>
73 40 <metal:macros use-macro="here/kupuEditor/kupumacros/macros/fulleditor">
74 </metal:macros> 41 <metal:macros fill-slot="toolbox_properties">
75 </metal:macros> 42 <div class="kupu-toolbox" id="kupu-toolbox-properties">
76 43 <input type="hidden" class="wide" id="kupu-properties-title" />
77 44 <input type="hidden" class="wide" id="kupu-properties-description" />
78 </form> 45 </div>
79 46 </metal:macros>
80 47 <metal:macros fill-slot="toolbox_tables">
81 <br/> 48 <div class="kupu-toolbox" id="kupu-toolbox-properties">
82 </tal:block> 49 <input type="hidden" class="wide" id="kupu-table-classchooser" />
50 <input type="hidden" class="wide" id="kupu-table-newrows" />
51 <input type="hidden" class="wide" id="kupu-table-newcols" />
52 </div>
53 </metal:macros>
54
55 <metal:macros fill-slot="editorframe">
56 <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')">
58 </iframe>
59 </metal:macros>
60
61 </metal:macros>
62 </form>
63 </tal:block>
83 </body> 64 </body>
84 </html> 65 </html>