Commit 7a9af9ad authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 779600: Hide flag types you cannot request nor set instead of leaving them as disabled

r=dkl a=LpSolit
parent 52e47412
...@@ -91,6 +91,7 @@ ...@@ -91,6 +91,7 @@
[%# Display a table row for flags %] [%# Display a table row for flags %]
[% BLOCK flag_row %] [% BLOCK flag_row %]
[% RETURN IF !flag && !((type.is_requestable && user.can_request_flag(type)) || user.can_set_flag(type)) %]
[% SET fid = flag ? "flag-$flag.id" : "flag_type-$type.id" %] [% SET fid = flag ? "flag-$flag.id" : "flag_type-$type.id" %]
<tbody[% ' class="bz_flag_type"' IF !flag %]> <tbody[% ' class="bz_flag_type"' IF !flag %]>
<tr> <tr>
...@@ -107,9 +108,6 @@ ...@@ -107,9 +108,6 @@
</td> </td>
<td> <td>
<select id="[% fid FILTER html %]" name="[% fid FILTER html %]" <select id="[% fid FILTER html %]" name="[% fid FILTER html %]"
[% IF !flag && !((type.is_requestable && user.can_request_flag(type)) || user.can_set_flag(type)) %]
disabled="disabled"
[% END %]
title="[% type.description FILTER html %]" title="[% type.description FILTER html %]"
onchange="toggleRequesteeField(this);" onchange="toggleRequesteeField(this);"
class="flag_select flag_type-[% type.id %]"> class="flag_select flag_type-[% type.id %]">
......
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