summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-20 23:26:15 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-20 23:26:15 +0200
commit69be160f92f1d20408c0e390610dffbd619f63cb (patch)
tree8b23fae12430b372a51f11a969cd54037cc1d1be /template/en/default/bug
parent1dc3eb46af07596e64c6c3bb1cbb82cf121ad8b1 (diff)
downloadbugzilla-69be160f92f1d20408c0e390610dffbd619f63cb.tar.gz
bugzilla-69be160f92f1d20408c0e390610dffbd619f63cb.tar.xz
Bug 560003: Hide the "Add Bug URLs" box behind an (add) link.
r=timello, a=mkanat
Diffstat (limited to 'template/en/default/bug')
-rw-r--r--template/en/default/bug/field.html.tmpl19
1 files changed, 14 insertions, 5 deletions
diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl
index 2417ce39b..49cf718cc 100644
--- a/template/en/default/bug/field.html.tmpl
+++ b/template/en/default/bug/field.html.tmpl
@@ -175,11 +175,20 @@
[% '</ul>' IF value.size %]
[% IF 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 %]">
+ <span id="container_showhide_[% field.name FILTER html %]"
+ class="bz_default_hidden">
+ <a href="#" id="showhide_[% field.name FILTER html %]">(add)</a>
+ </span>
+ <div id="container_[% field.name FILTER html %]">
+ <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 %]">
+ </div>
+ <script type="text/javascript">
+ setupEditLink('[% field.name FILTER js %]');
+ </script>
[% END %]
[% CASE constants.FIELD_TYPE_KEYWORDS %]
<div id="keyword_container">