Skip to content
Snippets Groups Projects
Commit ee991299 authored by TamaraGunkel's avatar TamaraGunkel
Browse files

added workflow title to managing course tables

parent d3bdb476
No related branches found
No related tags found
No related merge requests found
...@@ -70,15 +70,6 @@ class interaction_attention_table extends interaction_table { ...@@ -70,15 +70,6 @@ class interaction_attention_table extends interaction_table {
return $output; return $output;
} }
/**
* Render status column.
* @param $row
* @return string status for the process of this course.
*/
public function col_status($row) {
return interaction_manager::get_process_status_message($row->processid);
}
/** /**
* Util function for writing an action icon link * Util function for writing an action icon link
* *
......
...@@ -57,18 +57,7 @@ class interaction_remaining_table extends interaction_table { ...@@ -57,18 +57,7 @@ class interaction_remaining_table extends interaction_table {
$this->define_baseurl($PAGE->url); $this->define_baseurl($PAGE->url);
$this->init(); $this->init();
} }
/**
* Render status column.
* @param $row
* @return string pluginname of the subplugin
*/
public function col_status($row) {
if ($row->processid !== null) {
return interaction_manager::get_process_status_message($row->processid);
}
return '';
}
/** /**
* Render tools column. * Render tools column.
* @param $row * @param $row
......
...@@ -25,7 +25,9 @@ namespace tool_cleanupcourses\table; ...@@ -25,7 +25,9 @@ namespace tool_cleanupcourses\table;
use tool_cleanupcourses\entity\step_subplugin; use tool_cleanupcourses\entity\step_subplugin;
use tool_cleanupcourses\manager\interaction_manager; use tool_cleanupcourses\manager\interaction_manager;
use tool_cleanupcourses\manager\process_manager;
use tool_cleanupcourses\manager\step_manager; use tool_cleanupcourses\manager\step_manager;
use tool_cleanupcourses\manager\workflow_manager;
defined('MOODLE_INTERNAL') || die; defined('MOODLE_INTERNAL') || die;
...@@ -84,7 +86,16 @@ abstract class interaction_table extends \table_sql { ...@@ -84,7 +86,16 @@ abstract class interaction_table extends \table_sql {
* @param $row * @param $row
* @return string pluginname of the subplugin * @return string pluginname of the subplugin
*/ */
public abstract function col_status($row); public function col_status($row) {
if ($row->processid !== null) {
$process = process_manager::get_process_by_id($row->processid);
$workflow = workflow_manager::get_workflow($process->workflowid);
return interaction_manager::get_process_status_message($row->processid) .
'<br><span class="workflow_displaytitle">' . $workflow->displaytitle . '</span>';
}
return '';
}
/** /**
* This function is not part of the public api. * This function is not part of the public api.
......
...@@ -87,7 +87,7 @@ class view_controller { ...@@ -87,7 +87,7 @@ class view_controller {
echo $renderer->heading(get_string('tablecoursesrequiringattention', 'tool_cleanupcourses'), 3); echo $renderer->heading(get_string('tablecoursesrequiringattention', 'tool_cleanupcourses'), 3);
$table1 = new interaction_attention_table('tool_cleanupcourses_interaction', $requiresinteraction); $table1 = new interaction_attention_table('tool_cleanupcourses_interaction', $requiresinteraction);
echo $renderer->box_start(); echo $renderer->box_start("managing_courses_tables");
$table1->out(50, false); $table1->out(50, false);
echo $renderer->box_end(); echo $renderer->box_end();
...@@ -95,7 +95,7 @@ class view_controller { ...@@ -95,7 +95,7 @@ class view_controller {
echo $renderer->heading(get_string('tablecoursesremaining', 'tool_cleanupcourses'), 3); echo $renderer->heading(get_string('tablecoursesremaining', 'tool_cleanupcourses'), 3);
$table2 = new interaction_remaining_table('tool_cleanupcourses_remaining', $arrayofcourseids); $table2 = new interaction_remaining_table('tool_cleanupcourses_remaining', $arrayofcourseids);
echo $renderer->box_start("cleanupcourses-enable-overflow"); echo $renderer->box_start("cleanupcourses-enable-overflow managing_courses_tables");
$table2->out(50, false); $table2->out(50, false);
echo $renderer->box_end(); echo $renderer->box_end();
} }
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
overflow: initial; overflow: initial;
} }
.workflow_definition_table span.workflow_displaytitle { .workflow_definition_table span.workflow_displaytitle,
.managing_courses_tables span.workflow_displaytitle {
color: #888; color: #888;
font-size: .9em; font-size: .9em;
padding: 0.5em; padding: 0.5em;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment