From 47a9a892e8fe70863846c00a5858fceffc79b3d0 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Tue, 18 Jul 2006 02:57:35 +0000 Subject: Bug 344513: Make plain-text custom fields functional on all pages except enter_bug.cgi Patch By Max Kanat-Alexander r=LpSolit, a=myk --- template/en/default/bug/field.html.tmpl | 39 ++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 13 deletions(-) (limited to 'template/en/default/bug/field.html.tmpl') diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index cbde9cf27..9c45b3e57 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -17,20 +17,33 @@ # Rights Reserved. # # Contributor(s): Myk Melez + # Max Kanat-Alexander #%] - +[%# INTERFACE: + # field: a Bugzilla::Field object + # 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. + #%] + + + [% IF editable %] + ' IF editable %] + + + +[% IF editable %] [% SWITCH field.type %] - [% CASE constants.FIELD_TYPE_FREETEXT %] - - - - - - + [% CASE constants.FIELD_TYPE_FREETEXT %] + [% END %] - +[% ELSE %] + [% value FILTER html %] +[% END %] + -- cgit v1.2.3-24-g4f1b