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

Rodrigo Trujillo rodrigo.trujillo at linux.vnet.ibm.com
Fri Jan 31 00:26:15 UTC 2014


On 01/30/2014 11:46 AM, Crístian Viana wrote:
> 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.

But thats the idea ... if no scsi fc_hosts are found, the UI shows nothing

>> @@ -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}".
ACK - Thanks

>
> _______________________________________________
> Kimchi-devel mailing list
> Kimchi-devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/kimchi-devel
>




More information about the Kimchi-devel mailing list