mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Add to storage->upload volume dialog
This commit is contained in:
parent
ad6b7b30cb
commit
8641de85d2
@ -265,6 +265,22 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
createForm: {
|
createForm: {
|
||||||
|
fileUpload: {
|
||||||
|
getURL: function(args) {
|
||||||
|
args.response.success({
|
||||||
|
url: 'http://10.223.183.3/test-upload.php'
|
||||||
|
});
|
||||||
|
},
|
||||||
|
postUpload: function(args) {
|
||||||
|
// Called when upload is done to do
|
||||||
|
// verification checks;
|
||||||
|
// i.e., poll the server to verify successful upload
|
||||||
|
//
|
||||||
|
// success() will close the dialog and call standard action
|
||||||
|
// error() will keep dialog open if user wants to re-submit
|
||||||
|
args.response.success();
|
||||||
|
}
|
||||||
|
},
|
||||||
title: 'label.upload.volume',
|
title: 'label.upload.volume',
|
||||||
fields: {
|
fields: {
|
||||||
name: {
|
name: {
|
||||||
@ -274,6 +290,10 @@
|
|||||||
},
|
},
|
||||||
docID: 'helpUploadVolumeName'
|
docID: 'helpUploadVolumeName'
|
||||||
},
|
},
|
||||||
|
templateFileUpload: {
|
||||||
|
label: 'Select a file',
|
||||||
|
isFileUpload: true
|
||||||
|
},
|
||||||
availabilityZone: {
|
availabilityZone: {
|
||||||
label: 'label.availability.zone',
|
label: 'label.availability.zone',
|
||||||
docID: 'helpUploadVolumeZone',
|
docID: 'helpUploadVolumeZone',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user