mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
volume-upload: volumes > (1) Shorten action label to make all items in header to fit into one line, otherwise search box will be pushed out of place. (2) Add dialog: move URL field to the top.
This commit is contained in:
parent
48a66ace6c
commit
26acdd7f6c
@ -68,7 +68,7 @@
|
|||||||
actions: {
|
actions: {
|
||||||
// Add volume
|
// Add volume
|
||||||
add: {
|
add: {
|
||||||
label: 'label.add.volume',
|
label: 'Add',
|
||||||
|
|
||||||
preFilter: function(args) {
|
preFilter: function(args) {
|
||||||
return !args.context.instances;
|
return !args.context.instances;
|
||||||
@ -255,18 +255,25 @@
|
|||||||
|
|
||||||
uploadVolume: {
|
uploadVolume: {
|
||||||
isHeader: true,
|
isHeader: true,
|
||||||
label: 'label.upload.volume',
|
label: 'Upload',
|
||||||
preFilter: function(args) {
|
preFilter: function(args) {
|
||||||
return !args.context.instances;
|
return !args.context.instances;
|
||||||
},
|
},
|
||||||
messages: {
|
messages: {
|
||||||
notification: function() {
|
notification: function() {
|
||||||
return 'label.upload.volume';
|
return 'Upload Volume from URL';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
createForm: {
|
createForm: {
|
||||||
title: 'label.upload.volume',
|
title: 'Upload Volume from URL',
|
||||||
fields: {
|
fields: {
|
||||||
|
url: {
|
||||||
|
label: 'label.url',
|
||||||
|
docID: 'helpUploadVolumeURL',
|
||||||
|
validation: {
|
||||||
|
required: true
|
||||||
|
}
|
||||||
|
},
|
||||||
name: {
|
name: {
|
||||||
label: 'label.name',
|
label: 'label.name',
|
||||||
validation: {
|
validation: {
|
||||||
@ -321,14 +328,7 @@
|
|||||||
data: items
|
data: items
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
url: {
|
|
||||||
label: 'label.url',
|
|
||||||
docID: 'helpUploadVolumeURL',
|
|
||||||
validation: {
|
|
||||||
required: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
checksum: {
|
checksum: {
|
||||||
docID: 'helpUploadVolumeChecksum',
|
docID: 'helpUploadVolumeChecksum',
|
||||||
label: 'label.md5.checksum'
|
label: 'label.md5.checksum'
|
||||||
@ -380,7 +380,7 @@
|
|||||||
|
|
||||||
uploadVolumefromLocal: {
|
uploadVolumefromLocal: {
|
||||||
isHeader: true,
|
isHeader: true,
|
||||||
label: 'Upload Volume from Local',
|
label: 'Upload from Local',
|
||||||
preFilter: function(args) {
|
preFilter: function(args) {
|
||||||
return !args.context.instances;
|
return !args.context.instances;
|
||||||
},
|
},
|
||||||
@ -445,7 +445,10 @@
|
|||||||
fields: {
|
fields: {
|
||||||
volumeFileUpload: {
|
volumeFileUpload: {
|
||||||
label: 'local file',
|
label: 'local file',
|
||||||
isFileUpload: true
|
isFileUpload: true,
|
||||||
|
validation: {
|
||||||
|
required: true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
name: {
|
name: {
|
||||||
label: 'label.name',
|
label: 'label.name',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user