Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
c0ef5e6a
Commit
c0ef5e6a
authored
Nov 17, 2011
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug 44: allow to use templates from NFS
parent
1bdfb50d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
CreateWizard.js
www/manager/openvz/CreateWizard.js
+18
-3
No files found.
www/manager/openvz/CreateWizard.js
View file @
c0ef5e6a
...
@@ -36,6 +36,19 @@ Ext.define('PVE.openvz.CreateWizard', {
...
@@ -36,6 +36,19 @@ Ext.define('PVE.openvz.CreateWizard', {
allowBlank
:
false
allowBlank
:
false
});
});
var
tmplstoragesel
=
Ext
.
create
(
'
PVE.form.StorageSelector
'
,
{
name
:
'
tmplstorage
'
,
fieldLabel
:
'
Storage
'
,
storageContent
:
'
vztmpl
'
,
autoSelect
:
true
,
allowBlank
:
false
,
listeners
:
{
change
:
function
(
f
,
value
)
{
tmplsel
.
setStorage
(
value
);
}
}
});
var
bridgesel
=
Ext
.
create
(
'
PVE.form.BridgeSelector
'
,
{
var
bridgesel
=
Ext
.
create
(
'
PVE.form.BridgeSelector
'
,
{
name
:
'
bridge
'
,
name
:
'
bridge
'
,
fieldLabel
:
'
Bridge
'
,
fieldLabel
:
'
Bridge
'
,
...
@@ -60,7 +73,8 @@ Ext.define('PVE.openvz.CreateWizard', {
...
@@ -60,7 +73,8 @@ Ext.define('PVE.openvz.CreateWizard', {
onlineValidator
:
true
,
onlineValidator
:
true
,
listeners
:
{
listeners
:
{
change
:
function
(
f
,
value
)
{
change
:
function
(
f
,
value
)
{
tmplsel
.
setStorage
(
'
local
'
,
value
);
tmplstoragesel
.
setNodename
(
value
);
tmplsel
.
setStorage
(
undefined
,
value
);
bridgesel
.
setNodename
(
value
);
bridgesel
.
setNodename
(
value
);
storagesel
.
setNodename
(
value
);
storagesel
.
setNodename
(
value
);
}
}
...
@@ -122,7 +136,7 @@ Ext.define('PVE.openvz.CreateWizard', {
...
@@ -122,7 +136,7 @@ Ext.define('PVE.openvz.CreateWizard', {
{
{
xtype
:
'
inputpanel
'
,
xtype
:
'
inputpanel
'
,
title
:
'
Template
'
,
title
:
'
Template
'
,
items
:
tmplsel
column1
:
[
tmplstoragesel
,
tmplsel
]
},
},
{
{
xtype
:
'
pveOpenVZResourceInputPanel
'
,
xtype
:
'
pveOpenVZResourceInputPanel
'
,
...
@@ -250,7 +264,7 @@ Ext.define('PVE.openvz.CreateWizard', {
...
@@ -250,7 +264,7 @@ Ext.define('PVE.openvz.CreateWizard', {
var
kv
=
me
.
getValues
();
var
kv
=
me
.
getValues
();
var
data
=
[];
var
data
=
[];
Ext
.
Object
.
each
(
kv
,
function
(
key
,
value
)
{
Ext
.
Object
.
each
(
kv
,
function
(
key
,
value
)
{
if
(
key
===
'
delete
'
)
{
// ignore
if
(
key
===
'
delete
'
||
key
===
'
tmplstorage
'
)
{
// ignore
return
;
return
;
}
}
if
(
key
===
'
password
'
)
{
// don't show pw
if
(
key
===
'
password
'
)
{
// don't show pw
...
@@ -273,6 +287,7 @@ Ext.define('PVE.openvz.CreateWizard', {
...
@@ -273,6 +287,7 @@ Ext.define('PVE.openvz.CreateWizard', {
var
nodename
=
kv
.
nodename
;
var
nodename
=
kv
.
nodename
;
delete
kv
.
nodename
;
delete
kv
.
nodename
;
delete
kv
.
tmplstorage
;
PVE
.
Utils
.
API2Request
({
PVE
.
Utils
.
API2Request
({
url
:
'
/nodes/
'
+
nodename
+
'
/openvz
'
,
url
:
'
/nodes/
'
+
nodename
+
'
/openvz
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment