From bca832eab0714b5565aae8819b1bd85ff5996b14 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Mon, 22 May 2006 10:46:18 +0000 Subject: [PATCH] 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 --- .../erp5_html_style/breadcrumb.xml | 6 +- .../erp5_html_style/field_render.xml | 6 +- .../form_developper_buttons.xml | 69 ++++++++++++------- .../erp5_html_style/form_dialog.xml | 4 ++ .../erp5_html_style/form_list.xml | 8 ++- .../erp5_html_style/form_view.xml | 2 + .../erp5_html_style/form_view_dialog.xml | 4 ++ .../erp5_html_style/index_html.xml | 14 +++- .../portal_skins/erp5_html_style/menu_box.xml | 40 ++++++++--- .../erp5_html_style/view_selection_box.xml | 21 +++--- .../bootstrap/erp5_html_style/bt/change_log | 3 + .../erp5_html_style/bt/dependency_list | 1 + 12 files changed, 123 insertions(+), 55 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/breadcrumb.xml b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/breadcrumb.xml index b2aba94804..8c45706daa 100644 --- a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/breadcrumb.xml +++ b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/breadcrumb.xml @@ -142,7 +142,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n <td align="right"\n tal:condition="python: not here.portal_membership.isAnonymousUser()">\n \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 </td>\n <td align="right"\n diff --git a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/field_render.xml b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/field_render.xml index 2e62a2a8ce..3699eec31e 100644 --- a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/field_render.xml +++ b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/field_render.xml @@ -59,17 +59,19 @@ <tal:block tal:define="html_render python: field.render_htmlgrid(value, request)">\n <tal:block tal:condition="python:field.meta_type != \'HiddenStringField\'">\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 tal:attributes="class python: \n {0: {0: None, 1: \'required\'},\n 1: {0: \'error\', 1: \'reqerror\'}}[field_errors.has_key(field.id)][field.is_required()]"\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 <tal:block tal:replace="structure python: html_tuple[1]" />\n </td>\n </tr>\n - \n </tal:repeat>\n </tal:block>\n <tr tal:condition="python: field_errors.has_key(field.id)">\n diff --git a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_developper_buttons.xml b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_developper_buttons.xml index f7d30c2e2e..7b70754e6d 100644 --- a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_developper_buttons.xml +++ b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_developper_buttons.xml @@ -15,7 +15,16 @@ <item> <key> <string>__ac_local_roles__</string> </key> <value> - <none/> + <dictionary> + <item> + <key> <string>vincent</string> </key> + <value> + <list> + <string>Owner</string> + </list> + </value> + </item> + </dictionary> </value> </item> <item> @@ -47,16 +56,28 @@ <item> <key> <string>_owner</string> </key> <value> - <none/> + <tuple> + <list> + <string>nexedi</string> + <string>acl_users</string> + </list> + <string>vincent</string> + </tuple> </value> </item> <item> <key> <string>_text</string> </key> <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 - 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&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 alt info;"/></a>\n </tal:block>\n @@ -64,26 +85,26 @@ <tal:block tal:define="image python: \'editform.png\';\n info python: \'Edit this form\';\n object python: form;\n - manage python: \'manage_main\'">\n - <tal:block metal:use-macro="context/form_developper_buttons/macros/image_link"/>\n + manage python: \'manage\'">\n + <tal:block metal:use-macro="context/form_developper_buttons/macros/edit_link"/>\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 object python: getattr(context, form.pt, None);\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 tal:define="image python: \'editlayout.png\';\n info python: \'Edit this layout\';\n object python: getattr(context, layout_id, None);\n manage python: \'manage_main\'">\n - <tal:block metal:use-macro="context/form_developper_buttons/macros/image_link"/>\n - </tal:block>\n + <tal:block metal:use-macro="context/form_developper_buttons/macros/edit_link"/>\n + </tal:block>-->\n <tal:block tal:define="image python: \'editformaction.png\';\n info python: \'Edit this form\\\'s action\';\n object python: getattr(context, form.action, None);\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 metal:define-macro="field">\n @@ -91,21 +112,21 @@ info python: \'Edit this field\';\n object python: field;\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 metal:define-macro="tab">\n - <tal:block tal:condition="python: context.portal_preferences.getPreferredHtmlStyleContextualHelp()\n - and hasattr(context, \'%s_getHelp\' % (context.getPortalType(), ))">\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 tal:define="info python: \'Translate this field title\';\n + message python: field[\'title\'];\n + image python: \'translate.png\'">\n + <tal:block metal:use-macro="context/form_developper_buttons/macros/translate_link"/>\n </tal:block>\n -</tal:block>\n -<tal:block metal:define-macro="help">\n - <tal:block tal:condition="context/portal_preferences/getPreferredHtmlStyleContextualHelp"\n - tal:define="help_object_id python: \'%s_getHelp\' % (context.getPortalType(), )">\n - <a title="Help" href="Base_viewHelp"\n - tal:condition="python: hasattr(here, help_object_id)"><img src="images/help.png" alt="Help"></a>\n + <tal:block tal:define="desc python: context.Base_getFieldDescription(field)">\n + <tal:block tal:condition="python: desc not in (None, \'\')">\n + <tal:block tal:define="info python: \'Translate this field description\';\n + message desc;\n + image python: \'translate_tooltip.png\'">\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> diff --git a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_dialog.xml b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_dialog.xml index cca45d89d5..e6cf8c857e 100644 --- a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_dialog.xml +++ b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_dialog.xml @@ -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:fill-slot="main">\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 field_errors python: request.get(\'field_errors\',{});\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 </td>\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 + <tal:block metal:use-macro="here/form_developper_buttons/macros/field"/>\n <span tal:replace="structure python:field.render(value,request)" />\n </td>\n </tr>\n @@ -207,6 +209,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n </td>\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 + <tal:block metal:use-macro="here/form_developper_buttons/macros/field"/>\n <span tal:replace="structure python:field.render(value,request)" />\n </td>\n </tr>\n @@ -257,6 +260,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n <tr>\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 + <tal:block metal:use-macro="here/form_developper_buttons/macros/field"/>\n <span tal:replace="structure python:field.render(value,request)"/>\n </td>\n </tr>\n diff --git a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_list.xml b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_list.xml index 769191c342..5470c62c85 100644 --- a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_list.xml +++ b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_list.xml @@ -93,17 +93,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n \n <body>\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 field_errors python: request.get(\'field_errors\',{});\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 + <tal:block metal:use-macro="here/form_developper_buttons/macros/field"/>\n <div class="FormDescription" tal:content="python:field.get_value(\'description\')"></div>\n <span tal:define="value python:request.get(field.id,None)"\n tal:replace="structure python:field.render(value,request)" />\n </span>\n - </span>\n + </tal:block>\n </span>\n </div>\n </div>\n diff --git a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_view.xml b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_view.xml index 994ba165e6..4bb7786d4b 100644 --- a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_view.xml +++ b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_view.xml @@ -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 <div class="Main" tal:define="field_errors python: request.get(\'field_errors\',{});\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 rows python:[];">\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 <tal:block tal:condition="python: \'bottom\' in groups[row[0]].lower()">\n <tal:block tal:repeat="cell row">\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:replace="structure python:field.render(value, request)" />\n </tal:block>\n diff --git a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_view_dialog.xml b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_view_dialog.xml index 6d10fe071f..21cc3fb92c 100644 --- a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_view_dialog.xml +++ b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_view_dialog.xml @@ -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:fill-slot="main">\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 field_errors python: request.get(\'field_errors\',{});\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 class="required">\n </td>\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 </td>\n </tr>\n @@ -193,6 +195,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n class="required">\n </td>\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 </td>\n </tr>\n @@ -241,6 +244,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n </tr>\n <tr>\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 </td>\n </tr>\n diff --git a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/index_html.xml b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/index_html.xml index 90a0fd6b26..bcaa8a5cd9 100644 --- a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/index_html.xml +++ b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/index_html.xml @@ -90,6 +90,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n <br/>\n <h2 align="center" i18n:translate="" i18n:domain="ui">\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 <table border="1" align="center">\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 <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 <p>\n - <a href="person"\n - tal:content="python: module[0]"\n + <a tal:content="python: module[0]"\n tal:attributes="href python: module[1] + \'/view\'">\n - Person\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 </tal:block>\n </td>\n diff --git a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/menu_box.xml b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/menu_box.xml index ba9f2ae145..d7533344db 100644 --- a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/menu_box.xml +++ b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/menu_box.xml @@ -99,11 +99,22 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n <tr>\n <td valign="middle" align="left" nowrap> \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 - <option value="1" tal:content="action/name"\n + <option tal:content="action/name"\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 </select></td>\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 tal:attributes="src string:$portal_url/images/exec16.png"/> \n </td>\n <td width="100%"><tal:block metal:define-slot="buttons"/></td>\n - <td aligh="right" valign="center">\n - <img alt="Activity Pending" src="/images/erp5_html_style/images/activity_busy.png"\n - tal:condition="here/hasActivity | nothing"\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 + <td align="right" valign="center"\n + tal:define="form_id form/id|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 + </td>\n + <td align="right" valign="center"\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 </tr>\n </table>\n diff --git a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/view_selection_box.xml b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/view_selection_box.xml index ab04146437..5cc6e29ab5 100644 --- a/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/view_selection_box.xml +++ b/product/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/view_selection_box.xml @@ -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 </td>\n </tal:block>\n - <td nowrap class="On" align="center" valign="bottom"\n - tal:condition="is_action_selected"\n + <td nowrap align="center" valign="bottom"\n + tal:attributes="class python: is_action_selected and \'On\' or \'Off\'"\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 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éné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énérales\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 <tal:block tal:condition="is_action_selected">\n <td valign="bottom" width="17"\n diff --git a/product/ERP5/bootstrap/erp5_html_style/bt/change_log b/product/ERP5/bootstrap/erp5_html_style/bt/change_log index 0342887396..722a826084 100644 --- a/product/ERP5/bootstrap/erp5_html_style/bt/change_log +++ b/product/ERP5/bootstrap/erp5_html_style/bt/change_log @@ -1,3 +1,6 @@ +2006-05-22 Vincent +* Add "developper mode" buttons. + 2006-05-15 Romain * Update maintainers. diff --git a/product/ERP5/bootstrap/erp5_html_style/bt/dependency_list b/product/ERP5/bootstrap/erp5_html_style/bt/dependency_list index e69de29bb2..d0ca7aef23 100644 --- a/product/ERP5/bootstrap/erp5_html_style/bt/dependency_list +++ b/product/ERP5/bootstrap/erp5_html_style/bt/dependency_list @@ -0,0 +1 @@ +erp5_core \ No newline at end of file -- 2.30.9