$string['areyousuretodeallocate'] = 'Are you sure you want deallocate the selected assessment?';
$string['areyousuretodeallocategraded'] = 'You are going to remove the assessment that has already been graded. Are you really sure you want to do it?';
$string['pluginname'] = 'Manual allocation';
+$string['showallparticipants'] = 'Show all participants';
if ($hlauthorid > 0 and $hlreviewerid > 0) {
// display just those two users
$participants = array_intersect_key($participants, array($hlauthorid => null, $hlreviewerid => null));
+ $button = $OUTPUT->single_button($PAGE->url, get_string('showallparticipants', 'workshopallocation_manual'), 'get');
} else {
// slice the list of participants according to the current page
$participants = array_slice($participants, $page * $perpage, $perpage, true);
+ $button = '';
}
// this will hold the information needed to display user names and pictures
$wsoutput = $PAGE->get_renderer('mod_workshop');
$uioutput = $PAGE->get_renderer('workshopallocation_manual');
- return $pagingbarout . $wsoutput->status_message($msg) . $uioutput->display_allocations($data) . $pagingbarout;
+ return $pagingbarout . $wsoutput->status_message($msg) . $uioutput->display_allocations($data) . $button . $pagingbarout;
}
/**
font-size: 90%;
margin-top: 1em;
}
-
$string['latesubmissions_help'] = 'If enabled, an author may submit their work after the submissions deadline or during the assessment phase. Late submissions cannot be edited though.';
$string['latesubmissionsallowed'] = 'Late submissions are allowed';
$string['maxbytes'] = 'Maximum file size';
-$string['messageclose'] = '(X)';
$string['modulename'] = 'Workshop';
$string['modulenameplural'] = 'Workshops';
$string['mysubmission'] = 'My submission';
$sty = empty($message->sty) ? 'info' : $message->sty;
$o = html_writer::tag('span', $message->text);
- $closer = html_writer::tag('a', get_string('messageclose', 'workshop'), array('href' => $this->page->url->out()));
- $o .= $this->output->container($closer, 'status-message-closer');
if (isset($message->extra)) {
$o .= $message->extra;
}
font-size: 120%;
}
+.path-mod-workshop div.singlebutton {
+ text-align: center;
+ margin: 0.75em auto;
+}
+
/**
* Submission - one line summary display
*/
position: relative;
}
-.path-mod-workshop .status-message-closer {
- font-weight: bold;
- position: absolute;
- top: 5px;
- right: 15px;
+.path-mod-workshop .status-message .singlebutton {
+ text-align: left;
+ margin: 0px;
}
.path-mod-workshop .status-message.ok {