[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] conga/luci/cluster form-macros



CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	jparsons sourceware org	2006-07-25 17:40:43

Modified files:
	luci/cluster   : form-macros 

Log message:
	support for quorumd

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.11&r2=1.12

--- conga/luci/cluster/form-macros	2006/07/25 02:27:08	1.11
+++ conga/luci/cluster/form-macros	2006/07/25 17:40:43	1.12
@@ -331,9 +331,109 @@
       </tfoot>
      </table>
   </form>
+   <form name="quorum_partition" action="" method="get" tal:attributes="action clusterinfo/quorumd_url">
+    <table id="systemsTable" class="systemsTable" border="0" cellspacing="0">
+     <thead class="systemsTable"> 
+      <tr class="systemsTable"><td class="systemsTable" colspan="1">
+         <div class="systemsTableTop">
+           <strong>Quorum Partition Configuration</strong>
+         </div>
+       </td></tr>
+      </thead>
+      <tbody class="systemsTable">
+        <tr class="systemsTable">
+         <td class="systemsTable"><input type="radio" name="quorumd" value="False" checked="" tal:attributes="checked python:clusterinfo['is_quorumd'] == 'False'"/><b> Do not use a Quorum Partition</b>
+         </td>
+        </tr>
+        <tr class="systemsTable">
+         <td class="systemsTable"><input type="radio" name="quorumd" value="True"/> <b> I prefer to use a Quorum Partition</b>
+         </td>
+        </tr>
+       <tr class="systemsTable">
+        <td class="systemsTable" colspan="2">Interval: <input type="text" name="interval" value="" tal:attributes="value clusterinfo/interval"/>
+        </td>
+       </tr>
+       <tr class="systemsTable">
+        <td class="systemsTable" colspan="2">Votes: <input type="text" name="votes" value="" tal:attributes="value clusterinfo/votes"/>
+        </td>
+       </tr>
+       <tr class="systemsTable">
+        <td class="systemsTable" colspan="2">TKO: <input type="text" name="tko" value="" tal:attributes="value clusterinfo/tko"/>
+        </td>
+       </tr>
+       <tr class="systemsTable">
+        <td class="systemsTable" colspan="2">Minimum Score: <input type="text" name="min_score" value="" tal:attributes="value clusterinfo/min_score"/>
+        </td>
+       </tr>
+       <tr class="systemsTable">
+        <td class="systemsTable" colspan="2">Device: <input type="text" name="device" value="" tal:attributes="value clusterinfo/device"/>
+        </td>
+       </tr>
+       <tr class="systemsTable">
+        <td class="systemsTable" colspan="2">Label: <input type="text" name="label" value="" tal:attributes="value clusterinfo/label"/>
+        </td>
+       </tr>
+      </tbody>
+     </table>
+    <table id="systemsTable" class="systemsTable" border="0" cellspacing="0">
+     <thead class="systemsTable"> 
+      <tr class="systemsTable"><td class="systemsTable" colspan="1">
+         <div class="systemsTableTop">
+           <strong>Heuristics</strong>
+         </div>
+       </td></tr>
+      <tr class="systemsTable">
+        <th class="systemsTable">
+         <div class="systemsTableTop">
+           Name
+         </div>
+       </th>
+        <th class="systemsTable">
+         <div class="systemsTableTop">
+           Path to Program
+         </div>
+       </th>
+        <th class="systemsTable">
+         <div class="systemsTableTop">
+           Interval
+         </div>
+       </th>
+        <th class="systemsTable">
+         <div class="systemsTableTop">
+           Score
+         </div>
+       </th>
+      </tr>
+      </thead>
+    
+      <tbody class="systemsTable">
+      <span tal:define="global heuristics clusterinfo/hlist"/>
+      <span tal:repeat="heuristic heuristics">
+       <tr class="systemsTable">
+        <td class="systemsTable"><input type="text" name="hname" value="" tal:attributes="value heuristic/hname"/>
+        </td>
+        <td class="systemsTable"><input type="text" name="hinterval" value="" tal:attributes="value heuristic/hinterval"/>
+        </td>
+        <td class="systemsTable" colspan="2"><input type="text" name="hprog" value="" tal:attributes="value heuristic/hprog"/>
+        </td>
+        <td class="systemsTable"><input type="text" name="hscore" value="" tal:attributes="value heuristic/hscore"/>
+        </td>
+       </tr>
+      </span>
+     </tbody>
+      <tfoot class="systemsTable">
+       <tr class="systemsTable"><td class="systemsTable" colspan="2">
+         <div class="systemsTableEnd">
+          <input type="submit" value="Apply"/>
+         </div>
+       </td></tr>
+      </tfoot>
+    </table>
+   </form>
   </div>
   <div metal:define-macro="clusterprocess-form">
-   <h2>Howdy!</h2>
+   <span tal:define="global r_agent python:here.getRicciAgentForCluster(request)"/> 
+   <span tal:define="res python:here.processClusterProps(r_agent, request)"/>
   </div>
   <div metal:define-macro="node-form">
      <span tal:define="global ricci_agent python:here.getRicciAgentForCluster(request)"/>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]