MDL-9628 Added title attributes to quickgrading and quickfeedback input elements, and gave the quickfeedback input a dashed 1px black border to distinguish it easily from the grade input.

This commit is contained in:
nicolasconnault 2007-08-06 09:02:22 +00:00
parent eedd3aa27b
commit be55a047dc
2 changed files with 13 additions and 7 deletions

View File

@ -523,6 +523,7 @@ class grade_report_grader extends grade_report {
global $CFG, $USER;
$studentshtml = '';
$strfeedback = $this->get_lang_string("feedback");
$strgrade = $this->get_lang_string('grade');
$gradetabindex = 1;
$showuserimage = $this->get_pref('showuserimage');
$numusers = count($this->users);
@ -638,7 +639,8 @@ class grade_report_grader extends grade_report {
if ($this->get_pref('quickgrading') and $grade->is_editable()) {
$value = $this->get_grade_clean($gradeval, $decimalpoints);
$studentshtml .= '<input type="hidden" name="oldgrade_'.$userid.'_'.$item->id.'" value="'.$value.'" />';
$studentshtml .= '<input size="6" tabindex="' . $tabindices[$item->id]['grade'] . '" type="text" name="grade_'
$studentshtml .= '<input size="6" tabindex="' . $tabindices[$item->id]['grade']
. '" type="text" title="'. $strgrade .'" name="grade_'
.$userid.'_' .$item->id.'" value="'.$value.'" />';
} else {
$studentshtml .= $this->get_grade_clean($gradeval, $decimalpoints);
@ -653,7 +655,8 @@ class grade_report_grader extends grade_report {
}
$studentshtml .= '<input type="hidden" name="oldfeedback_'
.$userid.'_'.$item->id.'" value="' . s($grade->feedback) . '" />';
$studentshtml .= '<input tabindex="' . $tabindices[$item->id]['feedback'] . '" size="6" type="text" name="feedback_'
$studentshtml .= '<input class="quickfeedback" tabindex="' . $tabindices[$item->id]['feedback']
. '" size="6" title="' . $strfeedback . '" type="text" name="feedback_'
.$userid.'_'.$item->id.'" value="' . s($grade->feedback) . '" />';
}

View File

@ -2147,6 +2147,9 @@ body#doc-contents ul {
margin-right: 10px;
}
.grade-report-grader .quickfeedback {
border: #000000 1px dashed;
}
/* scales edit */
.grade-edit-scale .buttons {
@ -2767,7 +2770,7 @@ div#tag-description {
margin-right:auto;
display:block;
}
div#tag-management-box {
margin-bottom:10px;
text-align:center;
@ -2775,7 +2778,7 @@ div#tag-management-box {
display:block;
font-size:12px;
}
div#tag-user-table {
padding:3px;
width:95%;
@ -2809,7 +2812,7 @@ div#small-tag-cloud-box {
margin-bottom:0px;
margin-top:0px;
}
div#big-tag-cloud-box {
width:600px;
margin-left:auto;
@ -2927,7 +2930,7 @@ form#tag-management-form {
overflow:hidden;
z-index:9050;
}
#relatedtags-autocomplete .ysearchquery
#relatedtags-autocomplete .ysearchquery
{
position:absolute;
right:10px;
@ -2953,7 +2956,7 @@ form#tag-management-form {
white-space:
nowrap;
}
#relatedtags-autocomplete li.yui-ac-highlight
#relatedtags-autocomplete li.yui-ac-highlight
{
background:#FFFFCC;
}