mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
feature #3748: Add template buttons
This commit is contained in:
1 parent
986642e79e
commit
53cb7c6320
1 file changed
+57
@@ -0,0 +1,57 @@
|
||||
define(function(require) {
|
||||
var Locale = require('utils/locale');
|
||||
|
||||
var Buttons = {
|
||||
"Template.refresh" : {
|
||||
type: "action",
|
||||
layout: "refresh",
|
||||
alwaysActive: true
|
||||
},
|
||||
"Template.create_dialog" : {
|
||||
type: "create_dialog",
|
||||
layout: "create"
|
||||
},
|
||||
"Template.import_dialog" : {
|
||||
type: "create_dialog",
|
||||
layout: "create",
|
||||
text: Locale.tr("Import"),
|
||||
icon: '<i class="fa fa-download">',
|
||||
alwaysActive: true
|
||||
},
|
||||
"Template.update_dialog" : {
|
||||
type: "action",
|
||||
layout: "main",
|
||||
text: Locale.tr("Update")
|
||||
},
|
||||
"Template.instantiate_vms" : {
|
||||
type: "action",
|
||||
layout: "main",
|
||||
text: Locale.tr("Instantiate")
|
||||
},
|
||||
"Template.chown" : {
|
||||
type: "confirm_with_select",
|
||||
text: Locale.tr("Change owner"),
|
||||
layout: "user_select",
|
||||
select: "User",
|
||||
tip: Locale.tr("Select the new owner") + ":",
|
||||
},
|
||||
"Template.chgrp" : {
|
||||
type: "confirm_with_select",
|
||||
text: Locale.tr("Change group"),
|
||||
layout: "user_select",
|
||||
select: "Group",
|
||||
tip: Locale.tr("Select the new group") + ":",
|
||||
},
|
||||
"Template.clone_dialog" : {
|
||||
type: "action",
|
||||
layout: "main",
|
||||
text: Locale.tr("Clone")
|
||||
},
|
||||
"Template.delete" : {
|
||||
type: "confirm",
|
||||
layout: "del"
|
||||
}
|
||||
}
|
||||
|
||||
return Buttons;
|
||||
})
|
||||
Reference in new issue
Block a user