From da9ac9431cc959eedef78a5118ac3b4c6fbf7d03 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 21 Feb 2006 21:08:18 +0000 Subject: Bug 287325: Ability to add custom plain-text fields to a Bug - Patch by Myk Melez r=mkanat a=justdave --- template/en/default/bug/edit.html.tmpl | 9 +++++++++ template/en/default/bug/field.html.tmpl | 36 +++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 template/en/default/bug/field.html.tmpl (limited to 'template/en/default/bug') diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index c1f00025e..349b05049 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -497,6 +497,15 @@ [% END %] +[%# *** Custom Fields *** %] + +[% USE Bugzilla %] + + [% FOREACH field = Bugzilla.get_fields({ obsolete => 0, custom => 1 }) %] + [% PROCESS bug/field.html.tmpl value=bug.${field.name} %] + [% END %] +
+ [%# *** Attachments *** %] [% PROCESS attachment/list.html.tmpl diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl new file mode 100644 index 000000000..cbde9cf27 --- /dev/null +++ b/template/en/default/bug/field.html.tmpl @@ -0,0 +1,36 @@ +[%# 1.0@bugzilla.org %] +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Myk Melez + #%] + + + [% SWITCH field.type %] + [% CASE constants.FIELD_TYPE_FREETEXT %] + + + + + + + [% END %] + -- cgit v1.2.3-24-g4f1b