[Erp5-report] r7391 - in /erp5/trunk/products/ERP5/bootstrap/erp5_html_style: SkinTemplateI...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon May 22 12:46:24 CEST 2006


Author: vincent
Date: Mon May 22 12:46:18 2006
New Revision: 7391

URL: http://svn.erp5.org?rev=7391&view=rev
Log:
2006-05-22 Vincent
* Add "developper mode" buttons.

Added:
    erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_developper_buttons.xml
Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/breadcrumb.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/field_render.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_dialog.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_list.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_view.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_view_dialog.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/index_html.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/menu_box.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/view_selection_box.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_html_style/bt/change_log
    erp5/trunk/products/ERP5/bootstrap/erp5_html_style/bt/dependency_list

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/breadcrumb.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/breadcrumb.xml?rev=7391&r1=7390&r2=7391&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/breadcrumb.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/breadcrumb.xml Mon May 22 12:46:18 2006
@@ -142,7 +142,11 @@
           <td align="right"\n
               tal:condition="python: not here.portal_membership.isAnonymousUser()">\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
           </td>\n
           <td align="right"\n

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/field_render.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/field_render.xml?rev=7391&r1=7390&r2=7391&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/field_render.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/field_render.xml Mon May 22 12:46:18 2006
@@ -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

Added: erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_developper_buttons.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_developper_buttons.xml?rev=7391&view=auto
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_developper_buttons.xml (added)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_developper_buttons.xml Mon May 22 12:46:18 2006
@@ -1,0 +1,154 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <tuple>
+          <string>Products.PageTemplates.ZopePageTemplate</string>
+          <string>ZopePageTemplate</string>
+        </tuple>
+        <none/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__ac_local_roles__</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>vincent</string> </key>
+                    <value>
+                      <list>
+                        <string>Owner</string>
+                      </list>
+                    </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>_bind_names</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>_asgns</string> </key>
+                        <value>
+                          <dictionary>
+                            <item>
+                                <key> <string>name_subpath</string> </key>
+                                <value> <string>traverse_subpath</string> </value>
+                            </item>
+                          </dictionary>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>_owner</string> </key>
+            <value>
+              <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="edit_link">\n
+  <a tal:condition="python: hasattr(object, \'meta_type\') and object.Base_getSourceVisibility()"\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
+                                                       alt info;"/></a>\n
+</tal:block>\n
+<tal:block metal:define-macro="form">\n
+  <tal:block tal:define="image python: \'editform.png\';\n
+                         info python: \'Edit this form\';\n
+                         object python: form;\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
+                         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/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/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/edit_link"/>\n
+  </tal:block>\n
+</tal:block>\n
+<tal:block metal:define-macro="field">\n
+  <tal:block tal:define="image python: \'editfield.png\';\n
+                         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/edit_link"/>\n
+  </tal:block>\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 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>
+
+]]></string> </value>
+        </item>
+        <item>
+            <key> <string>content_type</string> </key>
+            <value> <string>text/html</string> </value>
+        </item>
+        <item>
+            <key> <string>expand</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>form_developper_buttons</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_dialog.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_dialog.xml?rev=7391&r1=7390&r2=7391&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_dialog.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_dialog.xml Mon May 22 12:46:18 2006
@@ -88,6 +88,7 @@
 <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 @@
           </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 @@
           </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 @@
           <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

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_list.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_list.xml?rev=7391&r1=7390&r2=7391&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_list.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_list.xml Mon May 22 12:46:18 2006
@@ -93,17 +93,19 @@
 \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

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_view.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_view.xml?rev=7391&r1=7390&r2=7391&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_view.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_view.xml Mon May 22 12:46:18 2006
@@ -116,6 +116,7 @@
         <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 @@
                   <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

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_view_dialog.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_view_dialog.xml?rev=7391&r1=7390&r2=7391&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_view_dialog.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/form_view_dialog.xml Mon May 22 12:46:18 2006
@@ -81,6 +81,7 @@
 <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 @@
                       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 @@
                     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 @@
                   </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

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/index_html.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/index_html.xml?rev=7391&r1=7390&r2=7391&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/index_html.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/index_html.xml Mon May 22 12:46:18 2006
@@ -90,6 +90,11 @@
       <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 @@
             <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

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/menu_box.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/menu_box.xml?rev=7391&r1=7390&r2=7391&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/menu_box.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/menu_box.xml Mon May 22 12:46:18 2006
@@ -99,11 +99,22 @@
         <tr>\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
-              <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 @@
               tal:attributes="src string:$portal_url/images/exec16.png"/> &nbsp;\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

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/view_selection_box.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/view_selection_box.xml?rev=7391&r1=7390&r2=7391&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/view_selection_box.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/view_selection_box.xml Mon May 22 12:46:18 2006
@@ -158,23 +158,18 @@
              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&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
+           <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

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_html_style/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_html_style/bt/change_log?rev=7391&r1=7390&r2=7391&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_html_style/bt/change_log (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_html_style/bt/change_log Mon May 22 12:46:18 2006
@@ -1,3 +1,6 @@
+2006-05-22 Vincent
+* Add "developper mode" buttons.
+
 2006-05-15 Romain
 * Update maintainers.
 

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_html_style/bt/dependency_list
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_html_style/bt/dependency_list?rev=7391&r1=7390&r2=7391&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_html_style/bt/dependency_list (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_html_style/bt/dependency_list Mon May 22 12:46:18 2006
@@ -1,0 +1,1 @@
+erp5_core




More information about the Erp5-report mailing list