From d45ae87037103b935b47b50ef76041a8163e02a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Fri, 3 Sep 2010 13:15:30 +0000 Subject: [PATCH] include external editor links git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38141 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/dtml/editConstraintForm.dtml | 5 ++++- product/ERP5Type/dtml/editDocumentForm.dtml | 5 ++++- product/ERP5Type/dtml/editExtensionForm.dtml | 5 ++++- product/ERP5Type/dtml/editPropertySheetForm.dtml | 5 ++++- product/ERP5Type/dtml/editTestForm.dtml | 5 ++++- product/ERP5Type/dtml/viewConstraintList.dtml | 6 +++++- product/ERP5Type/dtml/viewDocumentList.dtml | 6 +++++- product/ERP5Type/dtml/viewExtensionList.dtml | 6 +++++- product/ERP5Type/dtml/viewPropertySheetList.dtml | 6 +++++- product/ERP5Type/dtml/viewTestList.dtml | 6 +++++- 10 files changed, 45 insertions(+), 10 deletions(-) diff --git a/product/ERP5Type/dtml/editConstraintForm.dtml b/product/ERP5Type/dtml/editConstraintForm.dtml index a789fbb63e..b769714106 100644 --- a/product/ERP5Type/dtml/editConstraintForm.dtml +++ b/product/ERP5Type/dtml/editConstraintForm.dtml @@ -1,7 +1,10 @@ <dtml-var manage_page_header> <dtml-var manage_tabs> -<h2>Edit Constraint Class: <dtml-var class_id></h2> +<h2>Edit Constraint Class: <dtml-var class_id> + <dtml-if expr="hasattr(this(), 'externalEditLink_')"> + <dtml-var expr="externalEditLink_(this()['Constraint'][class_id])"> + </dtml-if></h2> <form method="POST" action="<dtml-var absolute_url>"> <input type="hidden" name=":default_method" value="changeConstraintEditingPreferences"> <table width="100%" cellspacing="0" cellpadding="2" border="0"> diff --git a/product/ERP5Type/dtml/editDocumentForm.dtml b/product/ERP5Type/dtml/editDocumentForm.dtml index 38979bd7fb..39724e01c7 100644 --- a/product/ERP5Type/dtml/editDocumentForm.dtml +++ b/product/ERP5Type/dtml/editDocumentForm.dtml @@ -1,7 +1,10 @@ <dtml-var manage_page_header> <dtml-var manage_tabs> -<h2>Edit Document Class: <dtml-var class_id></h2> +<h2>Edit Document Class: <dtml-var class_id> + <dtml-if expr="hasattr(this(), 'externalEditLink_')"> + <dtml-var expr="externalEditLink_(this()['Document'][class_id])"> + </dtml-if></h2> <form method="POST" action="<dtml-var absolute_url>"> <input type="hidden" name=":default_method" value="changeDocumentEditingPreferences"> <table width="100%" cellspacing="0" cellpadding="2" border="0"> diff --git a/product/ERP5Type/dtml/editExtensionForm.dtml b/product/ERP5Type/dtml/editExtensionForm.dtml index 9d6cb5cab1..7aaaea5c88 100644 --- a/product/ERP5Type/dtml/editExtensionForm.dtml +++ b/product/ERP5Type/dtml/editExtensionForm.dtml @@ -1,7 +1,10 @@ <dtml-var manage_page_header> <dtml-var manage_tabs> -<h2>Edit Extension Class: <dtml-var class_id></h2> +<h2>Edit Extension Class: <dtml-var class_id> + <dtml-if expr="hasattr(this(), 'externalEditLink_')"> + <dtml-var expr="externalEditLink_(this()['Extensions'][class_id])"> + </dtml-if></h2> <form method="POST" action="<dtml-var absolute_url>"> <input type="hidden" name=":default_method" value="changeExtensionEditingPreferences"> <table width="100%" cellspacing="0" cellpadding="2" border="0"> diff --git a/product/ERP5Type/dtml/editPropertySheetForm.dtml b/product/ERP5Type/dtml/editPropertySheetForm.dtml index c6ba392a43..750c295fcf 100644 --- a/product/ERP5Type/dtml/editPropertySheetForm.dtml +++ b/product/ERP5Type/dtml/editPropertySheetForm.dtml @@ -1,7 +1,10 @@ <dtml-var manage_page_header> <dtml-var manage_tabs> -<h2>Edit Property Sheet Class: <dtml-var class_id></h2> +<h2>Edit Property Sheet Class: <dtml-var class_id> + <dtml-if expr="hasattr(this(), 'externalEditLink_')"> + <dtml-var expr="externalEditLink_(this()['PropertySheet'][class_id])"> + </dtml-if></h2> <form method="POST" action="<dtml-var absolute_url>"> <input type="hidden" name=":default_method" value="changePropertySheetEditingPreferences"> <table width="100%" cellspacing="0" cellpadding="2" border="0"> diff --git a/product/ERP5Type/dtml/editTestForm.dtml b/product/ERP5Type/dtml/editTestForm.dtml index 93e8af5e07..bfa96f4dc9 100644 --- a/product/ERP5Type/dtml/editTestForm.dtml +++ b/product/ERP5Type/dtml/editTestForm.dtml @@ -1,7 +1,10 @@ <dtml-var manage_page_header> <dtml-var manage_tabs> -<h2>Edit Test Class: <dtml-var class_id></h2> +<h2>Edit Test Class: <dtml-var class_id> + <dtml-if expr="hasattr(this(), 'externalEditLink_')"> + <dtml-var expr="externalEditLink_(this()['tests'][class_id])"> + </dtml-if></h2> <form method="POST" action="<dtml-var absolute_url>"> <input type="hidden" name=":default_method" value="changeTestEditingPreferences"> <table width="100%" cellspacing="0" cellpadding="2" border="0"> diff --git a/product/ERP5Type/dtml/viewConstraintList.dtml b/product/ERP5Type/dtml/viewConstraintList.dtml index 1cc1ea8e85..6f45e4004b 100644 --- a/product/ERP5Type/dtml/viewConstraintList.dtml +++ b/product/ERP5Type/dtml/viewConstraintList.dtml @@ -18,7 +18,11 @@ <tr class="row-hilite"> </dtml-if> <td> - <div class="list-item"><dtml-var sequence-item></div> + <div class="list-item"><dtml-var sequence-item> + <dtml-if expr="hasattr(this(), 'externalEditLink_')"> + <dtml-var expr="externalEditLink_(this()['Constraint'][_['sequence-item']])"> + </dtml-if> + </div> </td> <td> <div class="list-item"><a href="manage_editConstraintForm?class_id=<dtml-var sequence-item>">edit</a> <a href="importConstraint?class_id=<dtml-var sequence-item>">reload</a> diff --git a/product/ERP5Type/dtml/viewDocumentList.dtml b/product/ERP5Type/dtml/viewDocumentList.dtml index e179ceee7f..d421cb214c 100644 --- a/product/ERP5Type/dtml/viewDocumentList.dtml +++ b/product/ERP5Type/dtml/viewDocumentList.dtml @@ -19,7 +19,11 @@ <tr class="row-hilite"> </dtml-if> <td> - <div class="list-item"><dtml-var sequence-item></div> + <div class="list-item"><dtml-var sequence-item> + <dtml-if expr="hasattr(this(), 'externalEditLink_')"> + <dtml-var expr="externalEditLink_(this()['Document'][_['sequence-item']])"> + </dtml-if> + </div> </td> <td> <div class="list-item"><a href="manage_editDocumentForm?class_id=<dtml-var sequence-item>">edit</a> <a href="importDocument?class_id=<dtml-var sequence-item>">reload</a> diff --git a/product/ERP5Type/dtml/viewExtensionList.dtml b/product/ERP5Type/dtml/viewExtensionList.dtml index 6227ac35e5..cf2ea2ea4a 100644 --- a/product/ERP5Type/dtml/viewExtensionList.dtml +++ b/product/ERP5Type/dtml/viewExtensionList.dtml @@ -19,7 +19,11 @@ <tr class="row-hilite"> </dtml-if> <td> - <div class="list-item"><dtml-var sequence-item></div> + <div class="list-item"><dtml-var sequence-item> + <dtml-if expr="hasattr(this(), 'externalEditLink_')"> + <dtml-var expr="externalEditLink_(this()['Extensions'][_['sequence-item']])"> + </dtml-if> + </div> </td> <td> <div class="list-item"><a href="manage_editExtensionForm?class_id=<dtml-var sequence-item>">edit</a> diff --git a/product/ERP5Type/dtml/viewPropertySheetList.dtml b/product/ERP5Type/dtml/viewPropertySheetList.dtml index 0f60283488..7a23afbc8e 100644 --- a/product/ERP5Type/dtml/viewPropertySheetList.dtml +++ b/product/ERP5Type/dtml/viewPropertySheetList.dtml @@ -19,7 +19,11 @@ <tr class="row-hilite"> </dtml-if> <td> - <div class="list-item"><dtml-var sequence-item></div> + <div class="list-item"><dtml-var sequence-item> + <dtml-if expr="hasattr(this(), 'externalEditLink_')"> + <dtml-var expr="externalEditLink_(this()['PropertySheet'][_['sequence-item']])"> + </dtml-if> + </div> </td> <td> <div class="list-item"><a href="manage_editPropertySheetForm?class_id=<dtml-var sequence-item>">edit</a> <a href="importPropertySheet?class_id=<dtml-var sequence-item>">reload</a> diff --git a/product/ERP5Type/dtml/viewTestList.dtml b/product/ERP5Type/dtml/viewTestList.dtml index 09f11489a9..92b37bb5b2 100644 --- a/product/ERP5Type/dtml/viewTestList.dtml +++ b/product/ERP5Type/dtml/viewTestList.dtml @@ -15,7 +15,11 @@ <dtml-in getLocalTestList> <tr> <td> - <div class="list-item"><dtml-var sequence-item></div> + <div class="list-item"><dtml-var sequence-item> + <dtml-if expr="hasattr(this(), 'externalEditLink_')"> + <dtml-var expr="externalEditLink_(this()['tests'][_['sequence-item']])"> + </dtml-if> + </div> </td> <td> <div class="list-item"><a href="manage_editTestForm?class_id=<dtml-var sequence-item>">edit</a> -- 2.30.9