Skip to content
Snippets Groups Projects
Unverified Commit c41e21d2 authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

Added help buttons for course delay duration fields

parent fbd9b6fa
No related branches found
No related tags found
No related merge requests found
...@@ -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);
......
...@@ -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';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment