aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authormyk%mozilla.org <>2006-01-06 22:22:55 +0000
committermyk%mozilla.org <>2006-01-06 22:22:55 +0000
commit199d6ed76f022232c3799036c75661604a6d70d4 (patch)
tree2def77ae1ab734f5131b22e609b013734f2620fb /template/en/default
parent8a751a1e448b17a66a63b5728ffce0b456bc762b (diff)
downloadbugs-199d6ed76f022232c3799036c75661604a6d70d4.tar
bugs-199d6ed76f022232c3799036c75661604a6d70d4.tar.gz
bugs-199d6ed76f022232c3799036c75661604a6d70d4.tar.bz2
bugs-199d6ed76f022232c3799036c75661604a6d70d4.tar.xz
bugs-199d6ed76f022232c3799036c75661604a6d70d4.zip
Bug 287325: an initial implementation of custom fields, including the ability to add text custom fields via the command-line script customfield.pl, search them via the boolean charts, display and edit them on the show bug page, and see changes to them in bug activity; r=mkanat, glob
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/bug/edit.html.tmpl9
-rw-r--r--template/en/default/bug/field.html.tmpl36
2 files changed, 45 insertions, 0 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index 2252528ac..9768dd3b4 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -497,6 +497,15 @@
</table>
[% END %]
+[%# *** Custom Fields *** %]
+
+[% USE Bugzilla %]
+<table>
+ [% FOREACH field = Bugzilla.get_fields({ obsolete => 0, custom => 1 }) %]
+ [% PROCESS bug/field.html.tmpl value=bug.${field.name} %]
+ [% END %]
+</table>
+
[%# *** 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 <myk@mozilla.org>
+ #%]
+
+<tr>
+ [% SWITCH field.type %]
+ [% CASE constants.FIELD_TYPE_FREETEXT %]
+ <th align="right">
+ <label for="[% field.name FILTER html %]">
+ [% field.description FILTER html %]:
+ </label>
+ </th>
+ <td>
+ <input name="[% field.name FILTER html %]"
+ value="[% value FILTER html %]"
+ size="60">
+ </td>
+ [% END %]
+</tr>