Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-tool_lifecycle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-tool_lifecycle
Commits
54ea58fc
Unverified
Commit
54ea58fc
authored
7 years ago
by
Tobias Reischmann
Browse files
Options
Downloads
Patches
Plain Diff
Hide add_step_instance select if workflow is active
parent
cf5a063e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
adminlib.php
+6
-4
6 additions, 4 deletions
adminlib.php
with
6 additions
and
4 deletions
adminlib.php
+
6
−
4
View file @
54ea58fc
...
...
@@ -281,10 +281,12 @@ class workflow_settings {
echo
$OUTPUT
->
heading
(
get_string
(
'adminsettings_workflow_definition_steps_heading'
,
'tool_cleanupcourses'
));
if
(
!
workflow_manager
::
is_active
(
$this
->
workflowid
))
{
$steps
=
step_manager
::
get_step_types
();
echo
$OUTPUT
->
single_select
(
new
\moodle_url
(
$PAGE
->
url
,
array
(
'action'
=>
ACTION_STEP_INSTANCE_FORM
,
'sesskey'
=>
sesskey
(),
'workflowid'
=>
$this
->
workflowid
)),
'subpluginname'
,
$steps
,
''
,
array
(
''
=>
get_string
(
'add_new_step_instance'
,
'tool_cleanupcourses'
)));
}
echo
$OUTPUT
->
single_button
(
new
\moodle_url
(
'/admin/tool/cleanupcourses/adminsettings.php'
),
get_string
(
'back'
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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