Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory
Commits
fea33875
Commit
fea33875
authored
7 years ago
by
Côme Chilliet
Browse files
Options
Download
Patches
Plain Diff
fix(management) Reorder actions
parent
6eb03c40
dev
6342-update-the-locales-for-1-5
6344-template-issue-when-creating-a-template-with-empty-password-error-message-should-not-be-seen
6365-core-locking-mechanism-is-not-changing-the-mail-ressource-it-does-lock-the-mail-account
6365-core-when-lock-mechanism-is-trigger-the-user-should-not-be-editable-if-not-unlock
6378-orcid-test-method-is-wrong-and-break-orcid-saving
core-php8
master
fusiondirectory-1.5
fusiondirectory-1.4
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/management/class_management.inc
+31
-30
include/management/class_management.inc
with
31 additions
and
30 deletions
+31
-30
include/management/class_management.inc
+
31
−
30
View file @
fea33875
...
@@ -185,33 +185,41 @@ class management
...
@@ -185,33 +185,41 @@ class management
)
)
);
);
// Add export actions
$exportMenu
=
array
();
foreach
(
$this
->
exporters
as
$action
=>
$exporter
)
{
$exportMenu
[]
=
new
Action
(
$action
,
$exporter
[
'label'
],
$exporter
[
'image'
],
'0'
,
'export'
);
}
$this
->
registerAction
(
$this
->
registerAction
(
new
Action
(
new
Action
SubMenu
(
'e
di
t'
,
_
(
'E
di
t'
),
'geticon.php?context=actions&icon=document-e
di
t&size=16'
,
'e
xpor
t'
,
_
(
'E
xport lis
t'
),
'geticon.php?context=actions&icon=document-e
xpor
t&size=16'
,
'+'
,
'editEntry'
$exportMenu
)
)
);
);
$this
->
registerAction
(
$this
->
registerAction
(
new
Action
(
new
Action
(
'remove'
,
_
(
'Remove'
),
'geticon.php?context=actions&icon=edit-delete&size=16'
,
'edit'
,
_
(
'Edit'
),
'geticon.php?context=actions&icon=document-edit&size=16'
,
'+'
,
'removeRequested'
,
'+'
,
'editEntry'
array
(
'd'
)
)
)
);
);
if
(
!
$this
->
skipCpHandler
)
{
if
(
!
$this
->
skipCpHandler
)
{
$this
->
registerAction
(
$this
->
registerAction
(
new
Action
(
new
Action
(
'c
opy
'
,
_
(
'C
opy
'
),
'geticon.php?context=actions&icon=edit-c
opy
&size=16'
,
'c
ut
'
,
_
(
'C
ut
'
),
'geticon.php?context=actions&icon=edit-c
ut
&size=16'
,
'+'
,
'copyPasteHandler'
,
'+'
,
'copyPasteHandler'
,
array
(
'r'
)
array
(
'
d
r'
)
)
)
);
);
$this
->
registerAction
(
$this
->
registerAction
(
new
Action
(
new
Action
(
'c
ut
'
,
_
(
'C
ut
'
),
'geticon.php?context=actions&icon=edit-c
ut
&size=16'
,
'c
opy
'
,
_
(
'C
opy
'
),
'geticon.php?context=actions&icon=edit-c
opy
&size=16'
,
'+'
,
'copyPasteHandler'
,
'+'
,
'copyPasteHandler'
,
array
(
'
d
r'
)
array
(
'r'
)
)
)
);
);
// TODO: disable paste when there is nothing to paste
// TODO: disable paste when there is nothing to paste
...
@@ -224,37 +232,30 @@ class management
...
@@ -224,37 +232,30 @@ class management
);
);
}
}
$this
->
registerAction
(
new
Action
(
'remove'
,
_
(
'Remove'
),
'geticon.php?context=actions&icon=edit-delete&size=16'
,
'+'
,
'removeRequested'
,
array
(
'd'
)
)
);
if
(
!
self
::
$skipSnapshots
&&
(
$config
->
get_cfg_value
(
'enableSnapshots'
)
==
'TRUE'
))
{
if
(
!
self
::
$skipSnapshots
&&
(
$config
->
get_cfg_value
(
'enableSnapshots'
)
==
'TRUE'
))
{
$this
->
registerAction
(
$this
->
registerAction
(
new
Action
(
new
Action
(
'restore'
,
_
(
'Restore snapshot'
),
'geticon.php?context=actions&icon=document-restore&size=16'
,
'snapshot'
,
_
(
'Create snapshot'
),
'geticon.php?context=actions&icon=snapshot&size=16'
,
'*'
,
'restoreSnapshotDialog'
,
'1'
,
'createSnapshotDialog'
array
(
'w'
)
)
)
);
);
$this
->
registerAction
(
$this
->
registerAction
(
new
Action
(
new
Action
(
'snapshot'
,
_
(
'Create snapshot'
),
'geticon.php?context=actions&icon=snapshot&size=16'
,
'restore'
,
_
(
'Restore snapshot'
),
'geticon.php?context=actions&icon=document-restore&size=16'
,
'1'
,
'createSnapshotDialog'
'*'
,
'restoreSnapshotDialog'
,
array
(
'w'
)
)
)
);
);
}
}
// Add export actions
$exportMenu
=
array
();
foreach
(
$this
->
exporters
as
$action
=>
$exporter
)
{
$exportMenu
[]
=
new
Action
(
$action
,
$exporter
[
'label'
],
$exporter
[
'image'
],
'0'
,
'export'
);
}
$this
->
registerAction
(
new
ActionSubMenu
(
'export'
,
_
(
'Export list'
),
'geticon.php?context=actions&icon=document-export&size=16'
,
$exportMenu
)
);
/* Actions from footer are not in any menus and do not need a label */
/* Actions from footer are not in any menus and do not need a label */
$this
->
registerAction
(
new
HiddenAction
(
'apply'
,
'applyChanges'
));
$this
->
registerAction
(
new
HiddenAction
(
'apply'
,
'applyChanges'
));
$this
->
registerAction
(
new
HiddenAction
(
'save'
,
'saveChanges'
));
$this
->
registerAction
(
new
HiddenAction
(
'save'
,
'saveChanges'
));
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets