From 9f18c2a6cf47e328fec681432633fafae46d0be1 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 20 Mar 2014 19:55:57 +0000 Subject: 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 --- template/en/default/bug/create/create.html.tmpl | 9 +++++++ template/en/default/bug/field.html.tmpl | 33 +++++++++++++------------ 2 files changed, 26 insertions(+), 16 deletions(-) (limited to 'template') 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'); [% END %] + + + [% INCLUDE bug/field.html.tmpl + bug = default + field = bug_fields.see_also + editable = 1 + value = see_also + %] + 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); [% CASE constants.FIELD_TYPE_BUG_URLS %] - [% '' IF value.size %] - [% IF Param('use_see_also') %] (add)
-
+ class="text_input" name="[% field.name FILTER html %]" + [% IF !bug.id %]value="[% value FILTER html %]"[% END %]>
- + + [% END %] [% END %] [% CASE constants.FIELD_TYPE_KEYWORDS %]
-- cgit v1.2.3-24-g4f1b