Commit d6eea1d5 authored by Piper Biswell's avatar Piper Biswell Committed by Aaron Wells

Fixing instructions to have the correct name of the "Add task" button

Bug #1259377

Change-Id: Ibf89c33ba1e7d858be0107fc9438b2d35785becc
Signed-off-by: default avatarPiper Biswell <piperbiswell.student@wegc.school.nz>
parent 05bd7f47
......@@ -46,7 +46,7 @@ $string['plannotdeletedsuccessfully'] = 'There was an error deleting this plan.'
$string['plannotsavedsuccessfully'] = 'There was an error submitting this form. Please check the marked fields and try again.';
$string['plansavedsuccessfully'] = 'Plan saved successfully.';
$string['planstasks'] = 'Plan \'%s\' tasks.';
$string['planstasksdesc'] = 'Add tasks below or use the "Add" button to the right to begin to build your plan.';
$string['planstasksdescription'] = 'Add tasks below or use the "%s" button to begin building your plan.';
$string['saveplan'] = 'Save plan';
$string['title'] = 'Title';
$string['titledesc'] = 'The title will be used to display each task in the plans blocktype.';
......
......@@ -64,6 +64,7 @@ $smarty->assign_by_ref('plan', $id);
$smarty->assign('strnotasksaddone',
get_string('notasksaddone', 'artefact.plans',
'<a href="' . get_config('wwwroot') . 'artefact/plans/new.php?id='.$plan->get('id').'">', '</a>'));
$smarty->assign('planstasksdescription', get_string('planstasksdescription', 'artefact.plans', get_string('newtask', 'artefact.plans')));
$smarty->assign('PAGEHEADING', get_string("planstasks", "artefact.plans",$plan->get('title')));
$smarty->assign('INLINEJAVASCRIPT', $js);
$smarty->display('artefact:plans:plan.tpl');
......@@ -4,7 +4,7 @@
<a class="btn" href="{$WWWROOT}artefact/plans/new.php?id={$plan}">{str section="artefact.plans" tag="newtask"}</a>
</div>
{if !$tasks.data}
<div>{str tag="planstasksdesc" section="artefact.plans"}</div>
<div>{$planstasksdescription}</div>
<div class="message">{$strnotasksaddone|safe}</div>
{else}
<table id="taskslist" class="fullwidth listing">
......
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