| Línea 301... |
Línea 301... |
| 301 |
$o .= groups_print_activity_menu($summary->cm, $currenturl->out(), true);
|
301 |
$o .= groups_print_activity_menu($summary->cm, $currenturl->out(), true);
|
| 302 |
}
|
302 |
}
|
| Línea 303... |
Línea 303... |
| 303 |
|
303 |
|
| 304 |
$o .= $this->output->box_start('boxaligncenter gradingsummarytable');
|
304 |
$o .= $this->output->box_start('boxaligncenter gradingsummarytable');
|
| 305 |
$t = new \html_table();
|
305 |
$t = new \html_table();
|
| Línea 306... |
Línea 306... |
| 306 |
$t->attributes['class'] = 'generaltable table-bordered';
|
306 |
$t->attributes['class'] = 'generaltable table table-striped table-bordered';
|
| 307 |
|
307 |
|
| 308 |
// Visibility Status.
|
308 |
// Visibility Status.
|
| 309 |
$cell1content = get_string('hiddenfromstudents');
|
309 |
$cell1content = get_string('hiddenfromstudents');
|
| Línea 647... |
Línea 647... |
| 647 |
$time = time();
|
647 |
$time = time();
|
| Línea 648... |
Línea 648... |
| 648 |
|
648 |
|
| Línea 649... |
Línea 649... |
| 649 |
$o .= $this->output->box_start('boxaligncenter submissionsummarytable');
|
649 |
$o .= $this->output->box_start('boxaligncenter submissionsummarytable');
|
| 650 |
|
650 |
|
| Línea 651... |
Línea 651... |
| 651 |
$t = new \html_table();
|
651 |
$t = new \html_table();
|
| 652 |
$t->attributes['class'] = 'generaltable table-bordered';
|
652 |
$t->attributes['class'] = 'generaltable table table-striped table-bordered';
|
| 653 |
|
653 |
|
| 654 |
$warningmsg = '';
|
654 |
$warningmsg = '';
|
| Línea 673... |
Línea 673... |
| 673 |
}
|
673 |
}
|
| Línea 674... |
Línea 674... |
| 674 |
|
674 |
|
| 675 |
$this->add_table_row_tuple($t, $cell1content, $cell2content);
|
675 |
$this->add_table_row_tuple($t, $cell1content, $cell2content);
|
| Línea -... |
Línea 676... |
| - |
|
676 |
}
|
| 676 |
}
|
677 |
|
| 677 |
|
678 |
// If multiple attempts are allowed.
|
| 678 |
if ($status->attemptreopenmethod != ASSIGN_ATTEMPT_REOPEN_METHOD_NONE) {
|
679 |
if ($status->maxattempts > 1 || $status->maxattempts == ASSIGN_UNLIMITED_ATTEMPTS) {
|
| 679 |
$currentattempt = 1;
|
680 |
$currentattempt = 1;
|
| 680 |
if (!$status->teamsubmissionenabled) {
|
681 |
if (!$status->teamsubmissionenabled) {
|
| 681 |
if ($status->submission) {
|
682 |
if ($status->submission) {
|
| Línea 1057... |
Línea 1058... |
| 1057 |
$o .= $this->output->box_start('boxaligncenter plugincontentsummary summary_' . $classsuffix);
|
1058 |
$o .= $this->output->box_start('boxaligncenter plugincontentsummary summary_' . $classsuffix);
|
| Línea 1058... |
Línea 1059... |
| 1058 |
|
1059 |
|
| 1059 |
$link = '';
|
1060 |
$link = '';
|
| 1060 |
if ($showviewlink) {
|
1061 |
if ($showviewlink) {
|
| 1061 |
$previewstr = get_string('viewsubmission', 'assign');
|
1062 |
$previewstr = get_string('viewsubmission', 'assign');
|
| Línea 1062... |
Línea 1063... |
| 1062 |
$icon = $this->output->pix_icon('t/preview', $previewstr);
|
1063 |
$icon = $this->output->pix_icon('t/viewdetails', $previewstr);
|
| 1063 |
|
1064 |
|
| 1064 |
$expandstr = get_string('viewfull', 'assign');
|
1065 |
$expandstr = get_string('viewfull', 'assign');
|
| 1065 |
$expandicon = $this->output->pix_icon('t/switch_plus', $expandstr);
|
1066 |
$expandicon = $this->output->pix_icon('t/switch_plus', $expandstr);
|
| Línea 1128... |
Línea 1129... |
| 1128 |
public function render_assign_grading_table(\assign_grading_table $table) {
|
1129 |
public function render_assign_grading_table(\assign_grading_table $table) {
|
| 1129 |
$o = '';
|
1130 |
$o = '';
|
| 1130 |
$o .= $this->output->box_start('boxaligncenter gradingtable position-relative');
|
1131 |
$o .= $this->output->box_start('boxaligncenter gradingtable position-relative');
|
| Línea 1131... |
Línea 1132... |
| 1131 |
|
1132 |
|
| 1132 |
$this->page->requires->js_init_call('M.mod_assign.init_grading_table', array());
|
- |
|
| 1133 |
$this->page->requires->string_for_js('nousersselected', 'assign');
|
- |
|
| 1134 |
$this->page->requires->string_for_js('batchoperationconfirmgrantextension', 'assign');
|
- |
|
| 1135 |
$this->page->requires->string_for_js('batchoperationconfirmlock', 'assign');
|
- |
|
| 1136 |
$this->page->requires->string_for_js('batchoperationconfirmremovesubmission', 'assign');
|
- |
|
| 1137 |
$this->page->requires->string_for_js('batchoperationconfirmreverttodraft', 'assign');
|
- |
|
| 1138 |
$this->page->requires->string_for_js('batchoperationconfirmunlock', 'assign');
|
- |
|
| 1139 |
$this->page->requires->string_for_js('batchoperationconfirmaddattempt', 'assign');
|
- |
|
| 1140 |
$this->page->requires->string_for_js('batchoperationconfirmdownloadselected', 'assign');
|
- |
|
| 1141 |
$this->page->requires->string_for_js('batchoperationconfirmsetmarkingworkflowstate', 'assign');
|
- |
|
| 1142 |
$this->page->requires->string_for_js('batchoperationconfirmsetmarkingallocation', 'assign');
|
- |
|
| 1143 |
$this->page->requires->string_for_js('editaction', 'assign');
|
- |
|
| 1144 |
foreach ($table->plugingradingbatchoperations as $plugin => $operations) {
|
- |
|
| 1145 |
foreach ($operations as $operation => $description) {
|
- |
|
| 1146 |
$this->page->requires->string_for_js('batchoperationconfirm' . $operation,
|
- |
|
| 1147 |
'assignfeedback_' . $plugin);
|
- |
|
| 1148 |
}
|
- |
|
| 1149 |
}
|
1133 |
$this->page->requires->js_init_call('M.mod_assign.init_grading_table', array());
|
| 1150 |
$o .= $this->flexible_table($table, $table->get_rows_per_page(), true);
|
1134 |
$o .= $this->flexible_table($table, $table->get_rows_per_page(), false);
|
| Línea 1151... |
Línea 1135... |
| 1151 |
$o .= $this->output->box_end();
|
1135 |
$o .= $this->output->box_end();
|
| 1152 |
|
1136 |
|
| Línea 1174... |
Línea 1158... |
| 1174 |
$o .= $this->output->box_start('boxaligncenter plugincontentsummary summary_' . $classsuffix);
|
1158 |
$o .= $this->output->box_start('boxaligncenter plugincontentsummary summary_' . $classsuffix);
|
| Línea 1175... |
Línea 1159... |
| 1175 |
|
1159 |
|
| 1176 |
$link = '';
|
1160 |
$link = '';
|
| 1177 |
if ($showviewlink) {
|
1161 |
if ($showviewlink) {
|
| 1178 |
$previewstr = get_string('viewfeedback', 'assign');
|
1162 |
$previewstr = get_string('viewfeedback', 'assign');
|
| Línea 1179... |
Línea 1163... |
| 1179 |
$icon = $this->output->pix_icon('t/preview', $previewstr);
|
1163 |
$icon = $this->output->pix_icon('t/viewdetails', $previewstr);
|
| 1180 |
|
1164 |
|
| 1181 |
$expandstr = get_string('viewfull', 'assign');
|
1165 |
$expandstr = get_string('viewfull', 'assign');
|
| 1182 |
$expandicon = $this->output->pix_icon('t/switch_plus', $expandstr);
|
1166 |
$expandicon = $this->output->pix_icon('t/switch_plus', $expandstr);
|
| Línea 1234... |
Línea 1218... |
| 1234 |
}
|
1218 |
}
|
| Línea 1235... |
Línea 1219... |
| 1235 |
|
1219 |
|
| 1236 |
/**
|
1220 |
/**
|
| 1237 |
* Render a course index summary
|
1221 |
* Render a course index summary
|
| - |
|
1222 |
*
|
| - |
|
1223 |
* @deprecated since Moodle 5.0 (MDL-83888).
|
| 1238 |
*
|
1224 |
* @todo MDL-84429 Final deprecation in Moodle 6.0.
|
| 1239 |
* @param \assign_course_index_summary $indexsummary
|
1225 |
* @param \assign_course_index_summary $indexsummary
|
| 1240 |
* @return string
|
1226 |
* @return string
|
| - |
|
1227 |
*/
|
| - |
|
1228 |
#[\core\attribute\deprecated(
|
| - |
|
1229 |
since: '5.0',
|
| - |
|
1230 |
mdl: 'MDL-83888',
|
| - |
|
1231 |
reason: 'The assign_course_index_summary class is not used anymore.',
|
| 1241 |
*/
|
1232 |
)]
|
| - |
|
1233 |
public function render_assign_course_index_summary(\assign_course_index_summary $indexsummary) {
|
| - |
|
1234 |
\core\deprecation::emit_deprecation([$this, __FUNCTION__]);
|
| 1242 |
public function render_assign_course_index_summary(\assign_course_index_summary $indexsummary) {
|
1235 |
|
| Línea 1243... |
Línea 1236... |
| 1243 |
$o = '';
|
1236 |
$o = '';
|
| 1244 |
|
1237 |
|
| 1245 |
$strplural = get_string('modulenameplural', 'assign');
|
1238 |
$strplural = get_string('modulenameplural', 'assign');
|