Skip to contentSkip to conversation

conga/luci cluster/form-macros cluster/resourc ...

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

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2006-09-14 21:24:25

Modified files:
luci/cluster : form-macros resource-form-macros
resource_form_handlers.js
luci/homebase : homebase_common.js luci/site/luci/Extensions: cluster_adapters.py

Log message:
the end of the service/resource frontend nastiness. i hope.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.59&r2=1.60
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource-form-macros.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource_form_handlers.js.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/homebase_common.js.diff?cvsroot=cluster&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.64&r2=1.65

luci/cluster/form-macros +4 -16
@@ -1148,15 +1148,9 @@
 
 	<div id="resskel" class="invisible">
 		<tal:block metal:use-macro="here/resource-form-macros/macros/resource-swap-form" />
-		<p class="invisible expander">
-			<img class="service_tree" name="arrow_down" alt="[-]"
-				src="/luci/cluster/arrow_down.png"
-				onClick="collapse_div(this)">
-			<span class="service_tree expander">Hide Children</span>
-		</p>
 	</div>
 
-	<h2>Service Composition</h2>
+	<h2 onclick="forms_to_xml()">Service Composition</h2>
 
 	<div class="service_comp_list" tal:attributes="id sinfo/root_uuid">
 
@@ -1205,19 +1199,13 @@
 			<tal:block metal:use-macro="here/resource-form-macros/macros/scr_macro" />
 		</span>
 
-		<p
-			tal:attributes="
-				class python: (res['max_depth'] == 0 and 'invisible' or ('rc_indent' + str(res['indent_ctr'] - 1))) + ' expander'">
-			<img class="service_tree" name="arrow_down" alt="[-]"
-				src="/luci/cluster/arrow_down.png"
-				onClick="collapse_div(this)">
-			<span class="service_tree expander">Hide Children</span>
-		</p>
-
 		<tal:block
 			tal:replace="structure python: '</div>' * (res['indent_ctr'] - res['max_depth'])" />
 	</div>
 	</div>
+	<form name="master">
+		<input type="hidden" name="form_xml" />
+	</form>
 </div>
 
 <div metal:define-macro="service-form">
luci/cluster/resource-form-macros +92 -132

345 lines not on this page · raw message

luci/cluster/resource_form_handlers.js +103 -25

170 lines not on this page · raw message

luci/homebase/homebase_common.js +0 -42

45 lines not on this page · raw message

luci/site/luci/Extensions/cluster_adapters.py +1 -1
@@ -966,7 +966,7 @@
   if svc != None:
     indent_ctr = 0
     children = svc.getChildren()
-    root_uuid = make_uuid('resource') 
+    root_uuid = 'toplevel';
     for child in children:
       recurse_resources(root_uuid, child, resource_list, indent_ctr)