conga/luci cluster/form-macros site/luci/Exten ...
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-01-31 23:36:26
Modified files:
luci/cluster : form-macros
luci/site/luci/Extensions: cluster_adapters.py
Log message:
fix vm service code
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.168&r2=1.169
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.221&r2=1.222
luci/cluster/form-macros +78 -16
@@ -3735,31 +3735,93 @@ </div> <div metal:define-macro="xenvmadd-form"> - <span tal:define="global vmforminfo python: here.getXenVMInfo(modelb, request)"/> - <form method="get" tal:attributes="action vmforminfo/formurl"> - <h4>Name for this VM: </h4><input type="text" name="xenvmname" value=""/> - <h4>Path to configuration file: </h4><input type="text" name="xenvmpath" value=""/> - <input type="submit" value="Create Xen VM"/> - </form> +<form method="post" action=""> + <input type="hidden" name="clustername" + tal:attributes="value request/clustername | nothing" /> + + <input type="hidden" name="pagetype" + tal:attributes="value request/pagetype | nothing" /> + + <div class="service_comp_list"> + <table class="systemsTable"> + <thead class="systemsTable"> + <tr class="systemsTable"><td class="systemsTable"> + <p class="reshdr">Create a Virtual Machine Service</p> + </td></tr> + <tfoot class="systemsTable"> + <tr class="systemsTable"><td colspan="2"> + <div class="hbSubmit"> + <input type="submit" value="Create Virtual Machine" /> + </div> + </td></tr> + </tfoot> + <tbody class="systemsTable"> + <tr class="systemsTable"> + <td>Virtual machine name</td> + <td><input type="text" name="vmname" value="" /></td> + </tr> + <tr class="systemsTable"> + <td>Path to VM configuration file</td> + <td><input type="text" name="vmpath" value="" /></td> + </tr> + </tbody> + </table> + </div> +</form> </div> <div metal:define-macro="xenvmconfig-form"> - <h4>Properties for Xen VM <font color="green"><span tal:content="request/servicename"/></font></h4> - <span tal:define="global xeninfo python:here.getXenVMInfo(modelb, request)"> - <form method="get" tal:attributes="action xeninfo/formurl"> - <h4>Name of VM: </h4><input type="text" name="xenvmname" value="" tal:attributes="value xeninfo/name"/> - <h4>Path to configuration file: </h4><input type="text" name="xenvmpath" value="" tal:attributes="value xeninfo/path"/> - <input type="button" value="Delete"/> - <input type="submit" value="Update"/> - </form> - </span> +<form method="post" action="" + tal:define="vminfo python:here.getXenVMInfo(modelb, request)"> + + <input type="hidden" name="clustername" + tal:attributes="value request/clustername | nothing" /> + + <input type="hidden" name="pagetype" + tal:attributes="value request/pagetype | nothing" /> + + <input type="hidden" name="oldname" + tal:attributes="value vminfo/name | nothing" /> + + <div class="service_comp_list"> + <table class="systemsTable"> + <thead class="systemsTable"> + <tr class="systemsTable"><td class="systemsTable"> + <p class="reshdr">Properties for <tal:block tal:replace="vminfo/name | string:virtual machine"/></p> + </td></tr> + <tfoot class="systemsTable"> + <tr class="systemsTable"><td colspan="2"> + <div class="hbSubmit"> + <input name="submit" type="submit" value="Update Virtual Machine" /> + <input name="delete" type="submit" value="Delete Virtual Machine" /> + </div> + </td></tr> + </tfoot> + <tbody class="systemsTable"> + <tr class="systemsTable"> + <td>Virtual machine name</td> + <td> + <input type="text" name="vmname" + tal:attributes="value vminfo/name | nothing" /> + </td> + </tr> + <tr class="systemsTable"> + <td>Path to VM configuration file</td> + <td> + <input type="text" name="vmpath" + tal:attributes="value vminfo/path | nothing" /> + </td> + </tr> + </tbody> + </table> + </div> +</form> </div> <div metal:define-macro="xenvmprocess"> <span tal:define="retrn python:here.processXenVM(request)"/> </div> - <div metal:define-macro="serviceadd-form"> <script type="text/javascript"> set_page_title('Luci ??? cluster ??? services ??? Add a new service');
luci/site/luci/Extensions/cluster_adapters.py +96 -44
162 lines not on this page · raw message