From 5fd5133be54f5556fd735470134df2189487e478 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Thu, 23 Dec 2004 10:20:34 +0000
Subject: [PATCH] initial upload

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2104 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/dtml/editConstraintForm.dtml | 15 +++++++++
 .../ERP5Type/dtml/explainDummyClassTool.dtml  |  6 ++++
 product/ERP5Type/dtml/viewConstraintList.dtml | 32 +++++++++++++++++++
 3 files changed, 53 insertions(+)
 create mode 100755 product/ERP5Type/dtml/editConstraintForm.dtml
 create mode 100755 product/ERP5Type/dtml/explainDummyClassTool.dtml
 create mode 100755 product/ERP5Type/dtml/viewConstraintList.dtml

diff --git a/product/ERP5Type/dtml/editConstraintForm.dtml b/product/ERP5Type/dtml/editConstraintForm.dtml
new file mode 100755
index 0000000000..2143ca7e13
--- /dev/null
+++ b/product/ERP5Type/dtml/editConstraintForm.dtml
@@ -0,0 +1,15 @@
+<dtml-var manage_page_header>
+<dtml-var manage_tabs>
+
+<h2>Edit Constraint Class: <dtml-var class_id></h2>
+
+<dtml-if message><dtml-var message></dtml-if>
+
+<form method="POST" action="<dtml-var absolute_url>">
+<textarea name="text:text" rows="20" cols="82"><dtml-var "getConstraintText(class_id)"></textarea>
+<br>
+<input type="hidden" name="class_id:string" value="<dtml-var class_id>">
+<input type="submit" value="Save" name="editConstraint:method">
+</form>
+
+<dtml-var manage_page_footer>
diff --git a/product/ERP5Type/dtml/explainDummyClassTool.dtml b/product/ERP5Type/dtml/explainDummyClassTool.dtml
new file mode 100755
index 0000000000..6cc705619a
--- /dev/null
+++ b/product/ERP5Type/dtml/explainDummyClassTool.dtml
@@ -0,0 +1,6 @@
+<dtml-var manage_page_header>
+<dtml-var manage_tabs>
+
+<p>This tool is the Dummy Class Tool. It is mostly a placeholder for the <i>full</i> Class Tool.</p>
+
+<dtml-var manage_page_footer>
diff --git a/product/ERP5Type/dtml/viewConstraintList.dtml b/product/ERP5Type/dtml/viewConstraintList.dtml
new file mode 100755
index 0000000000..e93457457e
--- /dev/null
+++ b/product/ERP5Type/dtml/viewConstraintList.dtml
@@ -0,0 +1,32 @@
+<dtml-var manage_page_header>
+<dtml-var manage_tabs>
+
+<div class="std-text"><p><strong>Local Constraint Classes</strong></p></div>
+
+<form method="POST" action="newConstraint">
+<table width="100%">
+  <tr class="list-header">
+    <th>
+      Class
+    </th>
+    <th>
+      Actions
+    </th>
+  <dtml-in getLocalConstraintList>
+  <tr>
+    <td>
+      <div class="list-item"><dtml-var sequence-item></div>
+    </td>   
+    <td>
+      <div class="list-item"><a href="manage_editConstraintForm?class_id=<dtml-var sequence-item>">edit</a>&nbsp;
+      </div>
+    </td>   
+  </tr>    
+  </dtml-in>
+</table>
+
+<input type="text" name="class_id" /> <input type="submit" value="Create New Constraint" />
+
+</form>
+
+<dtml-var manage_page_footer>
-- 
2.30.9