diff options
author | mkanat%bugzilla.org <> | 2009-04-18 00:27:38 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-04-18 00:27:38 +0200 |
commit | 14b373c1b2a5182ed9ffa3a1bc8d8bf104311a12 (patch) | |
tree | 9b6002f391a0bba98262272367ddd567793d1576 /template/en/default/bug/field.html.tmpl | |
parent | 27d919b36377e25b74a5c46e8c5eec218c58be39 (diff) | |
download | bugzilla-14b373c1b2a5182ed9ffa3a1bc8d8bf104311a12.tar.gz bugzilla-14b373c1b2a5182ed9ffa3a1bc8d8bf104311a12.tar.xz |
Bug 482584: Add a parameter to hide the "See Also" field
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, r=dkl, a=LpSolit
Diffstat (limited to 'template/en/default/bug/field.html.tmpl')
-rw-r--r-- | template/en/default/bug/field.html.tmpl | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index bdfdd099e..7a514e888 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -174,18 +174,22 @@ [% FOREACH url = value %] <li> <a href="[% url FILTER html %]">[% url FILTER html %]</a> - <label><input type="checkbox" value="[% url FILTER html %]" - name="remove_[% field.name FILTER html %]"> - Remove</label> + [% IF editable %] + <label><input type="checkbox" value="[% url FILTER html %]" + name="remove_[% field.name FILTER html %]"> + Remove</label> + [% END %] </li> [% END %] [% '</ul>' IF value.size %] - <label for="[% field.name FILTER html %]"> - <strong>Add [% terms.Bug %] URLs:</strong> - </label><br> - <input type="text" id="[% field.name FILTER html %]" - class="text_input" name="[% field.name FILTER html %]" size="40"> + [% IF editable && Param('use_see_also') %] + <label for="[% field.name FILTER html %]"> + <strong>Add [% terms.Bug %] URLs:</strong> + </label><br> + <input type="text" id="[% field.name FILTER html %]" size="40" + class="text_input" name="[% field.name FILTER html %]"> + [% END %] [% END %] [% ELSIF field.type == constants.FIELD_TYPE_TEXTAREA %] <div class="uneditable_textarea">[% value FILTER wrap_comment(60) |