summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2014-03-20 20:55:57 +0100
committerDavid Lawrence <dkl@mozilla.com>2014-03-20 20:55:57 +0100
commit9f18c2a6cf47e328fec681432633fafae46d0be1 (patch)
tree0bc6bac8aec4c772945e66deeceed23e794b75e0 /template/en/default
parentca7b39aa66be9b4deea1ead8e6a788025759b80d (diff)
downloadbugzilla-9f18c2a6cf47e328fec681432633fafae46d0be1.tar.gz
bugzilla-9f18c2a6cf47e328fec681432633fafae46d0be1.tar.xz
Bug 513212 - Allow people to set "See Also" when filing/creating/entering a bug on enter_bug.cgi or the Bug.create webservice
r/a=glob
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/bug/create/create.html.tmpl9
-rw-r--r--template/en/default/bug/field.html.tmpl33
2 files changed, 26 insertions, 16 deletions
diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl
index 05f139646..d3f56d00c 100644
--- a/template/en/default/bug/create/create.html.tmpl
+++ b/template/en/default/bug/create/create.html.tmpl
@@ -625,6 +625,15 @@ TUI_hide_default('attachment_text_field');
</td>
</tr>
[% END %]
+
+ <tr>
+ [% INCLUDE bug/field.html.tmpl
+ bug = default
+ field = bug_fields.see_also
+ editable = 1
+ value = see_also
+ %]
+ </tr>
</tbody>
<tbody class="expert_fields">
diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl
index f8612eebb..b3b92e198 100644
--- a/template/en/default/bug/field.html.tmpl
+++ b/template/en/default/bug/field.html.tmpl
@@ -167,32 +167,33 @@
true);
</script>
[% CASE constants.FIELD_TYPE_BUG_URLS %]
- [% '<ul class="bug_urls">' IF value.size %]
- [% FOREACH bug_url = value %]
- <li>
- [% PROCESS bug_url_link bug_url = bug_url %]
- <label><input type="checkbox" value="[% bug_url.name FILTER html %]"
- name="remove_[% field.name FILTER html %]">
- Remove</label>
- </li>
+ [% IF bug.id && value.size %]
+ <ul class="bug_urls">
+ [% FOREACH bug_url = value %]
+ <li>
+ [% PROCESS bug_url_link bug_url = bug_url %]
+ <label><input type="checkbox" value="[% bug_url.name FILTER html %]"
+ name="remove_[% field.name FILTER html %]">
+ Remove</label>
+ </li>
+ [% END %]
+ </ul>
[% END %]
- [% '</ul>' IF value.size %]
-
[% IF Param('use_see_also') %]
<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 %]">
+ class="text_input" name="[% field.name FILTER html %]"
+ [% IF !bug.id %]value="[% value FILTER html %]"[% END %]>
</div>
- <script type="text/javascript">
+ [% IF bug.id %]
+ <script type="text/javascript">
setupEditLink('[% field.name FILTER js %]');
- </script>
+ </script>
+ [% END %]
[% END %]
[% CASE constants.FIELD_TYPE_KEYWORDS %]
<div id="[% field.name FILTER html %]_container">