MDL-51948 admin: Make admin settings RTL friendly
Part of MDL-55071
This commit is contained in:
committed by
Dan Poltawski
parent
a47e73ff7c
commit
113efed5b0
@@ -71,7 +71,8 @@ class tool_task_renderer extends plugin_renderer_base {
|
||||
$editlink = $this->render(new pix_icon('t/locked', get_string('scheduledtaskchangesdisabled', 'tool_task')));
|
||||
}
|
||||
|
||||
$namecell = new html_table_cell($task->get_name() . "\n" . html_writer::tag('span', '\\'.get_class($task), array('class' => 'task-class')));
|
||||
$namecell = new html_table_cell($task->get_name() . "\n" . html_writer::tag('span', '\\'.get_class($task),
|
||||
array('class' => 'task-class text-ltr')));
|
||||
$namecell->header = true;
|
||||
|
||||
$component = $task->get_component();
|
||||
@@ -117,6 +118,13 @@ class tool_task_renderer extends plugin_renderer_base {
|
||||
new html_table_cell($task->get_fail_delay()),
|
||||
new html_table_cell($customised)));
|
||||
|
||||
// Cron-style values must always be LTR.
|
||||
$row->cells[5]->attributes['class'] = 'text-ltr';
|
||||
$row->cells[6]->attributes['class'] = 'text-ltr';
|
||||
$row->cells[7]->attributes['class'] = 'text-ltr';
|
||||
$row->cells[8]->attributes['class'] = 'text-ltr';
|
||||
$row->cells[9]->attributes['class'] = 'text-ltr';
|
||||
|
||||
if ($disabled) {
|
||||
$row->attributes['class'] = 'disabled';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user