[Kimchi-devel] [PATCH V2 5/7] (WIP) Storagepool SCSI/FC: Implement UI when a FC scsi_host will be the pool

Crístian Viana vianac at linux.vnet.ibm.com
Thu Jan 30 13:46:44 UTC 2014


Am 23-01-2014 22:29, schrieb Rodrigo Trujillo:
> -    kimchi.listHostPartitions(function(data) {
> +    kimchi.listFCHosts(function(data){
You need to pass another function to "listFCHosts" which will handle the 
error. Currently, if the fiber channel hosts cannot be listed, nothing 
will happen on the UI.
> @@ -154,5 +160,11 @@
>               <label>{path}</label>
>           </div>
>       </script>
> +        <script id="scsiFCTmpl" type="html/text">
> +        <div class="field">
> +            <input type="radio" value="{name}" name="adapter_name">
> +            <label>{name}</label>
> +        </div>
> +    </script>
>   </body>
>   </html>
Make the <label>'s associated with their corresponding <input>'s, so 
when the user clicks on the label, the corresponding radio button gets 
checked. Use the syntax <label for="radioID"> for each <label> element. 
For that, you need to give different IDs to each <input> element and 
match them in each <label>. I'd suggest to give the ID something like 
"fc-{name}".




More information about the Kimchi-devel mailing list