mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-36777 usability: Theming fixes on backup steps
This commit is contained in:
parent
f9f8a6af6e
commit
d9f95015f5
@ -258,7 +258,8 @@ abstract class backup_activity_task extends backup_task {
|
||||
// - section_included setting (if exists)
|
||||
$settingname = $settingprefix . 'included';
|
||||
$activity_included = new backup_activity_generic_setting($settingname, base_setting::IS_BOOLEAN, true);
|
||||
$activity_included->get_ui()->set_icon(new pix_icon('icon', get_string('pluginname', $this->modulename), $this->modulename));
|
||||
$activity_included->get_ui()->set_icon(new pix_icon('icon', get_string('pluginname', $this->modulename),
|
||||
$this->modulename, array('class' => 'iconlarge icon-post')));
|
||||
$this->add_setting($activity_included);
|
||||
// Look for "activities" root setting
|
||||
$activities = $this->plan->get_setting('activities');
|
||||
|
@ -278,7 +278,8 @@ abstract class restore_activity_task extends restore_task {
|
||||
// - section_included setting (if exists)
|
||||
$settingname = $settingprefix . 'included';
|
||||
$activity_included = new restore_activity_generic_setting($settingname, base_setting::IS_BOOLEAN, true);
|
||||
$activity_included->get_ui()->set_icon(new pix_icon('icon', get_string('pluginname', $this->modulename), $this->modulename));
|
||||
$activity_included->get_ui()->set_icon(new pix_icon('icon', get_string('pluginname', $this->modulename),
|
||||
$this->modulename, array('class' => 'iconlarge icon-post')));
|
||||
$this->add_setting($activity_included);
|
||||
// Look for "activities" root setting
|
||||
$activities = $this->plan->get_setting('activities');
|
||||
|
@ -329,7 +329,7 @@ class backup_setting_ui_text extends backup_setting_ui {
|
||||
$icon = $this->get_icon();
|
||||
$label = $this->get_label($task);
|
||||
if (!empty($icon)) {
|
||||
$label .= ' '.$output->render($icon);
|
||||
$label .= $output->render($icon);
|
||||
}
|
||||
// name, label, attributes
|
||||
return $this->apply_options(array('element'=>'text','name'=>self::NAME_PREFIX.$this->name, 'label'=>$label, 'attributes'=>$this->attributes));
|
||||
@ -380,7 +380,7 @@ class backup_setting_ui_checkbox extends backup_setting_ui {
|
||||
$icon = $this->get_icon();
|
||||
$label = $this->get_label($task);
|
||||
if (!empty($icon)) {
|
||||
$label .= ' '.$output->render($icon);
|
||||
$label .= $output->render($icon);
|
||||
}
|
||||
return $this->apply_options(array('element'=>'checkbox','name'=>self::NAME_PREFIX.$this->name, 'label'=>$label, 'text'=>$this->text, 'attributes'=>$this->attributes));
|
||||
}
|
||||
@ -473,7 +473,7 @@ class backup_setting_ui_radio extends backup_setting_ui {
|
||||
$icon = $this->get_icon();
|
||||
$label = $this->get_label($task);
|
||||
if (!empty($icon)) {
|
||||
$label .= ' '.$output->render($icon);
|
||||
$label .= $output->render($icon);
|
||||
}
|
||||
// name, label, text, value, attributes
|
||||
return $this->apply_options(array('element'=>'radio','name'=>self::NAME_PREFIX.$this->name, 'label'=>$label, 'text'=>$this->text, 'value'=>$this->value, 'attributes'=>$this->attributes));
|
||||
@ -538,7 +538,7 @@ class backup_setting_ui_select extends backup_setting_ui {
|
||||
$icon = $this->get_icon();
|
||||
$label = $this->get_label($task);
|
||||
if (!empty($icon)) {
|
||||
$label .= ' '.$output->render($icon);
|
||||
$label .= $output->render($icon);
|
||||
}
|
||||
// name, label, options, attributes
|
||||
return $this->apply_options(array('element'=>'select','name'=>self::NAME_PREFIX.$this->name, 'label'=>$label, 'options'=>$this->values, 'attributes'=>$this->attributes));
|
||||
|
@ -147,9 +147,9 @@ class core_backup_renderer extends plugin_renderer_base {
|
||||
$table->data = array();
|
||||
}
|
||||
$name = get_string('pluginname', $activity->modulename);
|
||||
$icon = new pix_icon('icon', $name, $activity->modulename);
|
||||
$icon = new pix_icon('icon', $name, $activity->modulename, array('class' => 'iconlarge icon-pre'));
|
||||
$table->data[] = array(
|
||||
$this->output->render($icon).' '.$name,
|
||||
$this->output->render($icon).$name,
|
||||
$activity->title,
|
||||
($activity->settings[$activitykey.'_userinfo'])?$yestick:$notick,
|
||||
);
|
||||
|
@ -504,6 +504,9 @@ body.tag .managelink {padding: 5px;}
|
||||
.path-backup .backup_progress span.backup_stage.backup_stage_complete {color:inherit;}
|
||||
#page-backup-restore .filealiasesfailures {background-color:#ffd3d9}
|
||||
#page-backup-restore .filealiasesfailures .aliaseslist {width:90%;margin:0.8em auto;background-color:white;border:1px dotted #666;}
|
||||
.path-backup .fitemtitle .iconlarge.icon-post { padding-left: 6px; }
|
||||
.path-backup.dir-rtl .fitemtitle .iconlarge.icon-post { padding-right: 6px; padding-right: 0; }
|
||||
.path-backup .fitem .smallicon { vertical-align: text-bottom; }
|
||||
|
||||
/**
|
||||
* Web Service
|
||||
|
Loading…
x
Reference in New Issue
Block a user