[Erp5-report] r6887 - /erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Apr 24 14:24:33 CEST 2006


Author: vincent
Date: Mon Apr 24 14:24:31 2006
New Revision: 6887

URL: http://svn.erp5.org?rev=6887&view=rev
Log:
Add developper jump menu entries to workflows that apply to context.
Add a link to portal_activities when there are activities runing.
Add a link to portal type.
Add a link to context help.

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/menu_box.xml

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=6887&r1=6886&r2=6887&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 Apr 24 14:24:31 2006
@@ -105,6 +105,12 @@
                        i18n:translate="" i18n:domain="ui"\n
                        tal:attributes="value action/url">Saut</option>\n
               </tal:block>\n
+              <tal:block tal:condition="python: 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
             <input type="image" src="/images/erp5_html_style/images/jump.png" title="Jump"\n
@@ -159,12 +165,25 @@
               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:condition="python: here.portal_types[here.getPortalType()].Base_getSourceVisibility()">\n
+            <a i18n:attributes="title" i18n:domain="ui" title="Portal Type"\n
+             tal:attributes="href python: \'%s/manage_workspace\' % (here.portal_types[here.getPortalType()].absolute_url(),)">\n
+              <img alt="Help" src="images/portaltype.png" border="0" alt="Help" i18n:attributes="alt" i18n:domain="ui"/>\n
+            </a>\n
+          </td>\n
+          <td align="right" valign="center">\n
+            <tal:block metal:use-macro="context/form_developper_buttons/macros/help"/>\n
+          </td>\n
+          <td aligh="right" valign="center"\n
+           tal:condition="here/hasActivity | nothing">\n
+            <a title="Portal Activities"\n
+             tal:attributes="href python: here.portal_activities.Base_getSourceVisibility() 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




More information about the Erp5-report mailing list