~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/apps/groups/__init__.py

  • Committer: wagrant
  • Date: 2008-08-10 12:07:13 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1009
groups: Pretty up the admin interface somewhat.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
    req.write("<h1>Group Administration</h1>")
71
71
    # Choose subject
72
72
    subjects = db.get_subjects()
73
 
    req.write("<p>Manage a subject's groups:</p>\n")
 
73
    req.write("<label for=\"subject_select\">Subject:</label>\n")
74
74
    req.write("<select id=\"subject_select\">\n")
75
75
    for s in subjects:
76
 
        req.write("    <option value=\"%d\">%s: %s</option>\n"%
77
 
            (s['subjectid'], s['subj_code'], s['subj_name']))
 
76
        req.write("    <option value=\"%d\">%s (%s)</option>\n"%
 
77
            (s['subjectid'], s['subj_name'], s['subj_code']))
78
78
    req.write("</select>\n")
79
 
    req.write("<input type=\"button\" value=\"Manage Subject\" \
 
79
    req.write("<input type=\"button\" value=\"Manage\" \
80
80
        onclick=\"manage_subject()\" />\n")
81
81
    req.write("<div id=\"subject_div\"></div>")
82
82