From 72c08d9cb0a3540454b02c270b7c67fbb383258a Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Mon, 6 Aug 2007 14:20:45 +0000
Subject: [PATCH] update manageForms to set alertCode on subscription

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15496 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../dtml/explainSynchronizationTool.dtml        |  5 ++++-
 .../ERP5SyncML/dtml/manageSubscriptions.dtml    | 17 +++++++++++++++++
 .../ERP5SyncML/dtml/manage_addSubscription.dtml | 17 +++++++++++++++++
 3 files changed, 38 insertions(+), 1 deletion(-)

diff --git a/product/ERP5SyncML/dtml/explainSynchronizationTool.dtml b/product/ERP5SyncML/dtml/explainSynchronizationTool.dtml
index b4797f0da4..b7fb33a7f8 100644
--- a/product/ERP5SyncML/dtml/explainSynchronizationTool.dtml
+++ b/product/ERP5SyncML/dtml/explainSynchronizationTool.dtml
@@ -39,7 +39,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
     Subscription's elements :</br>
         
         <b>Title :</b> the title used to identify the Subscription</br>
-        <b>Use Activity :</b> activate or not the use of activity.</br> 
+        <b>Use Activity :</b> activate or not the use of activity.</br>
+        <b>Alert Code :</b> Synchronisation type.</br>
+<u>Two Way</u> : A normal sync type in which the client and the server exchange information about modified data in these devices. The client sends the modifications first.<br/>
+<u>One way From Server</u> : A sync type in which the client gets all modifications from the server but the client does not send its modifications to the server.<br/>
         <b>Publication Url :</b> the server's adrress mail</br>
         <b>Subscription Url :</b> the client's address mail</br>
         <b>Destination Path :</b> the path where are yours objects</br>
diff --git a/product/ERP5SyncML/dtml/manageSubscriptions.dtml b/product/ERP5SyncML/dtml/manageSubscriptions.dtml
index 8a5eeeacaa..81c2a08937 100644
--- a/product/ERP5SyncML/dtml/manageSubscriptions.dtml
+++ b/product/ERP5SyncML/dtml/manageSubscriptions.dtml
@@ -57,6 +57,23 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
           <input type="checkbox" name="activity_enabled" value="1" <dtml-if expr="getActivityEnabled()">CHECKED</dtml-if>>
         </td>
       </tr>
+      <tr>
+        <td align="left" valign="top">
+        <div class="form-label">
+        Alert Code<br/>
+        Two way = 200<br/>
+        One Way From Server = 204
+        </label></div>
+        </td>
+        <td align="left" valign="top">
+        <select name="alert_code">
+          <dtml-in getAlertCodeList>
+            <dtml-let item=sequence-item>
+            <option value="<dtml-var item>"  <dtml-if expr="getAlertCode() == str(item)">SELECTED</dtml-if>><dtml-var item></option>
+            </dtml-let>
+          </dtml-in>
+        </td>
+      </tr>
       <tr>
         <td align="left" valign="top">
         <div class="form-label">
diff --git a/product/ERP5SyncML/dtml/manage_addSubscription.dtml b/product/ERP5SyncML/dtml/manage_addSubscription.dtml
index 60ecd66257..18ffe51981 100644
--- a/product/ERP5SyncML/dtml/manage_addSubscription.dtml
+++ b/product/ERP5SyncML/dtml/manage_addSubscription.dtml
@@ -53,6 +53,23 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
       <input type="checkbox" name="activity_enabled" value="1">
     </td>
   </tr>
+  <tr>
+    <td align="left" valign="top">
+    <div class="form-label">
+    Alert Code<br/>
+    Two way = 200<br/>
+    One Way From Server = 204
+    </label></div>
+    </td>
+    <td align="left" valign="top">
+    <select name="alert_code">
+      <dtml-in getAlertCodeList>
+        <dtml-let item=sequence-item>
+        <option value="<dtml-var item>"><dtml-var item></option>
+        </dtml-let>
+      </dtml-in>
+    </td>
+  </tr>
   <tr>
     <td align="left" valign="top">
     <div class="form-label">
-- 
2.30.9