conga/luci homebase/form-macros site/luci/Exte ...
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2006-06-30 21:39:51
Modified files:
luci/homebase : form-macros luci/site/luci/Extensions: homebase_adapters.py
Log message:
fix blank page homebase bug
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/form-macros.diff?cvsroot=cluster&r1=1.25&r2=1.26
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/homebase_adapters.py.diff?cvsroot=cluster&r1=1.9&r2=1.10
luci/homebase/form-macros +18 -9
@@ -1,7 +1,7 @@ <html> <tal:comment replace="nothing"> - $Id: form-macros,v 1.25 2006/06/30 18:06:10 rmccabe Exp $ + $Id: form-macros,v 1.26 2006/06/30 21:39:51 rmccabe Exp $ </tal:comment> <head>
@@ -67,10 +67,12 @@ </select> <input name="pagetype" type="hidden" - tal:attributes="value request/pagetype | request/form/pagetype | nothing" /> + tal:attributes="value request/form/pagetype | request/pagetype | nothing" /> <input name="absoluteURL" type="hidden" tal:attributes="value python:data['children'][data['curIndex']]['absolute_url']" /> + <input name="baseURL" type="hidden" + tal:attributes="value python:data['children'][data['curIndex']]['base_url']" /> <div class="hbSubmit" tal:condition="python:userList" id="hbSubmit"> <input class="hbSubmit" name="Submit" type="button" value="Submit" onClick="validateForm(document.adminform);" />
@@ -129,10 +131,12 @@ </table> <input name="pagetype" type="hidden" - tal:attributes="value request/pagetype | request/form/pagetype | nothing" /> + tal:attributes="value request/form/pagetype | request/pagetype | nothing" /> <input name="absoluteURL" type="hidden" tal:attributes="value python:data['children'][data['curIndex']]['absolute_url']" /> + <input name="baseURL" type="hidden" + tal:attributes="value python:data['children'][data['curIndex']]['base_url']" /> <div class="hbSubmit" id="hbSubmit"> <input class="hbSubmit" name="Submit" type="button" value="Submit" onClick="validateForm(document.adminform);" />
@@ -180,13 +184,15 @@ <input name="absoluteURL" type="hidden" tal:attributes="value python:data['children'][data['curIndex']]['absolute_url']" /> + <input name="baseURL" type="hidden" + tal:attributes="value python:data['children'][data['curIndex']]['base_url']" /> <input name="pagetype" type="hidden" - tal:attributes="value request/pagetype | request/form/pagetype | nothing" /> + tal:attributes="value request/form/pagetype | request/pagetype | nothing" /> <span tal:condition="python:perms" tal:content="string:Select a User" /><br/> - <select tal:omit-tag="python: not perms" class="homebase" name="userList" onChange="document.location = adminform.absoluteURL.value + '&user=' + adminform.userList.options[adminform.userList.selectedIndex].text"> + <select tal:omit-tag="python: not perms" class="homebase" name="userList" onChange="document.location = adminform.baseURL.value + '&user=' + adminform.userList.options[adminform.userList.selectedIndex].text"> <tal:block tal:repeat="user python:perms"> <option class="homebase" tal:content="python:user"
@@ -307,7 +313,7 @@ </h2> <input type="hidden" name="pagetype" - tal:attributes="value request/pagetype | request/form/pagetype | nothing" /> + tal:attributes="value request/form/pagetype | request/pagetype | nothing" /> <h3 class="homebase" tal:condition="python: systems[0] and len(systems[0]) > 0"> Clusters
@@ -419,12 +425,14 @@ <h2 class="homebase">Add a Storage System</h2> <input name="pagetype" type="hidden" - tal:attributes="value request/pagetype | request/form/pagetype | nothing" /> + tal:attributes="value request/form/pagetype | request/pagetype | nothing" /> <input name="numStorage" id="numStorage" type="hidden" value="1" /> <input name="absoluteURL" type="hidden" tal:attributes="value python:data['children'][data['curIndex']]['absolute_url']" /> + <input name="baseURL" type="hidden" + tal:attributes="value python:data['children'][data['curIndex']]['base_url']" /> <table id="systemsTable" class="systemsTable" border="0" cellspacing="0">
@@ -493,12 +501,14 @@ tal:define="global clusters python:here.getClusters()" /> <input name="pagetype" type="hidden" - tal:attributes="value request/pagetype | request/form/pagetype | nothing" /> + tal:attributes="value request/form/pagetype | request/pagetype | nothing" /> <input name="numStorage" id="numStorage" type="hidden" value="3" /> <input name="absoluteURL" type="hidden" tal:attributes="value python:data['children'][data['curIndex']]['absolute_url']" /> + <input name="baseURL" type="hidden" + tal:attributes="value python:data['children'][data['curIndex']]['base_url']" /> <h2 class="homebase">Add Cluster</h2>
@@ -566,6 +576,5 @@ </form> </div> - </body> </html>
luci/site/luci/Extensions/homebase_adapters.py +32 -25
172 lines not on this page · raw message