conga/luci/homebase form-macros
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2006-07-25 17:46:32
Modified files:
luci/homebase : form-macros
Log message:
refactored system / cluster delete
luci/homebase/form-macros +4 -24
@@ -1,7 +1,7 @@ <html> <tal:comment replace="nothing"> - $Id: form-macros,v 1.29 2006/07/19 20:20:53 rmccabe Exp $ + $Id: form-macros,v 1.30 2006/07/25 17:46:31 rmccabe Exp $ </tal:comment> <head>
@@ -220,7 +220,7 @@ <tal:block tal:repeat="cs python:systems[0][c]"> <div class="hbcheckdiv"> - <input type="checkbox" class="hombase" + <input type="checkbox" class="homebase" tal:define="global num_systems python:num_systems + 1" tal:attributes=" checked python:perms[curUser]['storage'][cs] and 'checked' or None;
@@ -239,7 +239,7 @@ <tal:block tal:repeat="s python: systems[1]"> <div class="hbcheckdiv"> - <input type="checkbox" class="hombase" + <input type="checkbox" class="homebase" tal:define="global num_systems python:num_systems + 1" tal:attributes=" checked python:perms[curUser]['storage'][s] and 'checked' or None;
@@ -325,7 +325,6 @@ tal:attributes=" name python:'__CLUSTER:' + cfname; id python:'__CLUSTER' + str(num_clusters); - onChange python: 'checkChildren(\'' + cfname + '\', this)'; value python: c" /> <input type="hidden" value=""
@@ -333,24 +332,6 @@ name python:'__CLUSTER:' + cfname" /> <span tal:omit-tag="" tal:content="python:c" /> - - <tal:block tal:repeat="cs python:systems[0][c]"> - <div class="hbcheckdiv" - tal:define="csfname python: here.strFilter('[^0-9A-Za-z_-]', '_', cs)"> - - <input type="checkbox" class="hombase" - tal:define="global num_systems python:num_systems + 1" - tal:attributes=" - name python:'__SYSTEM:' + csfname; - id python:'__SYSTEM' + str(num_systems); - value python:cs" - /> - - <input type="hidden" value="" - tal:attributes="name python:'__SYSTEM:' + csfname" /> - <span class="hbText" tal:omit-tag="" tal:content="python:cs" /> - </div> - </tal:block> </div> </tal:block>
@@ -360,8 +341,7 @@ <tal:block tal:repeat="s python: systems[1]"> <div class="hbcheckdiv" tal:define="sfname python: here.strFilter('[^0-9A-Za-z_-]', '_', s)"> - - <input type="checkbox" class="hombase" + <input type="checkbox" class="homebase" tal:define="global num_systems python:num_systems + 1" tal:attributes=" name python:'__SYSTEM:' + sfname;