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
c41e21d2
Unverified
Commit
c41e21d2
authored
5 years ago
by
Tobias Reischmann
Browse files
Options
Downloads
Patches
Plain Diff
Added help buttons for course delay duration fields
parent
fbd9b6fa
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
classes/form/form_workflow_instance.php
+3
-0
3 additions, 0 deletions
classes/form/form_workflow_instance.php
lang/en/tool_lifecycle.php
+7
-0
7 additions, 0 deletions
lang/en/tool_lifecycle.php
with
10 additions
and
0 deletions
classes/form/form_workflow_instance.php
+
3
−
0
View file @
c41e21d2
...
@@ -85,6 +85,7 @@ class form_workflow_instance extends \moodleform {
...
@@ -85,6 +85,7 @@ class form_workflow_instance extends \moodleform {
$elementname
=
'rollbackdelay'
;
$elementname
=
'rollbackdelay'
;
$mform
->
addElement
(
'duration'
,
$elementname
,
get_string
(
'workflow_rollbackdelay'
,
'tool_lifecycle'
));
$mform
->
addElement
(
'duration'
,
$elementname
,
get_string
(
'workflow_rollbackdelay'
,
'tool_lifecycle'
));
$mform
->
addHelpButton
(
$elementname
,
'workflow_rollbackdelay'
,
'tool_lifecycle'
);
$mform
->
setType
(
$elementname
,
PARAM_INT
);
$mform
->
setType
(
$elementname
,
PARAM_INT
);
if
(
isset
(
$this
->
workflow
))
{
if
(
isset
(
$this
->
workflow
))
{
$mform
->
setDefault
(
$elementname
,
$this
->
workflow
->
rollbackdelay
);
$mform
->
setDefault
(
$elementname
,
$this
->
workflow
->
rollbackdelay
);
...
@@ -94,6 +95,7 @@ class form_workflow_instance extends \moodleform {
...
@@ -94,6 +95,7 @@ class form_workflow_instance extends \moodleform {
$elementname
=
'finishdelay'
;
$elementname
=
'finishdelay'
;
$mform
->
addElement
(
'duration'
,
$elementname
,
get_string
(
'workflow_finishdelay'
,
'tool_lifecycle'
));
$mform
->
addElement
(
'duration'
,
$elementname
,
get_string
(
'workflow_finishdelay'
,
'tool_lifecycle'
));
$mform
->
addHelpButton
(
$elementname
,
'workflow_finishdelay'
,
'tool_lifecycle'
);
$mform
->
setType
(
$elementname
,
PARAM_INT
);
$mform
->
setType
(
$elementname
,
PARAM_INT
);
if
(
isset
(
$this
->
workflow
))
{
if
(
isset
(
$this
->
workflow
))
{
$mform
->
setDefault
(
$elementname
,
$this
->
workflow
->
finishdelay
);
$mform
->
setDefault
(
$elementname
,
$this
->
workflow
->
finishdelay
);
...
@@ -103,6 +105,7 @@ class form_workflow_instance extends \moodleform {
...
@@ -103,6 +105,7 @@ class form_workflow_instance extends \moodleform {
$elementname
=
'delayforallworkflows'
;
$elementname
=
'delayforallworkflows'
;
$mform
->
addElement
(
'checkbox'
,
$elementname
,
get_string
(
'workflow_delayforallworkflows'
,
'tool_lifecycle'
));
$mform
->
addElement
(
'checkbox'
,
$elementname
,
get_string
(
'workflow_delayforallworkflows'
,
'tool_lifecycle'
));
$mform
->
addHelpButton
(
$elementname
,
'workflow_delayforallworkflows'
,
'tool_lifecycle'
);
$mform
->
setType
(
$elementname
,
PARAM_BOOL
);
$mform
->
setType
(
$elementname
,
PARAM_BOOL
);
if
(
isset
(
$this
->
workflow
))
{
if
(
isset
(
$this
->
workflow
))
{
$mform
->
setDefault
(
$elementname
,
$this
->
workflow
->
delayforallworkflows
);
$mform
->
setDefault
(
$elementname
,
$this
->
workflow
->
delayforallworkflows
);
...
...
This diff is collapsed.
Click to expand it.
lang/en/tool_lifecycle.php
+
7
−
0
View file @
c41e21d2
...
@@ -73,8 +73,15 @@ $string['workflow_title_help'] = 'Workflow title (visible for admins only).';
...
@@ -73,8 +73,15 @@ $string['workflow_title_help'] = 'Workflow title (visible for admins only).';
$string
[
'workflow_displaytitle'
]
=
'Displayed workflow title'
;
$string
[
'workflow_displaytitle'
]
=
'Displayed workflow title'
;
$string
[
'workflow_displaytitle_help'
]
=
'This title is displayed to users when managing their courses.'
;
$string
[
'workflow_displaytitle_help'
]
=
'This title is displayed to users when managing their courses.'
;
$string
[
'workflow_rollbackdelay'
]
=
'Delay in case of rollback'
;
$string
[
'workflow_rollbackdelay'
]
=
'Delay in case of rollback'
;
$string
[
'workflow_rollbackdelay_help'
]
=
'If a course was rolled back within a process instance of this workflow,
this value describes the time until a process for this combination of course and workflow can be started again.'
;
$string
[
'workflow_finishdelay'
]
=
'Delay in case of finished course'
;
$string
[
'workflow_finishdelay'
]
=
'Delay in case of finished course'
;
$string
[
'workflow_finishdelay_help'
]
=
'If a course has finished a process instance of this workflow,
this value describes the time until a process for this combination of course and workflow can be started again.'
;
$string
[
'workflow_delayforallworkflows'
]
=
'Delay for all Workflows?'
;
$string
[
'workflow_delayforallworkflows'
]
=
'Delay for all Workflows?'
;
$string
[
'workflow_delayforallworkflows_help'
]
=
'If ticked, the durations on top do not only delay the execution
of this workflow for a course, but for all other workflows as well. Thus, until the time passes no process can be started
for the respective course.'
;
$string
[
'workflow_active'
]
=
'Active'
;
$string
[
'workflow_active'
]
=
'Active'
;
$string
[
'workflow_processes'
]
=
'Active processes'
;
$string
[
'workflow_processes'
]
=
'Active processes'
;
$string
[
'workflow_timeactive'
]
=
'Active since'
;
$string
[
'workflow_timeactive'
]
=
'Active since'
;
...
...
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