conga/luci/cluster form-macros
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-01-22 21:18:59
Modified files:
luci/cluster : form-macros
Log message:
GULM properties
luci/cluster/form-macros +58 -0
@@ -476,6 +476,13 @@ class python: 'configTab' + (configTabNum == 4 and ' configTabActive' or ''); ">Quorum Partition</a> </li> + + <li class="configTab" + tal:condition="clusterinfo/gulm"> + <a tal:attributes=" + href clusterinfo/gulm_url | nothing; + class python: 'configTab' + (configTabNum == 5 and ' configTabActive' or '')">GULM</a> + </li> </ul> <div id="configTabContent" tal:condition="python: configTabNum == 1">
@@ -1156,6 +1163,57 @@ </script> </form> </div> + + <tal:block tal:condition="clusterinfo/gulm"> + <div id="configTabContent" tal:condition="python: configTabNum == 5"> + <script type="text/javascript" + src="/luci/homebase/homebase_common.js"> + </script> + <script type="text/javascript" + src="/luci/cluster/validate_config_gulm.js"> + </script> + + <form name="basecluster" action="" method="post"> + <input type="hidden" name="cluster_version" + tal:attributes="value os_version | nothing" /> + <input type="hidden" name="pagetype" + tal:attributes="value request/pagetype | request/form/pagetype" + /> + <input type="hidden" name="configtype" value="gulm" /> + <input type="hidden" name="clustername" + tal:attributes="value request/clustername | clusterinfo/clustername | nothing" /> + + <strong class="cluster">GULM Configuration</strong><br/> + <table id="systemsTable" class="systemsTable" cellspacing="0"> + <thead> + <tr class="systemsTable" align="left"> + <th class="systemsTable">Node</th> + <th class="systemsTable">Lock Server</th> + </tr> + </thead> + <tbody> + <tal:block tal:repeat="c clusterinfo/gulm_lockservers"> + <tr class="systemsTable"> + <td class="systemsTable"> + <span tal:replace="python:c[0]" /> + </td> + <td class="systemsTable"> + <input type="checkbox" + tal:attributes=" + name python:c[0]; + checked python:c[1]" /> + </td> + </tr> + </tal:block> + </tbody> + </table> + <div class="spacing configTabContent"></div> + <div class="hbSubmit spacing configTabContent"> + <input type="button" value="Apply" + onClick="validate_form(this.form)"/> + </div> + </div> + </tal:block> </tal:block> </div>