From f27aaa287562fb880934565d6a091ab1674bfab4 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Wed, 19 Jul 2006 04:10:31 +0000 Subject: Bug 344521: Make custom fields optionally functional on enter_bug.cgi Patch By Max Kanat-Alexander r=LpSolit, a=myk --- template/en/default/bug/create/create.html.tmpl | 9 +++++++++ template/en/default/bug/field.html.tmpl | 3 +++ 2 files changed, 12 insertions(+) (limited to 'template/en/default') diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index 1749813e3..8b2bcb997 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -313,6 +313,15 @@ function handleWantsAttachment(wants_attachment) { + [% USE Bugzilla %] + [% FOREACH field = Bugzilla.get_fields({ obsolete => 0, custom => 1, + enter_bug => 1 }) %] + [% SET value = ${field.name} IF ${field.name}.defined %] + + [% PROCESS bug/field.html.tmpl editable=1 value_span=3 %] + + [% END %] + Summary: diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index 9c45b3e57..ece2f64bf 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -25,6 +25,8 @@ # value: The value of the field for this bug. # editable: Whether the field should be displayed as an editable # or as just the plain text of its value. + # value_span: A colspan for the table cell containing + # the field value. #%] @@ -41,6 +43,7 @@ [% CASE constants.FIELD_TYPE_FREETEXT %] [% END %] [% ELSE %] -- cgit v1.2.3-24-g4f1b