Commit 032acbc8 authored by Kevin Deldycke's avatar Kevin Deldycke

Don't display action box in default web view

Factorize conditions.
Reduce tag soupness.
Change code layout.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9760 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a7772499
...@@ -72,13 +72,14 @@ along with this program; if not, write to the Free Software\n ...@@ -72,13 +72,14 @@ 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
<tal:block metal:define-macro="master">\n <tal:block metal:define-macro="master">\n
<tal:block tal:define="object_uid here/getUid | nothing;\n <tal:block\n
tal:define="object_uid here/getUid | nothing;\n
object_path here/getPath | nothing;\n object_path here/getPath | nothing;\n
form nocall: form | nothing;\n form nocall: form | nothing;\n
form_id form/id | nothing;\n form_id form/id | nothing;\n
form_action python: form and form.action not in (\'\', None) and here.portal_membership.checkPermission(\'Modify portal content\', here) and form.action or nothing;\n form_action python: form and form.action not in (\'\', None) and here.portal_membership.checkPermission(\'Modify portal content\', here) and form.action or nothing;\n
\n
local_parameter_list local_parameter_list | python: {};\n local_parameter_list local_parameter_list | python: {};\n
dummy python: local_parameter_list.update({\'object_uid\': object_uid, \'object_path\': object_path, \'form_id\': form_id});\n dummy python: local_parameter_list.update({\'object_uid\': object_uid, \'object_path\': object_path, \'form_id\': form_id});\n
">\n ">\n
...@@ -89,25 +90,22 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -89,25 +90,22 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<tal:block metal:fill-slot="main">\n <tal:block metal:fill-slot="main">\n
<div class="document"\n <div class="document"\n
tal:define="actions actions/object_view | python: []">\n tal:define="actions actions/object_view | python: []">\n
<div class="actions">\n <div class="actions"\n
<tal:block tal:condition="editable_mode">\n tal:condition="python: (not is_web_mode or editable_mode) and len(actions)">\n
<button tal:condition="form_action"\n <button tal:condition="form_action"\n
type="submit" class="save" title="Save"\n type="submit" class="save" title="Save"\n
tal:attributes="name python: \'%s:method\' % (form_action, )"\n tal:attributes="name python: \'%s:method\' % (form_action, )"\n
i18n:attributes="title" i18n:domain="ui">\n i18n:attributes="title" i18n:domain="ui">\n
<span class="image"></span>\n <span class="image"></span>\n
<span class="description"\n <span class="description" i18n:translate="" i18n:domain="ui">Save</span>\n
i18n:translate="" i18n:domain="ui">Save</span>\n
</button>\n </button>\n
</tal:block>\n <ul>\n
<ul tal:condition="python: (not is_web_mode or editable_mode) and len(actions)">\n <li tal:repeat="action actions"\n
<tal:block tal:repeat="action actions">\n tal:attributes="class python: action == current_action and \'selected\' or \'not_selected\'">\n
<li tal:attributes="class python: action == current_action and \'selected\' or \'not_selected\'">\n
<a tal:attributes="href python: here.ERP5XhtmlStyle_renderLink(action[\'url\'], http_parameters)"\n <a tal:attributes="href python: here.ERP5XhtmlStyle_renderLink(action[\'url\'], http_parameters)"\n
tal:content="action/name"\n tal:content="action/name"\n
i18n:translate="" i18n:domain="ui"></a>\n i18n:translate="" i18n:domain="ui"/>\n
</li>\n </li>\n
</tal:block>\n
</ul>\n </ul>\n
</div>\n </div>\n
<div class="content" tal:attributes="class python: editable_mode and \'content editable\' or \'content\'">\n <div class="content" tal:attributes="class python: editable_mode and \'content editable\' or \'content\'">\n
......
2006-09-08 Kevin
* Don't display action box in default web view and factorize conditions.
2006-09-07 jerome 2006-09-07 jerome
* fix <title>s * fix <title>s
......
169 172
\ No newline at end of file \ No newline at end of file
1.2.25 1.2.26
\ 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