Merge commit 'catalyst/MOODLE_19_STABLE' into mdl19-linuxchix
[moodle-linuxchix.git] / grade / edit / outcome / course_form.html
blob3185580184b9d92abe316685a034e6c0cff6b13b
1 <?php $maxlength=70; ?>
3 <form action="course.php" method="post">
4 <div>
5 <table style="margin-left:auto;margin-right:auto">
6 <tr>
7 <td>
8 <label for="removeoutcomes"><?php print_string('outcomescourse', 'grades'); ?></label>
9 <br />
10 <select id="removeoutcomes" size="20" name="removeoutcomes[]" multiple="multiple">
11 <?php
12 if ($co_standard_notused) {
13 echo '<optgroup label="'.get_string('outcomescoursenotused', 'grades').'">';
14 foreach ($co_standard_notused as $outcome) {
15 echo '<option value="'.$outcome->id.'">'.shorten_text($outcome->get_name(), $maxlength).'</option>';
17 echo '</optgroup>';
19 if ($co_standard_used) {
20 echo '<optgroup label="'.get_string('outcomescourseused', 'grades').'">';
21 foreach ($co_standard_used as $outcome) {
22 echo '<option value="'.$outcome->id.'">'.shorten_text($outcome->get_name(), $maxlength).'</option>';
24 echo '</optgroup>';
26 if ($co_custom) {
27 echo '<optgroup label="'.get_string('outcomescoursecustom', 'grades').'">';
28 foreach ($co_custom as $outcome) {
29 echo '<option value="'.$outcome->id.'">'.shorten_text($outcome->get_name(), $maxlength).'</option>';
31 echo '</optgroup>';
34 </select>
35 </td>
36 <?php
37 if (has_capability('moodle/grade:manageoutcomes', $context)) {
39 <td>
40 <p class="arrow_button">
41 <input name="add" id="add" type="submit" value="<?php echo '&nbsp; '.$THEME->larrow.' &nbsp; &nbsp; '.get_string('add'); ?>" title="<?php print_string('add'); ?>" />
42 <br />
43 <input name="remove" id="remove" type="submit" value="<?php echo '&nbsp;'.$THEME->rarrow.' &nbsp; &nbsp; '.get_string('remove'); ?>" title="<?php print_string('remove'); ?>" />
44 </p>
45 </td>
46 <?php } ?>
47 <td>
48 <label for="addoutcomes"><?php print_string('outcomesstandardavailable', 'grades'); ?></label>
49 <br />
50 <select id="addoutcomes" size="20" name="addoutcomes[]" multiple="multiple">
52 <?php
53 foreach ($standardoutcomes as $outcome) {
54 echo '<option value="'.$outcome->id.'">'.shorten_text($outcome->get_name(), $maxlength).'</option>';
57 </select>
58 </td>
59 </tr>
60 </table>
62 <input name="id" type="hidden" value="<?php echo $courseid?>"/>
63 </div>
64 </form>