Commit 0f122563 authored by Kevin Deldycke's avatar Kevin Deldycke

Fix hidden developper shortcuts (thanks to Rafael): auto-hide all developper...

Fix hidden developper shortcuts (thanks to Rafael): auto-hide all developper shortcuts in web mode only.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9602 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cb2a3be8
...@@ -72,21 +72,25 @@ along with this program; if not, write to the Free Software\n ...@@ -72,21 +72,25 @@ along with this program; if not, write to the Free Software\n
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
-->\n -->\n
</tal:block>\n </tal:block>\n
\n
\n
<tal:block metal:define-macro="edit_link">\n <tal:block metal:define-macro="edit_link">\n
<a tal:condition="python: hasattr(object, \'meta_type\') and context.Base_getSourceVisibility(object)"\n <a tal:condition="python: hasattr(object, \'meta_type\') and context.Base_getSourceVisibility(object)"\n
tal:attributes="href python: \'%s/%s\' % (\'/\'.join(object.getPhysicalPath()[len(object.getPortalObject().getPhysicalPath()):]), manage) # XXX: quick hack to get path;\n tal:attributes="href python: \'%s/%s\' % (\'/\'.join(object.getPhysicalPath()[len(object.getPortalObject().getPhysicalPath()):]), manage) # XXX: quick hack to get path;\n
title info;"><img tal:attributes="src python: \'images/%s\' % (image, );\n title info;"><img tal:attributes="src python: \'images/%s\' % (image, );\n
alt info;"/></a>\n alt info;"/></a>\n
</tal:block>\n </tal:block>\n
\n
\n
<tal:block metal:define-macro="translate_link" tal:define="image image | python: \'translate.png\'">\n <tal:block metal:define-macro="translate_link" tal:define="image image | python: \'translate.png\'">\n
<a tal:condition="python: here.Base_getTranslationVisibility()"\n <a tal:condition="python: here.Base_getTranslationVisibility()"\n
tal:attributes="href python: \'%s/manage_messages?regex=^%s%%24&amp;lang=%s\' % (\'/\'.join(here.Localizer.erp5_ui.getPhysicalPath()[len(here.Localizer.erp5_ui.getPortalObject().getPhysicalPath()):]), message, here.Localizer.get_selected_language());\n tal:attributes="href python: \'%s/manage_messages?regex=^%s%%24&amp;lang=%s\' % (\'/\'.join(here.Localizer.erp5_ui.getPhysicalPath()[len(here.Localizer.erp5_ui.getPortalObject().getPhysicalPath()):]), message, here.Localizer.get_selected_language());\n
title info;"><img tal:attributes="src python: \'images/%s\' % (image, );\n title info;"><img tal:attributes="src python: \'images/%s\' % (image, );\n
alt info;"/></a>\n alt info;"/></a>\n
</tal:block>\n </tal:block>\n
<tal:block metal:define-macro="form"\n \n
tal:define="form python: (hasattr(here, \'form\') and here.form) or (hasattr(here, \'current_form_id\') and getattr(here, current_form_id, None))"\n \n
tal:condition="python: context.Base_getSourceVisibility(form)">\n <tal:block metal:define-macro="form" tal:condition="python: not is_web_mode">\n
<tal:block tal:define="image python: \'editform.png\';\n <tal:block tal:define="image python: \'editform.png\';\n
info python: \'Edit this form\';\n info python: \'Edit this form\';\n
object python: form;\n object python: form;\n
...@@ -106,7 +110,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -106,7 +110,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<tal:block metal:use-macro="template/macros/edit_link"/>\n <tal:block metal:use-macro="template/macros/edit_link"/>\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
<tal:block metal:define-macro="field">\n \n
\n
<tal:block metal:define-macro="field" tal:condition="python: not is_web_mode">\n
<tal:block tal:define="image python: \'editfield.png\';\n <tal:block tal:define="image python: \'editfield.png\';\n
info python: \'Edit this field\';\n info python: \'Edit this field\';\n
object python: field;\n object python: field;\n
......
2006-09-01 Kevin
* Fix hidden developper shortcuts.
2006-08-31 Kevin 2006-08-31 Kevin
* Render non editable field in a span. * Render non editable field in a span.
* Display edit tabs in web editable_mode. * Display edit tabs in web editable_mode.
......
152 154
\ No newline at end of file \ No newline at end of file
1.2.21 1.2.22
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment