~ubuntu-branches/ubuntu/jaunty/moodle/jaunty

« back to all changes in this revision

Viewing changes to grade/edit/outcome/course_form.html

  • Committer: Bazaar Package Importer
  • Author(s): Jordan Mantha, Matt Oquist
  • Date: 2009-02-25 15:16:22 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090225151622-0ekt1liwhv2obfza
Tags: 1.9.4.dfsg-0ubuntu1
* Merge with Debian git (Closes LP: #322961, #239481, #334611):
  - use Ubuntu's smarty lib directory for linking
  - use internal yui library 
  - add update-notifier support back in

[Matt Oquist]
  * renamed prerm script
  * significantly rewrote postinst and other maintainer scripts to improve
    user experience and package maintainability
    (Closes LP: #225662, #325450, #327843, #303078, #234609)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php $maxlength=70; ?>
 
2
 
 
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>';
 
16
                }
 
17
                echo '</optgroup>';
 
18
            }
 
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>';
 
23
                }
 
24
                echo '</optgroup>';
 
25
            }
 
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>';
 
30
                }
 
31
                echo '</optgroup>';
 
32
            }
 
33
            ?>
 
34
            </select>
 
35
        </td>
 
36
        <?php
 
37
        if (has_capability('moodle/grade:manageoutcomes', $context)) {
 
38
        ?>
 
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">
 
51
 
 
52
            <?php
 
53
            foreach ($standardoutcomes as $outcome) {
 
54
                echo '<option value="'.$outcome->id.'">'.shorten_text($outcome->get_name(), $maxlength).'</option>';
 
55
            }
 
56
            ?>
 
57
            </select>
 
58
        </td>
 
59
    </tr>
 
60
</table>
 
61
 
 
62
<input name="id" type="hidden" value="<?php echo $courseid?>"/>
 
63
</div>
 
64
</form>