summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-08-01 23:07:36 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-08-01 23:07:36 +0200
commit7a9af9adf59089bd612b112c29fcb88e054dacd6 (patch)
tree72af0b623b9ad130ea265891d55ff762eaaa1c13 /template/en
parent52e47412c7c56a25d28975a2316730adfbf65351 (diff)
downloadbugzilla-7a9af9adf59089bd612b112c29fcb88e054dacd6.tar.gz
bugzilla-7a9af9adf59089bd612b112c29fcb88e054dacd6.tar.xz
Bug 779600: Hide flag types you cannot request nor set instead of leaving them as disabled
r=dkl a=LpSolit
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/flag/list.html.tmpl4
1 files changed, 1 insertions, 3 deletions
diff --git a/template/en/default/flag/list.html.tmpl b/template/en/default/flag/list.html.tmpl
index 75c10c075..9eb6b4441 100644
--- a/template/en/default/flag/list.html.tmpl
+++ b/template/en/default/flag/list.html.tmpl
@@ -91,6 +91,7 @@
[%# Display a table row for flags %]
[% 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" %]
<tbody[% ' class="bz_flag_type"' IF !flag %]>
<tr>
@@ -107,9 +108,6 @@
</td>
<td>
<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 %]"
onchange="toggleRequesteeField(this);"
class="flag_select flag_type-[% type.id %]">