~ubuntu-branches/ubuntu/saucy/bugzilla/saucy

« back to all changes in this revision

Viewing changes to template/en/default/admin/users/userdata.html.tmpl

  • Committer: Bazaar Package Importer
  • Author(s): Alexis Sukrieh
  • Date: 2006-11-15 07:54:08 UTC
  • mfrom: (3.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20061115075408-wlbl33r80yh9q3uo
Tags: 2.22.1-2
* Depends on mysql-client as we provide mysql support with dbconfig-common.
  (closes: #398621)
* Urgency set to high to fix the etch RC bug.
* Updated the Bugzilla version (debian minor) in Bugzilla/Config.pm.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[%# 1.0@bugzilla.org %]
 
2
[%# The contents of this file are subject to the Mozilla Public
 
3
  # License Version 1.1 (the "License"); you may not use this file
 
4
  # except in compliance with the License. You may obtain a copy of
 
5
  # the License at http://www.mozilla.org/MPL/
 
6
  #
 
7
  # Software distributed under the License is distributed on an "AS
 
8
  # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 
9
  # implied. See the License for the specific language governing
 
10
  # rights and limitations under the License.
 
11
  #
 
12
  # The Original Code is the Bugzilla Bug Tracking System.
 
13
  #
 
14
  # Contributor(s): Marc Schumann <wurblzap@gmail.com>
 
15
  #%]
 
16
 
 
17
[%# INTERFACE:
 
18
  #
 
19
  # editform:  is this an edit form? (It's a create form otherwise)
 
20
  # editusers: is viewing user member of editusers?
 
21
  # otheruser: Bugzilla::User object of user to edit
 
22
  #%]
 
23
 
 
24
<tr>
 
25
  <th><label for="login">Login name:</label></th>
 
26
  <td>
 
27
    [% IF editusers %]
 
28
      <input size="64" maxlength="255" name="login" 
 
29
             id="login" value="[% otheruser.login FILTER html %]" />
 
30
      [% IF editform %]
 
31
        <input type="hidden" name="loginold"
 
32
               value="[% otheruser.login FILTER html %]" />
 
33
        [% IF !otheruser.groups.bz_sudo_protect %]
 
34
          <br />
 
35
          <a href="relogin.cgi?action=prepare-sudo&amp;target_login=
 
36
          [%- otheruser.login FILTER html %]">Impersonate this user</a>
 
37
        [% END %]
 
38
      [% END %]
 
39
    [% ELSE %]
 
40
      [% otheruser.login FILTER html %]
 
41
    [% END %]
 
42
  </td>
 
43
</tr>
 
44
<tr>
 
45
  <th><label for="name">Real name:</label></th>
 
46
  <td>
 
47
    [% IF editusers %]
 
48
      <input size="64" maxlength="255" name="name"
 
49
             autocomplete="off"
 
50
             id="name" value="[% otheruser.name FILTER html %]" />
 
51
      [% IF editform %]
 
52
        <input type="hidden" name="nameold"
 
53
               value="[% otheruser.name FILTER html %]" />
 
54
      [% END %]
 
55
    [% ELSE %]
 
56
      [% otheruser.name FILTER html %]
 
57
    [% END %]
 
58
  </td>
 
59
</tr>
 
60
[% IF editusers %]
 
61
  <tr>
 
62
    <th><label for="password">Password:</label></th>
 
63
    <td>
 
64
      <input type="password" size="16" maxlength="16" name="password"
 
65
             autocomplete="off"
 
66
             id="password" value="" />
 
67
      [% IF editform %]<br />
 
68
        (Enter new password to change.)
 
69
      [% END %]
 
70
    </td>
 
71
  </tr>
 
72
  <tr>
 
73
    <th><label for="disabledtext">Disable text:</label></th>
 
74
    <td>
 
75
      <textarea name="disabledtext" rows="10"
 
76
                id="disabledtext"
 
77
                cols="60">[% otheruser.disabledtext FILTER html %]</textarea><br />
 
78
      (If non-empty, then the account will be disabled, and this text should
 
79
      explain why.)
 
80
      [% IF editform %]
 
81
        <input type="hidden" name="disabledtextold"
 
82
               value="[% otheruser.disabledtext FILTER html %]" />
 
83
      [% END %]
 
84
    </td>
 
85
  </tr>
 
86
[% END %]