Commit b383e71e authored by jocuri%softhome.net's avatar jocuri%softhome.net

Patch for bug 267494 - If param(usevotes) not true, hide 'Voter' column in email…

Patch for bug 267494 - If param(usevotes) not true, hide 'Voter' column in email preferences; patch by Shane H. W. Travis <travis@sedsystems.ca>, r=vladd, a=justdave.
parent 05526608
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
# #
# Contributor(s): Gervase Markham <gerv@gerv.net> # Contributor(s): Gervase Markham <gerv@gerv.net>
# Myk Melez <myk@mozilla.org> # Myk Melez <myk@mozilla.org>
# Shane H. W. Travis <travis@sedsystems.ca>
#%] #%]
[%# INTERFACE: [%# INTERFACE:
...@@ -35,6 +36,7 @@ ...@@ -35,6 +36,7 @@
[% PROCESS global/variables.none.tmpl %] [% PROCESS global/variables.none.tmpl %]
[% useqacontact = Param('useqacontact') %] [% useqacontact = Param('useqacontact') %]
[% usevotes = Param('usevotes') %]
<table> <table>
[% IF Param('supportwatchers') %] [% IF Param('supportwatchers') %]
...@@ -140,7 +142,7 @@ document.write('<input type="button" value="Disable All Mail" onclick="SetCheckb ...@@ -140,7 +142,7 @@ document.write('<input type="button" value="Disable All Mail" onclick="SetCheckb
<table width="100%" border="1"> <table width="100%" border="1">
<tr> <tr>
<td colspan="[% useqacontact ? '5' : '4' %]" align="center" width="50%"> <td colspan="[% (useqacontact AND usevotes) ? '5' : ((useqacontact OR usevotes) ? '4' : '3') %]" align="center" width="50%">
<b>When my relationship to this [% terms.bug %] is:</b> <b>When my relationship to this [% terms.bug %] is:</b>
</td> </td>
<td rowspan="2" width="50%"> <td rowspan="2" width="50%">
...@@ -163,9 +165,11 @@ document.write('<input type="button" value="Disable All Mail" onclick="SetCheckb ...@@ -163,9 +165,11 @@ document.write('<input type="button" value="Disable All Mail" onclick="SetCheckb
<td align="center" width="10%"> <td align="center" width="10%">
<b>CC</b> <b>CC</b>
</td> </td>
<td align="center" width="10%"> [% IF usevotes %]
<b>Voter</b> <td align="center" width="10%">
</td> <b>Voter</b>
</td>
[% END %]
</tr> </tr>
[% bugLabelLower = BLOCK %] [% bugLabelLower = BLOCK %]
...@@ -196,6 +200,7 @@ document.write('<input type="button" value="Disable All Mail" onclick="SetCheckb ...@@ -196,6 +200,7 @@ document.write('<input type="button" value="Disable All Mail" onclick="SetCheckb
[% FOREACH role = [ "Reporter", "Owner", "QAcontact", "CClist", "Voter" ] [% FOREACH role = [ "Reporter", "Owner", "QAcontact", "CClist", "Voter" ]
%] %]
[% NEXT IF role == "QAcontact" AND NOT useqacontact %] [% NEXT IF role == "QAcontact" AND NOT useqacontact %]
[% NEXT IF role == "Voter" AND NOT usevotes %]
<td align="center"> <td align="center">
<input type="checkbox" name="email[% role %][% reason.name %]" value="on" <input type="checkbox" name="email[% role %][% reason.name %]" value="on"
[% " checked" IF $role.${reason.name} %]> [% " checked" IF $role.${reason.name} %]>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment