Mercurial > hg > MPIWGWeb
diff zpt/staff/edit_profile.zpt @ 233:e2d2f018a8e2
add character count to staff profile editing page.
author | casties |
---|---|
date | Thu, 14 Nov 2013 18:09:16 +0100 |
parents | 71c2d76f09b5 |
children |
line wrap: on
line diff
--- a/zpt/staff/edit_profile.zpt Thu Nov 14 15:17:05 2013 +0100 +++ b/zpt/staff/edit_profile.zpt Thu Nov 14 18:09:16 2013 +0100 @@ -28,6 +28,7 @@ <span class="kupu-tb-buttongroup"> <button type="button" id="kupu-save-button" title="save: alt-s" accesskey="s">Publish</button> </span> + <span>(currently published: <span tal:replace="python:len(here.getProfile(filter='plaintext', length=0))"/> characters)</span> </div> <metal:macros use-macro="here/kupuEditor/kupumacros/macros/xmlconfig"> @@ -50,7 +51,7 @@ <metal:macros fill-slot="editorframe"> <iframe class="kupu-editor-iframe" id="kupu-editor" frameborder="0" scrolling="auto" src="fulldoc" - tal:attributes="src python:root+'/getProfile?time='+here.REQUEST.get('time','0')"> + tal:attributes="src python:root+'/getProfileHtml?time='+request.get('time','0')"> </iframe> </metal:macros>