Commit 0b5a347c authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1843206: Adjust the sign-off block text in edit mode"

parents cea413f5 b04c0d74
......@@ -13,7 +13,7 @@ defined('INTERNAL') || die();
$string['title'] = 'Sign-off';
$string['description'] = 'A block to display page sign-off and verification options';
$string['placeholder'] = 'This block\'s content is displayed below the page heading rather than in a block itself on the page.';
$string['placeholder1'] = 'This block\'s content is displayed aligned to the right hand side. The block is best placed at top right of the page.';
$string['signoff'] = 'Sign off';
$string['signoffdesc'] = 'The portfolio owner can sign off a page when all requirements have been met to indicate that it is ready for assessment.';
......
......@@ -69,7 +69,7 @@ class PluginBlocktypeSignoff extends MaharaCoreBlocktype {
$smarty = smarty_core();
if ($editing) {
$smarty->assign('editing', $editing);
$smarty->assign('placeholder', get_string('placeholder', 'blocktype.peerassessment/signoff'));
$smarty->assign('placeholder', get_string('placeholder1', 'blocktype.peerassessment/signoff'));
$html = $smarty->fetch('blocktype:signoff:signoff.tpl');
}
else {
......
......@@ -63,7 +63,8 @@ Background:
And I click on "Sign-off" in the "Content types" property
And I enable the switch "Verify"
And I press "Save"
Then I should see "This block's content is displayed below the page heading rather than in a block itself on the page"
Then I should see "This block's content is displayed aligned to the right hand side. The block is best placed at top right of the page."
And I wait "1" seconds
And I follow "Return to pages and collections"
And I go to portfolio page "Page UserA_01"
And I click on "Edit"
......@@ -76,7 +77,8 @@ Background:
And I click on "Sign-off" in the "Content types" property
And I enable the switch "Verify"
And I press "Save"
Then I should see "This block's content is displayed below the page heading rather than in a block itself on the page"
Then I should see "This block's content is displayed aligned to the right hand side. The block is best placed at top right of the page."
And I wait "1" seconds
And I follow "Return to pages and collections"
# Add peer assessment and signoff blocks to Page Page UserA_03
Given I go to portfolio page "Page UserA_03"
......@@ -90,7 +92,8 @@ Background:
And I click on "Sign-off" in the "Content types" property
And I enable the switch "Verify"
And I press "Save"
Then I should see "This block's content is displayed below the page heading rather than in a block itself on the page"
Then I should see "This block's content is displayed aligned to the right hand side. The block is best placed at top right of the page."
And I wait "1" seconds
And I follow "Return to pages and collections"
# share the page with people and give a role
When I choose "Shared by me" in "Share" from main menu
......
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