Skip to contentSkip to conversation

conga/luci/cluster form-macros resource-form-m ...

Cluster-devel [email protected] 1 participant 1 message Sep 6, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2006-09-06 22:13:33

Modified files:
luci/cluster : form-macros resource-form-macros
resource_form_handlers.js validate_config_qdisk.js

Log message:
more UI and JS validation bits

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.55&r2=1.56
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource-form-macros.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource_form_handlers.js.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/validate_config_qdisk.js.diff?cvsroot=cluster&r1=1.1&r2=1.2

luci/cluster/form-macros +20 -2
@@ -551,15 +551,18 @@
 					<th class="systemsTable">
 						<div class="systemsTableTop">Score</div>
 					</th>
+					<th>
+						&nbsp;
+					</th>
 				</tr>
 			</thead>
 
-			<tbody class="systemsTable" id='heuristicList'
+			<tbody class="systemsTable" id="heuristicList"
 				tal:define="global heuristics clusterinfo/hlist">
 
 				<tal:block tal:condition="python: not len(heuristics)">
 				<input type="hidden" name="num_heuristics" id="num_heuristics" value="0">
-				<tr class="systemsTable">
+				<tr class="systemsTable" id="heuristic0">
 					<td class="systemsTable">
 						<input class="qdname qdisk" type="text" name="heuristic0:hname" id="heuristic0:hname" value="">
 					</td>
@@ -572,6 +575,12 @@
 					<td class="systemsTable">
 						<input class="qdscore qdisk" type="text" name="heuristic0:hscore" id="heuristic0:hscore" value="">
 					</td>
+					<td class="systemsTable">
+						<img class="qdscore qdisk qdel_img"
+							id="heuristic0:hdel" name="heuristic0:hdel"
+							src="/luci/homebase/x.png"
+							onClick="delete_qdisk_heur(this, document.quorum_partition);">
+					</td>
 				</tr>
 				</tal:block>
 
@@ -584,6 +593,7 @@
 
 				<tr class="systemsTable"
 					tal:repeat="heuristic heuristics"
+					tal:attributes="id python: 'heuristic' + str(curHeur)"
 					tal:define="global curHeur python: curHeur + 1">
 
 					<td class="systemsTable">
@@ -614,6 +624,14 @@
 								id python: 'heuristic' + str(curHeur) + ':hscore';
 								name python: 'heuristic' + str(curHeur) + ':hscore';"/>
 					</td>
+					<td class="systemsTable">
+						<img class="qdscore qdisk qdel_img"
+							src="/luci/homebase/x.png"
+							onClick="delete_qdisk_heur(this, document.quorum_partition);"
+							tal:attributes="
+								id python: 'heuristic' + str(curHeur) + ':hdel';
+								name python: 'heuristic' + str(curHeur) + ':hdel';"/>
+					</td>
 				</tr>
 				</tal:block>
 			</tbody>
luci/cluster/resource-form-macros +67 -18

145 lines not on this page · raw message

luci/cluster/resource_form_handlers.js +128 -163

292 lines not on this page · raw message

luci/cluster/validate_config_qdisk.js +132 -46

292 lines not on this page · raw message