summaryrefslogtreecommitdiffstats
path: root/template/en/default/account/prefs/email.html.tmpl
blob: 8bbb62dfc2b72b83fb417d382f14e322e4a9ab7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<!-- 1.0@bugzilla.org -->
[%# The contents of this file are subject to the Mozilla Public
  # License Version 1.1 (the "License"); you may not use this file
  # except in compliance with the License. You may obtain a copy of
  # the License at http://www.mozilla.org/MPL/
  #
  # Software distributed under the License is distributed on an "AS
  # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  # implied. See the License for the specific language governing
  # rights and limitations under the License.
  #
  # The Original Code is the Bugzilla Bug Tracking System.
  #
  # The Initial Developer of the Original Code is Netscape Communications
  # Corporation. Portions created by Netscape are
  # Copyright (C) 1998 Netscape Communications Corporation. All
  # Rights Reserved.
  #
  # Contributor(s): Gervase Markham <gerv@gerv.net>
  #                 Myk Melez <myk@mozilla.org>
  #%]

[%# INTERFACE:
  # watchedusers: string. 
  #               Comma-separated list of email addresses this user watches.
  # excludeself:  boolean.
  #               True if user is not receiving self-generated mail.
  # <rolename>:   Multiple hashes, one for each rolename (e.g. owner; see 
  #               below), keyed by reasonname (e.g. comments; again, see 
  #               below). The value is a boolean - true if the user is 
  #               receiving mail for that reason when in that role.
  # Also references the 'supportwatchers' Param.
  #%]

[% useqacontact = Param('useqacontact') %]
 
<table>
  [% IF Param('supportwatchers') %]
    <tr>
      <td colspan="4">
        <hr>
      </td>
    </tr>

    <tr>
      <td colspan="4">
        If you want to help cover for someone when they're on vacation, or if
        you need to do the QA related to all of their bugs, you can tell 
        Bugzilla to send mail related to their bugs to you also.  List the 
        email addresses of any users you wish to watch here, separated by
        commas.
      </td>
    </tr>

    <tr>
      <th align="right">Users to watch:</th>
      <td>
        <input size="35" name="watchedusers" value="[% watchedusers %]">
      </td>
    </tr>
  [% END %]

  <tr>
    <td colspan="2">
      <p>
        If you don't like getting a notification for "trivial"
        changes to bugs, you can use the settings below to
        filter some (or even all) notifications.
      </p>
    </td>
  </tr>
</table>

<hr>

<table>
  <tr>
    <td colspan="2">
      <b>Global options:</b>
    </td>
  </tr>

  <tr>
    <td width="150"></td>
    <td>
      <input type="checkbox" name="ExcludeSelf" id="ExcludeSelf" value="on"
        [% " checked" IF excludeself %]>
      <label for="ExcludeSelf">Only email me reports of changes made by other people</label>
      <br>
    </td>
  </tr>
  <tr>
    <td width="150"></td>
    <td>
      <input type="checkbox" name="FlagRequestee" id="FlagRequestee" value="on"
        [% " checked" IF FlagRequestee %]>
      <label for="FlagRequestee">Email me when someone asks me to set a flag</label>
      <br>
    </td>
  </tr>
  <tr>
    <td width="150"></td>
    <td>
      <input type="checkbox" name="FlagRequester" id="FlagRequester" value="on"
        [% " checked" IF FlagRequester %]>
      <label for="FlagRequester">Email me when someone sets a flag I asked for</label>
      <br>
    </td>
  </tr>
</table>
<noscript>If you had Javascript active, you could toggle all of these with one click.<br></noscript>
<script type="text/javascript">
<!--
function SetCheckboxes(setting) {
  for (var count = 0; count < document.userprefsform.elements.length; count++) {
    var theinput = document.userprefsform.elements[count];
    if (theinput.type == "checkbox") {
      if (theinput.name == "ExcludeSelf") {
        theinput.checked = false;
      }
      else {
        theinput.checked = setting;
      }
    }
  }
}

document.write('<input type="button" value="Enable All Mail" onclick="SetCheckboxes(true); return false;">\n');
document.write('<input type="button" value="Disable All Mail" onclick="SetCheckboxes(false); return false;">\n');
// -->
</script>
<hr>
<b>Field/recipient specific options:</b>
<br>
<br>


<table width="100%" border="1">
  <tr>
    <td colspan="[% useqacontact ? '5' : '4' %]" align="center" width="50%">
      <b>When my relationship to this bug is:</b>
    </td>
    <td rowspan="2" width="50%">
      <b>I want to receive mail when:</b>
    </td>
  </tr>

  <tr>
    <td align="center" width="10%">
      <b>Reporter</b>
    </td>
    <td align="center" width="10%">
      <b>Assignee</b>
    </td>
    [% IF useqacontact %]
      <td align="center" width="10%">
        <b>QA Contact</b>
      </td>
    [% END %]
    <td align="center" width="10%">
      <b>CC</b>
    </td>
    <td align="center" width="10%">
      <b>Voter</b>
    </td>
  </tr>

  [% FOREACH reason = [ 
      { name = 'Removeme',    
        description = 'I\'m added to or removed from this capacity' },
      { name = 'Comments',    
        description = 'New Comments are added' },
      { name = 'Attachments', 
        description = 'New Attachments are added' },
      { name = 'Status',      
        description = 'Priority, status, severity, and/or milestone changes' },
      { name = 'Resolved',    
        description = 'The bug is resolved or verified' },
      { name = 'Keywords',    
        description = 'Keywords field changes' },
      { name = 'CC',          
        description = 'CC field changes' },
      { name = 'Other',       
        description = 'Any field not mentioned above changes' },
      { name = 'Unconfirmed',       
        description = 'The bug is in the unconfirmed state' },
  ] %]
    <tr>
      [% FOREACH role = [ "Reporter", "Owner", "QAcontact", "CClist", "Voter" ] 
       %]
        [% NEXT IF role == "QAcontact" AND NOT useqacontact %]
        <td align="center">
          <input type="checkbox" name="email[% role %][% reason.name %]" value="on"
            [% " checked" IF $role.${reason.name} %]>
        </td>
      [% END %]
      <td>
        [% reason.description %]
      </td>
    </tr>
  [% END %]
</table>       

<br>