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

« back to all changes in this revision

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

  • Committer: Matt Giuca
  • Date: 2010-02-11 05:21:17 UTC
  • Revision ID: matt.giuca@gmail.com-20100211052117-rb4q9rnrp2km3571
User administration page: Do not let an admin user change their own admin checkbox (disable and don't let it change). This would be bad.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
          <div>
21
21
            <label for="field_admin">Administrator:</label>
22
 
            <input type="checkbox" name="admin" id="field_admin" />
 
22
            <input type="checkbox" name="admin" id="field_admin"
 
23
                py:attrs="{'disabled': 'disabled'} if disable_admin else {}" />
23
24
            <span py:if="'admin' in errors" class="form_error">${errors.admin}</span>
24
25
          </div>
25
26
          <div>