Commit bca832ea authored by Vincent Pelletier's avatar Vincent Pelletier

2006-05-22 Vincent

* Add "developper mode" buttons.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7391 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a3f7c260
...@@ -142,7 +142,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -142,7 +142,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<td align="right"\n <td align="right"\n
tal:condition="python: not here.portal_membership.isAnonymousUser()">\n tal:condition="python: not here.portal_membership.isAnonymousUser()">\n
&nbsp;\n &nbsp;\n
<a href="undo_form" i18n:translate="" i18n:domain="ui">Logged In as </a> :\n <a href="undo_form" i18n:translate="" i18n:domain="ui">Logged In as </a>\n
<tal:block tal:define="info python: \'Translate this\';\n
message python: \'Logged In as\'">\n
<tal:block metal:use-macro="context/form_developper_buttons/macros/translate_link"/>\n
</tal:block> :\n
<tal:block tal:replace="python:here.portal_membership.getAuthenticatedMember().getUserName()" />\n <tal:block tal:replace="python:here.portal_membership.getAuthenticatedMember().getUserName()" />\n
</td>\n </td>\n
<td align="right"\n <td align="right"\n
......
...@@ -59,17 +59,19 @@ ...@@ -59,17 +59,19 @@
<tal:block tal:define="html_render python: field.render_htmlgrid(value, request)">\n <tal:block tal:define="html_render python: field.render_htmlgrid(value, request)">\n
<tal:block tal:condition="python:field.meta_type != \'HiddenStringField\'">\n <tal:block tal:condition="python:field.meta_type != \'HiddenStringField\'">\n
<tal:repeat repeat="html_tuple html_render">\n <tal:repeat repeat="html_tuple html_render">\n
<tr>\n <tr tal:attributes="title python: context.Localizer.translate(\'erp5_ui\', context.Base_getFieldDescription(field))">\n
<td tal:content="structure python: html_tuple[0]"\n <td tal:content="structure python: html_tuple[0]"\n
tal:attributes="class python: \n tal:attributes="class python: \n
{0: {0: None, 1: \'required\'},\n {0: {0: None, 1: \'required\'},\n
1: {0: \'error\', 1: \'reqerror\'}}[field_errors.has_key(field.id)][field.is_required()]"\n 1: {0: \'error\', 1: \'reqerror\'}}[field_errors.has_key(field.id)][field.is_required()]"\n
i18n:translate="" i18n:domain="ui" />\n i18n:translate="" i18n:domain="ui" />\n
<td>\n
<tal:block metal:use-macro="context/form_developper_buttons/macros/field"/>\n
</td>\n
<td>\n <td>\n
<tal:block tal:replace="structure python: html_tuple[1]" />\n <tal:block tal:replace="structure python: html_tuple[1]" />\n
</td>\n </td>\n
</tr>\n </tr>\n
\n
</tal:repeat>\n </tal:repeat>\n
</tal:block>\n </tal:block>\n
<tr tal:condition="python: field_errors.has_key(field.id)">\n <tr tal:condition="python: field_errors.has_key(field.id)">\n
......
...@@ -15,7 +15,16 @@ ...@@ -15,7 +15,16 @@
<item> <item>
<key> <string>__ac_local_roles__</string> </key> <key> <string>__ac_local_roles__</string> </key>
<value> <value>
<none/> <dictionary>
<item>
<key> <string>vincent</string> </key>
<value>
<list>
<string>Owner</string>
</list>
</value>
</item>
</dictionary>
</value> </value>
</item> </item>
<item> <item>
...@@ -47,16 +56,28 @@ ...@@ -47,16 +56,28 @@
<item> <item>
<key> <string>_owner</string> </key> <key> <string>_owner</string> </key>
<value> <value>
<none/> <tuple>
<list>
<string>nexedi</string>
<string>acl_users</string>
</list>
<string>vincent</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
<tal:block metal:define-macro="image_link">\n <tal:block metal:define-macro="edit_link">\n
<a tal:condition="python: hasattr(object, \'meta_type\') and object.Base_getSourceVisibility()"\n <a tal:condition="python: hasattr(object, \'meta_type\') and object.Base_getSourceVisibility()"\n
tal:attributes="href python: \'%s/%s\' % (object.absolute_url(), manage);\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
alt info;"/></a>\n
</tal:block>\n
<tal:block metal:define-macro="translate_link" tal:define="image image | python: \'translate.png\'">\n
<a tal:condition="python: context.Base_getTranslationVisibility()"\n
tal:attributes="href python: \'%s/manage_messages?regex=^%s%%24&amp;lang=%s\' % (\'/\'.join(context.Localizer.erp5_ui.getPhysicalPath()[len(context.Localizer.erp5_ui.getPortalObject().getPhysicalPath()):]), message, context.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
...@@ -64,26 +85,26 @@ ...@@ -64,26 +85,26 @@
<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
manage python: \'manage_main\'">\n manage python: \'manage\'">\n
<tal:block metal:use-macro="context/form_developper_buttons/macros/image_link"/>\n <tal:block metal:use-macro="context/form_developper_buttons/macros/edit_link"/>\n
</tal:block>\n </tal:block>\n
<tal:block tal:define="image python: \'editformrenderer.png\';\n <!-- <tal:block tal:define="image python: \'editformrenderer.png\';\n
info python: \'Edit this form\\\'s renderer\';\n info python: \'Edit this form\\\'s renderer\';\n
object python: getattr(context, form.pt, None);\n object python: getattr(context, form.pt, None);\n
manage python: \'manage_main\'">\n manage python: \'manage_main\'">\n
<tal:block metal:use-macro="context/form_developper_buttons/macros/image_link"/>\n <tal:block metal:use-macro="context/form_developper_buttons/macros/edit_link"/>\n
</tal:block>\n </tal:block>\n
<tal:block tal:define="image python: \'editlayout.png\';\n <tal:block tal:define="image python: \'editlayout.png\';\n
info python: \'Edit this layout\';\n info python: \'Edit this layout\';\n
object python: getattr(context, layout_id, None);\n object python: getattr(context, layout_id, None);\n
manage python: \'manage_main\'">\n manage python: \'manage_main\'">\n
<tal:block metal:use-macro="context/form_developper_buttons/macros/image_link"/>\n <tal:block metal:use-macro="context/form_developper_buttons/macros/edit_link"/>\n
</tal:block>\n </tal:block>-->\n
<tal:block tal:define="image python: \'editformaction.png\';\n <tal:block tal:define="image python: \'editformaction.png\';\n
info python: \'Edit this form\\\'s action\';\n info python: \'Edit this form\\\'s action\';\n
object python: getattr(context, form.action, None);\n object python: getattr(context, form.action, None);\n
manage python: \'manage_main\'">\n manage python: \'manage_main\'">\n
<tal:block metal:use-macro="context/form_developper_buttons/macros/image_link"/>\n <tal:block metal:use-macro="context/form_developper_buttons/macros/edit_link"/>\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
<tal:block metal:define-macro="field">\n <tal:block metal:define-macro="field">\n
...@@ -91,21 +112,21 @@ ...@@ -91,21 +112,21 @@
info python: \'Edit this field\';\n info python: \'Edit this field\';\n
object python: field;\n object python: field;\n
manage python: \'manage_main\'">\n manage python: \'manage_main\'">\n
<tal:block metal:use-macro="context/form_developper_buttons/macros/image_link"/>\n <tal:block metal:use-macro="context/form_developper_buttons/macros/edit_link"/>\n
</tal:block>\n </tal:block>\n
</tal:block>\n <tal:block tal:define="info python: \'Translate this field title\';\n
<tal:block metal:define-macro="tab">\n message python: field[\'title\'];\n
<tal:block tal:condition="python: context.portal_preferences.getPreferredHtmlStyleContextualHelp()\n image python: \'translate.png\'">\n
and hasattr(context, \'%s_getHelp\' % (context.getPortalType(), ))">\n <tal:block metal:use-macro="context/form_developper_buttons/macros/translate_link"/>\n
<a title="Help on this action"\n
tal:attributes="href python: \'Base_viewHelp?action_id=%s\' % (action[\'id\'], )"><img src="images/help.png" alt="Help" width="13" height="13"></a>\n
</tal:block>\n </tal:block>\n
</tal:block>\n <tal:block tal:define="desc python: context.Base_getFieldDescription(field)">\n
<tal:block metal:define-macro="help">\n <tal:block tal:condition="python: desc not in (None, \'\')">\n
<tal:block tal:condition="context/portal_preferences/getPreferredHtmlStyleContextualHelp"\n <tal:block tal:define="info python: \'Translate this field description\';\n
tal:define="help_object_id python: \'%s_getHelp\' % (context.getPortalType(), )">\n message desc;\n
<a title="Help" href="Base_viewHelp"\n image python: \'translate_tooltip.png\'">\n
tal:condition="python: hasattr(here, help_object_id)"><img src="images/help.png" alt="Help"></a>\n <tal:block metal:use-macro="context/form_developper_buttons/macros/translate_link"/>\n
</tal:block>\n
</tal:block>\n
</tal:block>\n </tal:block>\n
</tal:block> </tal:block>
......
...@@ -88,6 +88,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -88,6 +88,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<tal:block metal:use-macro="python:getattr(here,layout_id).macros[\'master\']">\n <tal:block metal:use-macro="python:getattr(here,layout_id).macros[\'master\']">\n
<tal:block metal:fill-slot="main">\n <tal:block metal:fill-slot="main">\n
<div class="Search">\n <div class="Search">\n
<tal:block metal:use-macro="here/form_developper_buttons/macros/form"/>\n
<span tal:define="groups python: form.get_groups(include_empty=1);\n <span tal:define="groups python: form.get_groups(include_empty=1);\n
field_errors python: request.get(\'field_errors\',{});\n field_errors python: request.get(\'field_errors\',{});\n
params python: here.portal_selections.getSelectionParams(selection_name, REQUEST=request);\n params python: here.portal_selections.getSelectionParams(selection_name, REQUEST=request);\n
...@@ -163,6 +164,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -163,6 +164,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
</td>\n </td>\n
<td tal:define="field_key python:field.id.startswith(\'my_\') and field.id[3:] or field.id;\n <td tal:define="field_key python:field.id.startswith(\'my_\') and field.id[3:] or field.id;\n
value python:field.get_value(\'default\') or request.get(field_key, params.get(field_key,None))">\n value python:field.get_value(\'default\') or request.get(field_key, params.get(field_key,None))">\n
<tal:block metal:use-macro="here/form_developper_buttons/macros/field"/>\n
<span tal:replace="structure python:field.render(value,request)" />\n <span tal:replace="structure python:field.render(value,request)" />\n
</td>\n </td>\n
</tr>\n </tr>\n
...@@ -207,6 +209,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -207,6 +209,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
</td>\n </td>\n
<td tal:define="field_key python:field.id.startswith(\'my_\') and field.id[3:] or field.id;\n <td tal:define="field_key python:field.id.startswith(\'my_\') and field.id[3:] or field.id;\n
value python:field.get_value(\'default\') or request.get(field_key, params.get(field_key,None))">\n value python:field.get_value(\'default\') or request.get(field_key, params.get(field_key,None))">\n
<tal:block metal:use-macro="here/form_developper_buttons/macros/field"/>\n
<span tal:replace="structure python:field.render(value,request)" />\n <span tal:replace="structure python:field.render(value,request)" />\n
</td>\n </td>\n
</tr>\n </tr>\n
...@@ -257,6 +260,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -257,6 +260,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<tr>\n <tr>\n
<td tal:define="field_key python:field.id.startswith(\'my_\') and field.id[3:] or field.id;\n <td tal:define="field_key python:field.id.startswith(\'my_\') and field.id[3:] or field.id;\n
value python:field.get_value(\'default\') or request.get(field_key, params.get(field_key,None))">\n value python:field.get_value(\'default\') or request.get(field_key, params.get(field_key,None))">\n
<tal:block metal:use-macro="here/form_developper_buttons/macros/field"/>\n
<span tal:replace="structure python:field.render(value,request)"/>\n <span tal:replace="structure python:field.render(value,request)"/>\n
</td>\n </td>\n
</tr>\n </tr>\n
......
...@@ -93,17 +93,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -93,17 +93,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
\n \n
<body>\n <body>\n
<div metal:fill-slot="main">\n <div metal:fill-slot="main">\n
<div class="Main">\n <div class="Main">\n
<tal:block metal:use-macro="here/form_developper_buttons/macros/form"/>\n
<span tal:define="groups python: form.get_groups(include_empty=1);\n <span tal:define="groups python: form.get_groups(include_empty=1);\n
field_errors python: request.get(\'field_errors\',{});\n field_errors python: request.get(\'field_errors\',{});\n
dummy python: request.set(\'here\',here)">\n dummy python: request.set(\'here\',here)">\n
<span tal:condition="python: len(groups)>0">\n <tal:block tal:condition="python: len(groups)>0">\n
<span tal:repeat="field python:form.get_fields_in_group(groups[0])">\n <span tal:repeat="field python:form.get_fields_in_group(groups[0])">\n
<tal:block metal:use-macro="here/form_developper_buttons/macros/field"/>\n
<div class="FormDescription" tal:content="python:field.get_value(\'description\')"></div>\n <div class="FormDescription" tal:content="python:field.get_value(\'description\')"></div>\n
<span tal:define="value python:request.get(field.id,None)"\n <span tal:define="value python:request.get(field.id,None)"\n
tal:replace="structure python:field.render(value,request)" />\n tal:replace="structure python:field.render(value,request)" />\n
</span>\n </span>\n
</span>\n </tal:block>\n
</span>\n </span>\n
</div>\n </div>\n
</div>\n </div>\n
......
...@@ -116,6 +116,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -116,6 +116,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<tal:block metal:define-macro="form_layout">\n <tal:block metal:define-macro="form_layout">\n
<div class="Main" tal:define="field_errors python: request.get(\'field_errors\',{});\n <div class="Main" tal:define="field_errors python: request.get(\'field_errors\',{});\n
dummy python: request.set(\'here\',here)">\n dummy python: request.set(\'here\',here)">\n
<tal:block metal:use-macro="here/form_developper_buttons/macros/form"/>\n
<tal:block tal:define="groups python: form.get_groups();\n <tal:block tal:define="groups python: form.get_groups();\n
rows python:[];">\n rows python:[];">\n
<tal:block tal:repeat="group groups">\n <tal:block tal:repeat="group groups">\n
...@@ -148,6 +149,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -148,6 +149,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<tal:block tal:condition="python: \'bottom\' in groups[row[0]].lower()">\n <tal:block tal:condition="python: \'bottom\' in groups[row[0]].lower()">\n
<tal:block tal:repeat="cell row">\n <tal:block tal:repeat="cell row">\n
<tal:block tal:repeat="field python:form.get_fields_in_group(groups[cell])">\n <tal:block tal:repeat="field python:form.get_fields_in_group(groups[cell])">\n
<tal:block metal:use-macro="here/form_developper_buttons/macros/field"/>\n
<tal:block tal:define="value python:request.get(field.id, None)"\n <tal:block tal:define="value python:request.get(field.id, None)"\n
tal:replace="structure python:field.render(value, request)" />\n tal:replace="structure python:field.render(value, request)" />\n
</tal:block>\n </tal:block>\n
......
...@@ -81,6 +81,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -81,6 +81,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<tal:block metal:use-macro="python:getattr(here,layout_id).macros[\'master\']">\n <tal:block metal:use-macro="python:getattr(here,layout_id).macros[\'master\']">\n
<tal:block metal:fill-slot="main">\n <tal:block metal:fill-slot="main">\n
<div class="Search">\n <div class="Search">\n
<tal:block metal:use-macro="here/form_developper_buttons/macros/form"/>\n
<span tal:define="groups python: form.get_groups(include_empty=1);\n <span tal:define="groups python: form.get_groups(include_empty=1);\n
field_errors python: request.get(\'field_errors\',{});\n field_errors python: request.get(\'field_errors\',{});\n
dummy python: request.set(\'here\',here)">\n dummy python: request.set(\'here\',here)">\n
...@@ -150,6 +151,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -150,6 +151,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
class="required">\n class="required">\n
</td>\n </td>\n
<td tal:define="value python:request.get(field.id,None)">\n <td tal:define="value python:request.get(field.id,None)">\n
<tal:block metal:use-macro="here/form_developper_buttons/macros/field"/>\n
<span tal:replace="structure python:field.render(value,request)" />\n <span tal:replace="structure python:field.render(value,request)" />\n
</td>\n </td>\n
</tr>\n </tr>\n
...@@ -193,6 +195,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -193,6 +195,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
class="required">\n class="required">\n
</td>\n </td>\n
<td tal:define="value python:request.get(field.id,None)">\n <td tal:define="value python:request.get(field.id,None)">\n
<tal:block metal:use-macro="here/form_developper_buttons/macros/field"/>\n
<span tal:replace="structure python:field.render(value,request)" />\n <span tal:replace="structure python:field.render(value,request)" />\n
</td>\n </td>\n
</tr>\n </tr>\n
...@@ -241,6 +244,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -241,6 +244,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td tal:define="value python:request.get(field.id,None)">\n <td tal:define="value python:request.get(field.id,None)">\n
<tal:block metal:use-macro="here/form_developper_buttons/macros/field"/>\n
<span tal:replace="structure python:field.render(value,request)"/>\n <span tal:replace="structure python:field.render(value,request)"/>\n
</td>\n </td>\n
</tr>\n </tr>\n
......
...@@ -90,6 +90,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -90,6 +90,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<br/>\n <br/>\n
<h2 align="center" i18n:translate="" i18n:domain="ui">\n <h2 align="center" i18n:translate="" i18n:domain="ui">\n
Welcome to ERP5\n Welcome to ERP5\n
<tal:block tal:define="info python: \'Translate ERP5 title\';\n
message python: \'Welcome to ERP5\';\n
image python: \'translate.png\'">\n
<tal:block metal:use-macro="context/form_developper_buttons/macros/translate_link"/>\n
</tal:block>\n
</h2>\n </h2>\n
<table border="1" align="center">\n <table border="1" align="center">\n
<tr tal:define="module_list python:here.ERP5Site_getModuleItemList();\n <tr tal:define="module_list python:here.ERP5Site_getModuleItemList();\n
...@@ -103,11 +108,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -103,11 +108,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<td valign="top" class="ModuleShortcut">\n <td valign="top" class="ModuleShortcut">\n
<tal:block tal:repeat="module python:module_list[col_size*col_no:min(col_size*(col_no+1),module_len)] ">\n <tal:block tal:repeat="module python:module_list[col_size*col_no:min(col_size*(col_no+1),module_len)] ">\n
<p>\n <p>\n
<a href="person"\n <a tal:content="python: module[0]"\n
tal:content="python: module[0]"\n
tal:attributes="href python: module[1] + \'/view\'">\n tal:attributes="href python: module[1] + \'/view\'">\n
Person\n
</a>\n </a>\n
<tal:block tal:define="info python: \'Translate this module title\';\n
message python: module[0];\n
image python: \'translate.png\'">\n
<tal:block metal:use-macro="context/form_developper_buttons/macros/translate_link"/>\n
</tal:block>\n
</p>\n </p>\n
</tal:block>\n </tal:block>\n
</td>\n </td>\n
......
...@@ -99,11 +99,22 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -99,11 +99,22 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<tr>\n <tr>\n
<td valign="middle" align="left" nowrap>&nbsp;\n <td valign="middle" align="left" nowrap>&nbsp;\n
<select name="jump_select" size="1" tal:attributes="onChange string:submitAction(this.form,\'${absolute_url}/Base_doJump\')">\n <select name="jump_select" size="1" tal:attributes="onChange string:submitAction(this.form,\'${absolute_url}/Base_doJump\')">\n
<option selected value="1" disabled i18n:translate="" i18n:domain="ui">Jump...</option>\n <option selected="selected" value="1" disabled i18n:translate="" i18n:domain="ui">Jump...</option>\n
<tal:block tal:repeat="action jump_actions">\n <tal:block tal:repeat="action jump_actions">\n
<option value="1" tal:content="action/name"\n <option tal:content="action/name"\n
i18n:translate="" i18n:domain="ui"\n i18n:translate="" i18n:domain="ui"\n
tal:attributes="value action/url">Saut</option>\n tal:attributes="value action/url"></option>\n
</tal:block>\n
<tal:block tal:condition="python: here.getPortalType() in here.portal_types.objectIds() and here.portal_types[here.getPortalType()].Base_getSourceVisibility()">\n
<option tal:attributes="value python: \'%s/manage_workspace\' % (here.portal_types[here.getPortalType()].absolute_url(),)"\n
tal:content="python: \'Edit Portal Type \\\'%s\\\'\' % (context.getPortalType(),)"\n
i18n:translate="" i18n:domain="ui"></option>\n
</tal:block>\n
<tal:block tal:condition="context/portal_workflow/Base_getSourceVisibility">\n
<option value="1" disabled="disabled" i18n:translate="" i18n:domain="ui">-- Workflows --</option>\n
<tal:block tal:repeat="workflow python: context.portal_workflow.getWorkflowsFor(context)">\n
<option tal:attributes="value python: \'%s/manage_properties\' % (workflow.absolute_url(), )" tal:content="workflow/title"></option>\n
</tal:block>\n
</tal:block>\n </tal:block>\n
</select></td>\n </select></td>\n
<td valign="bottom" align="center" nowrap>\n <td valign="bottom" align="center" nowrap>\n
...@@ -159,12 +170,23 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -159,12 +170,23 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
tal:attributes="src string:$portal_url/images/exec16.png"/> &nbsp;\n tal:attributes="src string:$portal_url/images/exec16.png"/> &nbsp;\n
</td>\n </td>\n
<td width="100%"><tal:block metal:define-slot="buttons"/></td>\n <td width="100%"><tal:block metal:define-slot="buttons"/></td>\n
<td aligh="right" valign="center">\n <td align="right" valign="center"\n
<img alt="Activity Pending" src="/images/erp5_html_style/images/activity_busy.png"\n tal:define="form_id form/id|nothing">\n
tal:condition="here/hasActivity | nothing"\n <a title="Help" tal:attributes="href python: here.Base_getHelpUrl(form_id=form_id)"><img src="images/userhelp.png" alt="Help"></a>\n
border="0" title="Activity Pending"\n </td>\n
i18n:attributes="title" i18n:domain="ui"\n <td align="right" valign="center"\n
tal:attributes="src string:$portal_url/images/activity_busy.png"/>\n tal:condition="here/portal_preferences/getPreferredHtmlStyleDevelopperMode">\n
<a title="Inspect object" tal:attributes="href python: \'%s/Base_viewInspectionReport\' % (here.absolute_url(),)"><img src="images/inspect.png" alt="Inspect object"></a>\n
</td>\n
<td aligh="right" valign="center"\n
tal:condition="here/hasActivity | nothing">\n
<a title="Portal Activities"\n
tal:attributes="href python: context.portal_membership.checkPermission(\'View management screens\', context.portal_activities) and \'%s/manageActivities\' % (here.portal_activities.absolute_url(), ) or \'#\'">\n
<img alt="Activity Pending" src="/images/erp5_html_style/images/activity_busy.png"\n
border="0" title="Activity Pending"\n
i18n:attributes="title" i18n:domain="ui"\n
tal:attributes="src string:$portal_url/images/activity_busy.png"/>\n
</a>\n
</td>\n </td>\n
</tr>\n </tr>\n
</table>\n </table>\n
......
...@@ -158,23 +158,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -158,23 +158,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
alt="spacer" tal:attributes="src string:$portal_url/images/spacer.png"/>\n alt="spacer" tal:attributes="src string:$portal_url/images/spacer.png"/>\n
</td>\n </td>\n
</tal:block>\n </tal:block>\n
<td nowrap class="On" align="center" valign="bottom"\n <td nowrap align="center" valign="bottom"\n
tal:condition="is_action_selected"\n tal:attributes="class python: is_action_selected and \'On\' or \'Off\'"\n
tal:define="url action/url">\n tal:define="url action/url">\n
<a tal:content="action/name" href="toto"\n <a tal:content="action/name"\n
i18n:translate="" i18n:domain="ui"\n i18n:translate="" i18n:domain="ui"\n
tal:attributes="href python:url + (\'?\' in url and \'&\' or \'?\') + \'selection_index=%s&selection_name=%s&ignore_layout:int=%s\' % (selection_index, selection_name, ignore_layout);" >\n tal:attributes="href python:url + (\'?\' in url and \'&\' or \'?\') + \'selection_index=%s&selection_name=%s&ignore_layout:int=%s\' % (selection_index, selection_name, ignore_layout);" >\n
Info.G&eacute;n&eacute;rales\n
</a>\n
</td>\n
<td nowrap class="Off" valign="bottom" align="center"\n
tal:condition="not:is_action_selected"\n
tal:define="url action/url">\n
<a tal:content="action/name" href="toto"\n
i18n:translate="" i18n:domain="ui"\n
tal:attributes="href python:url + (\'?\' in url and \'&\' or \'?\') + \'selection_index=%s&selection_name=%s&ignore_layout:int=%s\' % (selection_index, selection_name, ignore_layout);" >\n
Info.G&eacute;n&eacute;rales\n
</a>\n </a>\n
<tal:block tal:define="info python: \'Translate this action name\';\n
message action/name;\n
image python: \'translate.png\'">\n
<tal:block metal:use-macro="context/form_developper_buttons/macros/translate_link"/>\n
</tal:block>\n
</td>\n </td>\n
<tal:block tal:condition="is_action_selected">\n <tal:block tal:condition="is_action_selected">\n
<td valign="bottom" width="17"\n <td valign="bottom" width="17"\n
......
2006-05-22 Vincent
* Add "developper mode" buttons.
2006-05-15 Romain 2006-05-15 Romain
* Update maintainers. * Update maintainers.
......
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