Commit 88264ea7 authored by Fabien Morin's avatar Fabien Morin

Replace disabled="disabled" attribute by tabindex="1000". This gives the same...

Replace disabled="disabled" attribute by tabindex="1000". This gives the same behavior that we have before, but in a xhtml valid way. "disabled" attribute can't be used inside a "<a>" markup.
This is important for unit test because unit test are runed in devlopper mode. It should make test failed (but for tidy is just a warning).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19881 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aca78cad
......@@ -55,13 +55,13 @@
xmlns:metal="http://xml.zope.org/namespaces/metal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n
<tal:block metal:define-macro="edit_link">\n
<a disabled="disabled" tal:condition="python: (getattr(object, \'meta_type\', None) is not None) and (getattr(object, \'getPortalObject\', None) is not None)"\n
<a tabindex="1000" tal:condition="python: (getattr(object, \'meta_type\', None) is not None) and (getattr(object, \'getPortalObject\', None) is not None)"\n
tal:attributes="href python: \'%s/manage_main\' % (\'/\'.join(object.getPhysicalPath()[len(object.getPortalObject().getPhysicalPath()):])) # XXX: quick hack to get path;\n
title info;"><img tal:attributes="src python: \'%s/images/%s\' % (portal_path, image);\n
alt info;" /></a>\n
</tal:block>\n
<tal:block metal:define-macro="translate_link">\n
<a disabled="disabled" tal:define="image image | python: \'translate.png\'"\n
<a tabindex="1000" tal:define="image image | python: \'translate.png\'"\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.replace(\'(\', \'\\(\').replace(\')\', \'\\)\'), selected_language);\n
title info;"><img tal:attributes="src python: \'%s/images/%s\' % (portal_path, image);\n
alt info;" /></a>\n
......
503
\ No newline at end of file
505
\ 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