MDL-51948 admin: Make admin settings RTL friendly

Part of MDL-55071
This commit is contained in:
Frederic Massart
2016-09-23 10:54:22 +01:00
committed by Dan Poltawski
parent a47e73ff7c
commit 113efed5b0
41 changed files with 286 additions and 251 deletions
+9 -1
View File
@@ -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';
}