diff --git a/mod/assignment/lib.php b/mod/assignment/lib.php
index 9b94a356be7..e599f510995 100644
--- a/mod/assignment/lib.php
+++ b/mod/assignment/lib.php
@@ -520,7 +520,6 @@ class assignment_base {
case 'fastgrade':
///do the fast grading stuff - this process should work for all 3 subclasses
- $mailinfo = get_user_preferences('assignment_mailinfoqg', 1);
$grading = false;
$commenting = false;
$col = false;
@@ -1011,7 +1010,6 @@ class assignment_base {
$perpage = ($perpage <= 0) ? 10 : $perpage ;
set_user_preference('assignment_perpage', $perpage);
set_user_preference('assignment_quickgrade', optional_param('quickgrade', 0, PARAM_BOOL));
- set_user_preference('assignment_mailinfoqg', optional_param('mailinfoqg', 0, PARAM_BOOL));
}
/* next we get perpage and quickgrade (allow quick grade) params
@@ -1314,7 +1312,16 @@ class assignment_base {
$table->print_html(); /// Print the whole table
if ($quickgrade){
- echo '
';
+ $lastmailinfo = get_user_preferences('assignment_mailinfo', 1) ? '' : 'checked="checked"';
+ echo '';
+ echo '
';
+ echo '';
+ echo '';
+ echo '';
+ helpbutton('disableemailnotification', get_string('disableemailnotification', 'assignment'), 'assignment').'
';
+ echo '
';
+ echo '';
+ echo '';
echo '';
}
/// End of fast grading form
@@ -1332,23 +1339,13 @@ class assignment_base {
helpbutton('pagesize', get_string('pagesize','assignment'), 'assignment');
echo '';
echo '| ';
- print_string('quickgrade','assignment');
+ echo '';
echo ' | ';
echo '';
- if ($quickgrade){
- echo '';
- } else {
- echo '';
- }
+ $checked = $quickgrade ? 'checked="checked"' : '';
+ echo '';
helpbutton('quickgrade', get_string('quickgrade', 'assignment'), 'assignment').'';
echo ' |
';
- echo '| ';
- $lastmailinfoqg = get_user_preferences('assignment_mailinfoqg', 1) ? '' : 'checked="checked"';
- echo ' | ';
- echo '';
- echo '';
- helpbutton('disableemailnotification', get_string('disableemailnotification', 'assignment'), 'assignment').'';
- echo ' |
';
echo '| ';
echo '';
echo ' |
';
@@ -1679,7 +1676,7 @@ class assignment_base {
$ffurl = "$CFG->wwwroot/file.php?file=/$filearea/$file";
}
- $output .= '
'.
+ $output .= '
'.
''.$file.'
';
}
}
diff --git a/mod/assignment/styles.php b/mod/assignment/styles.php
index 17b9ad761a6..54f310994e2 100644
--- a/mod/assignment/styles.php
+++ b/mod/assignment/styles.php
@@ -164,3 +164,13 @@
text-align:right;
margin-left:auto;
}
+
+#mod-assignment-submissions .fgcontrols {
+ margin-top: 1em;
+ text-align:center;
+}
+
+#mod-assignment-submissions .fgcontrols .fastgbutton{
+ margin-top: 0.5em;
+}
+
diff --git a/mod/assignment/type/online/assignment.class.php b/mod/assignment/type/online/assignment.class.php
index e6a3dd66a4c..16cdbb351ef 100644
--- a/mod/assignment/type/online/assignment.class.php
+++ b/mod/assignment/type/online/assignment.class.php
@@ -177,7 +177,7 @@ class assignment_online extends assignment_base {
return '';
}
$output = ''.
- '

'.
+ '

'.
link_to_popup_window ('/mod/assignment/type/online/file.php?id='.$this->cm->id.'&userid='.
$submission->userid, 'file'.$userid, shorten_text(trim(strip_tags(format_text($submission->data1,$submission->data2))), 15), 450, 580,
get_string('submission', 'assignment'), 'none', true).
diff --git a/mod/assignment/type/upload/assignment.class.php b/mod/assignment/type/upload/assignment.class.php
index b2ad65f9496..7e81d71285c 100644
--- a/mod/assignment/type/upload/assignment.class.php
+++ b/mod/assignment/type/upload/assignment.class.php
@@ -397,7 +397,7 @@ class assignment_upload extends assignment_base {
$ffurl = "$CFG->wwwroot/file.php?file=/$filearea/$file";
- $output .= '
'.$file.'';
+ $output .= '
'.$file.'';
if ($candelete) {
$delurl = "$CFG->wwwroot/mod/assignment/delete.php?id={$this->cm->id}&file=$file&userid=$userid&mode=$mode&offset=$offset&action=response";
diff --git a/mod/assignment/type/uploadsingle/assignment.class.php b/mod/assignment/type/uploadsingle/assignment.class.php
index ba487639877..491538e9189 100644
--- a/mod/assignment/type/uploadsingle/assignment.class.php
+++ b/mod/assignment/type/uploadsingle/assignment.class.php
@@ -29,7 +29,7 @@ class assignment_uploadsingle extends assignment_base {
}
//died right here
//require_once($ffurl);
- $output = '

'.
+ $output = '

'.
'
'.$file.'';
}
}