Location: PHPKode > projects > Concentr Xml Tools > concentre-0.2.1-beta/doc/examples/xen.html
<!DOCTYPE
  html PUBLIC "-//W3C//DTD XHTML 1.0//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:form="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events"  xml:lang="en">
  <head>
    <title>All Controls</title>

		<link rel="stylesheet" type="text/css" href="../../share/concentre/css/xforms.css" />
    <script type="text/javascript" src="../../share/concentre/concentre.js"></script>
    
		<script type="text/javascript">
			
		</script>

    <form:model id="model1" >
      <form:instance src="xen_vm.xml" />
      <form:submission id="submission1" action="/modules/backend/post" method="post">
        <form:setvalue ref="submit-done" ev:event="xforms-submit-done">true</form:setvalue>
      </form:submission>
      <form:bind nodeset="networking" relevant="../skip-networking = 'false'" required="true()" />
    </form:model>
  </head>

  <body>
   <p>
			<form:select1 ref="@kernel" appearance="minimal">
        				<form:label>Kernel:</form:label>
        				<form:item><form:label>2.6.16.19 domU</form:label>  <form:value>/boot/xen0-2.6.16.19-xen</form:value>  </form:item>
      </form:select1>
      				
      <form:input ref="hostname" >
        <form:label>Hostname:</form:label>
      </form:input>

      <form:input ref="memory">
        <form:label>Memory:</form:label>
      </form:input>

			<form:select1 ref="@access" appearance="minimal">
				<form:label>Distribution:</form:label>
				<form:item><form:label>Debian</form:label>  <form:value>debian</form:value>  </form:item>
				<form:item><form:label>Ubuntu</form:label>  <form:value>ubuntu</form:value>  </form:item>
				<form:item><form:label>Redhat Entreprise Server 4</form:label> <form:value>rhel4</form:value> </form:item>
				<form:item><form:label>Redhat Entreprise Server 3</form:label> <form:value>rhel4</form:value> </form:item>
			</form:select1>

    </p>

			<form:group ref="disks">
			 		<form:label>Disks:</form:label>

					<form:repeat nodeset="disk" id="repeat-disks">
			      	<form:input ref="@volume" >
      			  	<form:label>Volume:</form:label>
      				</form:input>
			      	<form:input ref="@size" >
      			  	<form:label>Size:</form:label>
      				</form:input>
      				<form:select1 ref="@access" appearance="minimal">
        				<form:label>Access:</form:label>
        				<form:item><form:label>Read only</form:label>  <form:value>r</form:value>  </form:item>
        				<form:item><form:label>Read/write</form:label> <form:value>rw</form:value> </form:item>
      				</form:select1>
			 		</form:repeat>
					<form:trigger>
        		<form:label>Add volume</form:label>
		        <form:insert ev:event="DOMActivate" nodeset="disk" at="index('repeat-disks')" position="after"/>
 		     	</form:trigger>
      
		      <form:trigger>
		        <form:label>Delete volume</form:label>
		        <form:delete ev:event="DOMActivate" nodeset="disk" at="index('repeat-disks')"/>
		      </form:trigger>			 		
			</form:group>

		<form:group ref="vifs">
			 		<form:label>Virtual Interfaces:</form:label>

					<form:repeat nodeset="vif" id="repeat-vifs">
			      	<form:input ref="@ip" >
      			  	<form:label>Ip:</form:label>
      				</form:input>
			      	<form:input ref="@mac" >
      			  	<form:label>Mac:</form:label>
      				</form:input>
      				<form:select1 ref="@bridge" appearance="minimal">
        				<form:label>Bridge:</form:label>
        				<form:item><form:label>Default Bridge xenbr0</form:label>  <form:value>xenbr0</form:value>  </form:item>
      				</form:select1>
			 		</form:repeat>
					<form:trigger>
        		<form:label>Add vif</form:label>
		        <form:insert ev:event="DOMActivate" nodeset="vif" at="index('repeat-vifs')" position="after"/>
 		     	</form:trigger>
      
		      <form:trigger>
		        <form:label>Delete vif</form:label>
		        <form:delete ev:event="DOMActivate" nodeset="vif" at="index('repeat-vifs')"/>
		      </form:trigger>			 		
			</form:group>


    <p>
     
     <form:submit submission="submission1" >
        <form:label>Create Xen VM</form:label>
      </form:submit>
    </p>
  	
  </body>
</html>
Return current item: Concentr Xml Tools