Skip to content
Snippets Groups Projects
Commit 235e3ceb authored by Chris Sangwin's avatar Chris Sangwin
Browse files

Further work on issue #908.

parent 05aa369b
No related branches found
No related tags found
No related merge requests found
......@@ -513,8 +513,6 @@ $string['expectedanswernote'] = 'Expected answer note';
$string['expectedoutcomes'] = 'Expected PRT outcomes: [inputs used]';
$string['expectedpenalty'] = 'Expected penalty';
$string['expectedscore'] = 'Expected score';
$string['exportthisquestion'] = 'Export this question';
$string['exportthisquestion_help'] = 'This will create a Moodle XML export file containing just this one question. One example of when this is useful if you think this question demonstrates a bug in STACK that you would like to report to the developers.';
$string['inputdisplayed'] = 'Displayed as';
$string['inputentered'] = 'Value entered';
$string['inputexpression'] = 'Test input';
......@@ -538,9 +536,6 @@ $string['questiontestsdefault'] = '(Default)';
$string['runquestiontests'] = 'STACK question dashboard';
$string['runquestiontests_help'] = 'The dashboard runs question tests which unit-test the questions to ensure the behaviour matches expectations expressed by the teacher, and deployed variants ensure random versions seen by a student are pre-tested against the question tests. These are tools to help you create and test reliable questions and should be used in all cases a question will be used by students. The dashboard also has numerous other STACK specific functions.';
$string['runquestiontests_alert'] = 'Question is missing tests or variants.';
$string['seethisquestioninthequestionbank'] = 'See this question in the question bank';
$string['editquestioninthequestionbank'] = 'Edit this question';
$string['sendgeneralfeedback'] = 'Send general feedback to the CAS';
$string['showingundeployedvariant'] = 'Showing undeployed variant: {$a}';
$string['switchtovariant'] = 'Switch to variant: ';
$string['testcasexresult'] = 'Test case {$a->no} {$a->result}';
......@@ -549,12 +544,18 @@ $string['testingquestionvariants'] = 'Preparing question variants';
$string['testinputs'] = 'Test inputs';
$string['testinputsimpwarning'] = 'Please note that test inputs are always <em>unsimplified</em> regardless of the question or PRT option setting. Please use <tt>ev(...,simp)</tt> to simplify part or all of the test input expressions.';
$string['testthisvariant'] = 'Switch to test this variant';
$string['tidyquestion'] = 'Tidy STACK question tool';
$string['tidyquestionx'] = 'Rename the parts of question {$a}';
$string['undeploy'] = 'Un-deploy';
$string['variant'] = 'Variant';
$string['basicquestionreport'] = 'Basic question use report';
$string['editquestioninthequestionbank'] = '<i class="fa fa-pencil"></i> Edit question';
$string['seethisquestioninthequestionbank'] = '<i class="fa fa-list-alt"></i> Show in question bank';
$string['exportthisquestion'] = '<i class="fa fa-download"></i> Export as Moodle XML';
$string['exportthisquestion_help'] = 'This will create a Moodle XML export file containing just this one question. One example of when this is useful if you think this question demonstrates a bug in STACK that you would like to report to the developers.';
$string['tidyquestion'] = '<i class="fa fa-sort-amount-asc"></i> Tidy inputs and PRTs';
$string['sendgeneralfeedback'] = '<i class="fa fa-file-text"></i></i> Edit general feedback';
$string['basicquestionreport'] = '<i class="fa fa-bar-chart"></i> Analyze responses';
$string['basicquestionreport_help'] = 'Generates a very basic report on attempts at this question on the server. Useful for deciding which PRT test can be added to improve feedback in the light of what the student actually does. (Most questions are only used in one place)';
$string['basicreportraw'] = 'Raw data';
$string['basicreportnotes'] = 'Frequency of answer notes, for each PRT, regardless of which variant was used';
......
......@@ -156,17 +156,18 @@ $chatparams['cas'] = $question->generalfeedback;
$chatlink = new moodle_url('/question/type/stack/adminui/caschat.php', $chatparams);
$links = array();
$links[] = html_writer::link($questionbanklink, stack_string('seethisquestioninthequestionbank'));
if ($canedit) {
$links[] = html_writer::link($questionbanklinkedit, stack_string('editquestioninthequestionbank'));
}
$links[] = html_writer::link($questionbanklink, stack_string('seethisquestioninthequestionbank'));
if ($canedit) {
$links[] = html_writer::link($chatlink, stack_string('sendgeneralfeedback'));
$links[] = html_writer::link($exportquestionlink, stack_string('exportthisquestion')) .
$OUTPUT->help_icon('exportthisquestion', 'qtype_stack');
$links[] = html_writer::link($question->qtype->get_tidy_question_url($question),
stack_string('tidyquestion'));
$links[] = html_writer::link($exportquestionlink, stack_string('exportthisquestion'));
}
$links[] = html_writer::link(new moodle_url('/question/type/stack/questiontestreport.php', $urlparams),
stack_string('basicquestionreport')) . $OUTPUT->help_icon('basicquestionreport', 'qtype_stack');
stack_string('basicquestionreport'));
echo html_writer::tag('p', implode(' | ', $links));
flush();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment