gradebook MDL-23054 Added a link to "manage outcomes" from the "add outcomes to course" screen

This commit is contained in:
Andrew Davis 2010-07-08 01:42:57 +00:00
parent b012d805e1
commit 4a15febe7c

View File

@ -59,6 +59,16 @@
</tr>
</table>
<?php
if (has_capability('moodle/grade:manageoutcomes', $context)) {
?>
<p class="mdl-align">
<a href="<?php echo $CFG->wwwroot ?>/grade/edit/outcome/index.php"><?php echo get_string('editoutcomes','grades'); ?></a>
</p>
<?php
}
?>
<input name="id" type="hidden" value="<?php echo $courseid?>"/>
<input type="hidden" name="sesskey" value="<?php echo sesskey() ?>" />
</div>