mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-27 10:50:10 +03:00
Feature #3907: Reorganize attributes in Datablock Create
and display them or not depending if the it's vcenter
This commit is contained in:
parent
e1f375bad6
commit
7cc2a2db7c
@ -129,7 +129,6 @@ define(function(require) {
|
||||
default:
|
||||
$('#datablock_img', context).attr('disabled', 'disabled');
|
||||
$('#path_image', context).click();
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
@ -142,7 +141,9 @@ define(function(require) {
|
||||
},
|
||||
timeout: true,
|
||||
success: function(request, ds){
|
||||
var mad = ds["DATASTORE"]["DS_MAD"];
|
||||
var mad = ds["DATASTORE"]["DS_MAD"];
|
||||
var tm_mad = ds["DATASTORE"]["TM_MAD"];
|
||||
|
||||
var pers_forced = false;
|
||||
|
||||
// Set the persistency
|
||||
@ -165,6 +166,16 @@ define(function(require) {
|
||||
$('#img_persistent', context).prop('disabled', false);
|
||||
}
|
||||
|
||||
// Set the dialog
|
||||
switch (mad) {
|
||||
case "vcenter":
|
||||
$(".only_vcenter").show();
|
||||
$(".not_vcenter").hide();
|
||||
break;
|
||||
default:
|
||||
$(".only_vcenter").hide();
|
||||
$(".not_vcenter").show();
|
||||
}
|
||||
},
|
||||
error: function(request, error_json, container){
|
||||
Notifier.onError(request, error_json, container);
|
||||
|
@ -116,54 +116,35 @@
|
||||
</label>
|
||||
<input type="text" name="img_size" id="img_size" />
|
||||
</div>
|
||||
<div class="medium-6 columns">
|
||||
<label for="img_fstype">
|
||||
{{tr "FS type"}}
|
||||
<span class="tip">
|
||||
{{tr "Type of file system to be built."}}
|
||||
{{tr "Plain. When the disk image is used directly by the hypervisor we can format the image, and so it is ready to be used by the guest OS. Values: ext2, ext3, ext4, ntfs, reiserfs, jfs, swap. Any other fs supported by mkfs will work if no special option is needed."}}
|
||||
{{tr "Formatted. The disk image is stored in a hypervisor specific format VMDK or Qcow2. Then we cannot really make a filesystem on the image, just create the device and let the guest OS format the disk. Use raw to not to format the new image. Values: raw, qcow2, vmdk_*."}}
|
||||
</span>
|
||||
</label>
|
||||
<input type="text" name="img_fstype" id="img_fstype" />
|
||||
</div>
|
||||
<div class="medium-6 columns">
|
||||
<label for="adapter_type">
|
||||
{{tr "Adapter type"}}
|
||||
<span class="tip">
|
||||
{{tr "Adapter type for the image. Only for vCenter images"}}
|
||||
{{tr "Types of adapters used by virtual disks to plug into VMs. Values (careful with the case): lsiLogic, ide, busLogic."}}
|
||||
</span>
|
||||
</label>
|
||||
<input type="text" name="adapter_type" id="adapter_type" />
|
||||
</div>
|
||||
<div class="medium-6 columns">
|
||||
<label for="disk_type">
|
||||
{{tr "Disk type"}}
|
||||
<span class="tip">
|
||||
{{tr "Parameter to instruct vCenter on the type of disk to be created"}}
|
||||
{{tr "The type of disk has implications on performance and occupied space. Values (careful with the case): delta,eagerZeroedThick,flatMonolithic,preallocated,raw,rdm,rdmp,seSparse,sparse2Gb,sparseMonolithic,thick,thick2Gb,thin."}}
|
||||
</span>
|
||||
</label>
|
||||
<input type="text" name="disk_type" id="disk_type" />
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
{{#advancedSection (tr "Advanced Options") }}
|
||||
<div class="row">
|
||||
<div class="medium-6 columns">
|
||||
<div class="row">
|
||||
<div class="row only_vcenter">
|
||||
<div class="large-12 columns">
|
||||
<label for="adapter_type">
|
||||
{{tr "Controller"}}
|
||||
<span class="tip">
|
||||
{{tr "Controller for the image."}}
|
||||
{{tr "Types of adapters used by virtual disks to plug into VMs. Values (careful with the case): lsiLogic, ide, busLogic."}}
|
||||
</span>
|
||||
</label>
|
||||
<input type="text" name="adapter_type" id="adapter_type" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row not_vcenter">
|
||||
<div class="large-12 columns">
|
||||
<label for="img_dev_prefix">
|
||||
{{tr "Device prefix"}}
|
||||
{{tr "BUS"}}
|
||||
<span class="tip">
|
||||
{{tr "Prefix for the emulated device this image will be mounted at. For instance, “hd”, “sd”. If omitted, the default value is the one defined in oned.conf (installation default is “hd”)."}}
|
||||
{{tr "The BUS where the image will be connected to. If a custom is selected the actual Device Prefix should be typed. For example: “hd”, “sd”. If omitted, the default value is the DEFAULT_DEV_PREFIX defined in oned.conf (installation default is “hd”)."}}
|
||||
</span>
|
||||
</label>
|
||||
<input type="text" name="img_dev_prefix" id="img_dev_prefix" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row not_vcenter">
|
||||
<div class="large-12 columns">
|
||||
<label for="img_driver">
|
||||
{{tr "Driver"}}
|
||||
@ -176,7 +157,19 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="medium-6 columns">
|
||||
<div class="row">
|
||||
<div class="row only_vcenter">
|
||||
<div class="large-12 columns">
|
||||
<label for="disk_type">
|
||||
{{tr "Disk Provisioning"}}
|
||||
<span class="tip">
|
||||
{{tr "Parameter to instruct vCenter on the type of disk to be created"}}
|
||||
{{tr "The type of disk has implications on performance and occupied space. Values (careful with the case): delta,eagerZeroedThick,flatMonolithic,preallocated,raw,rdm,rdmp,seSparse,sparse2Gb,sparseMonolithic,thick,thick2Gb,thin."}}
|
||||
</span>
|
||||
</label>
|
||||
<input type="text" name="disk_type" id="disk_type" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row not_vcenter">
|
||||
<div class="large-12 columns">
|
||||
<label for="img_target">
|
||||
{{tr "Target"}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user