Commit d3bb3dc7 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1895066"

parents 846052ad e105d8aa
......@@ -17,7 +17,7 @@ $string['blockcontent'] = 'Instructions';
$string['nopeerassessment'] = 'No assessment feedback';
$string['addpeerassessment'] = 'Add peer assessment';
$string['instructions'] = 'Instructions';
$string['draft'] = 'Save draft';
$string['savedraft'] = 'Save draft';
$string['publish'] = 'Publish';
$string['savepublishhelp'] = '<p><strong>Save draft:</strong> Only you can view it. While your assessment is in draft status, you can make changes.</p>
<p><strong>Publish:</strong> The person for whom you are giving the peer assessment can see your assessment. Everybody else who has access to the portfolio can view it as well, unless the portfolio also contains the sign-off block and is not signed off by the portfolio owner. You cannot revert a published assessment to draft status.</p>';
......@@ -650,6 +650,7 @@ class ArtefactTypePeerassessment extends ArtefactType {
if ($item->private) {
$item->pubmessage = get_string('thisassessmentisprivate', 'artefact.peerassessment');
$item->pubstatus = get_string('draft', 'view');
if (isset($data->showcomment) && $data->showcomment == $item->id) {
......@@ -793,7 +794,7 @@ class ArtefactTypePeerassessment extends ArtefactType {
'classes' => array('draftsubmit' => 'btn-secondary',
'submit' => 'btn-secondary',
'cancel' => 'btn-secondary submitcancel'),
'value' => array('draftsubmit' => get_string('draft', 'blocktype.peerassessment/peerassessment'),
'value' => array('draftsubmit' => get_string('savedraft', 'blocktype.peerassessment/peerassessment'),
'submit' => get_string('publish', 'blocktype.peerassessment/peerassessment'),
'cancel' => get_string('cancel'))
......@@ -369,6 +369,7 @@ $string['blocktypecategorydesc.general'] = 'Click for general options';
$string['blocktypecategorydesc.internal'] = 'Click for personal info options';
$string[''] = 'Click for journal options';
$string['draft'] = 'Draft';
$string['drafttextblockdescription'] = 'Save the block as draft if you don\'t want the text to be visible to anybody. Once the text is published, it can\'t be set to draft again.';
$string['notitle'] = 'No title';
......@@ -48,6 +48,11 @@
{if $item->private}
<div class="comment-privacy metadata">
<em class="privatemessage"> {$item->pubstatus} </em>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment