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
a8875ec0
Commit
a8875ec0
authored
Jan 12, 2012
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow to edit existing groups
parent
ae4c9054
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
+24
-4
GroupEdit.js
www/manager/dc/GroupEdit.js
+2
-2
GroupView.js
www/manager/dc/GroupView.js
+22
-2
No files found.
www/manager/dc/GroupEdit.js
View file @
a8875ec0
...
...
@@ -24,8 +24,8 @@ Ext.define('PVE.dc.GroupEdit', {
method
:
method
,
items
:
[
{
xtype
:
'
pvetext
field
'
,
fieldLabel
:
'
ID
'
,
xtype
:
me
.
create
?
'
pvetextfield
'
:
'
display
field
'
,
fieldLabel
:
gettext
(
'
Name
'
)
,
name
:
'
groupid
'
,
value
:
me
.
groupid
,
allowBlank
:
false
...
...
www/manager/dc/GroupView.js
View file @
a8875ec0
...
...
@@ -43,6 +43,25 @@ Ext.define('PVE.dc.GroupView', {
}
});
var
run_editor
=
function
()
{
var
rec
=
sm
.
getSelection
()[
0
];
if
(
!
rec
)
{
return
;
}
var
win
=
Ext
.
create
(
'
PVE.dc.GroupEdit
'
,{
groupid
:
rec
.
data
.
groupid
});
win
.
on
(
'
destroy
'
,
reload
);
win
.
show
();
};
var
edit_btn
=
new
Ext
.
Button
({
text
:
gettext
(
'
Edit
'
),
disabled
:
true
,
handler
:
run_editor
});
var
tbar
=
[
{
text
:
gettext
(
'
Create
'
),
...
...
@@ -53,7 +72,7 @@ Ext.define('PVE.dc.GroupView', {
win
.
show
();
}
},
remove_btn
edit_btn
,
remove_btn
];
Ext
.
apply
(
me
,
{
...
...
@@ -79,7 +98,8 @@ Ext.define('PVE.dc.GroupView', {
}
],
listeners
:
{
show
:
reload
show
:
reload
,
itemdblclick
:
run_editor
}
});
...
...
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