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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/templates/user-admin.html

[Uber-commit of holiday work because I lacked a local copy of the branch.]

 ivle.makeuser: Don't use jailconf.py as a header for the in-jail conf.py;
     generate the whole thing using string formatting operators and include
     the template inline.

 ivle.makeuser.make_conf_py: XXX the inclusion of ivle.conf.jail_base in
     the jail. It is simply there to placate ivle.studpath, and needs
     to go before we can entirely remove the in-jail config.

 ivle-buildjail:
   - Add. Converted from setup.buildjail.
   - Build the jail in __base_build__ and rsync it to __base__ when
     done, rather than operating only in ./jail
   - Rename --rebuildjail/-j to --recreate/-r, as the whole script
     is now for jail rebuilding. Also add a warning to the usage string about
     the large volume likely to be downloaded.
   - Check existence before removing trees.
   - Don't copy jailconf.py over conf.py in the jail. Also make
     sure that we remove conf.pyc.

 setup.configure:
   - Stop generating jailconf.py at all.
   - Add a jail_system_build setting, defaulting to __base_build__ next to
     the existing __base__.
   - Don't use an OptionParser before calling the real function, as that
     adds options dynamically.

 setup.install:
   - Add an option (-R) to avoid writing out svn revision info to
     $PREFIX/share/ivle/revision.txt.
   - Remove jail-copying things.
   - Install all services to the host, rather than just usrmgt-server. We do
     this so we can build the jail from the host without the source tree.
   - Shuffle some things, and don't install phpBB3 twice.
   - Add a --root argument, to take an alternate root directory to install
     into (as given to autotools in $DESTDIR).

 setup.build:
   - Allow running as non-root.
   - Take a --no-compile option to not byte-compile Python files.

 setup.util:
   - Include usrmgt-server in the list of services.
   - Add make_install_path(), a wrapper around os.path.join() that ensures
     the second path is relative.
   - Install ivle-buildjail with the other binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html xmlns="http://www.w3.org/1999/xhtml"
2
 
      xmlns:py="http://genshi.edgewall.org/">
3
 
  <head>
4
 
    <title>Administer - ${user.nick}</title>
5
 
  </head>
6
 
  <body>
7
 
    <h1>Administer ${user.nick}</h1>
8
 
    <div id="ivle_padding">
9
 
      <form class="verticalform" action="" method="post">
10
 
        <div>
11
 
          <label for="field_login">Login:</label>
12
 
          <span id="field_login">${user.login}</span>
13
 
        </div>
14
 
        <div>
15
 
          <label for="field_unixid">UID:</label>
16
 
          <span id="field_unixid">${user.unixid}</span>
17
 
        </div>
18
 
        <div>
19
 
          <label for="field_disabled">Disabled:</label>
20
 
          <input py:if="user.state in (u'enabled', u'disabled')"
21
 
              py:attrs="{'disabled': 'disabled'} if disable_admin else {}"
22
 
              type="checkbox" name="disabled" id="field_disabled" />
23
 
          <span py:if="user.state not in (u'enabled', u'disabled')">
24
 
            Has not accepted agreement
25
 
          </span>
26
 
        </div>
27
 
        <div>
28
 
          <label for="field_admin">Administrator:</label>
29
 
          <input type="checkbox" name="admin" id="field_admin"
30
 
              py:attrs="{'disabled': 'disabled'} if disable_admin else {}" />
31
 
          <span py:if="'admin' in errors" class="form_error">${errors.admin}</span>
32
 
        </div>
33
 
        <div>
34
 
          <label for="field_fullname">Full name:</label>
35
 
          <input type="text" name="fullname" id="field_fullname" size="40" />
36
 
          <span py:if="'fullname' in errors" class="form_error">${errors.fullname}</span>
37
 
        </div>
38
 
        <div>
39
 
          <label for="field_studentid">Student ID:</label>
40
 
          <input type="text" name="studentid" id="field_studentid" size="40" />
41
 
          <span py:if="'studentid' in errors" class="form_error">${errors.studentid}</span>
42
 
        </div>
43
 
        <p><input type="submit" value="Save Changes" /></p>
44
 
      </form>
45
 
    </div>
46
 
  </body>
47
 
</html>