From a9822ceefb563a54420f13b2395b8c1359833778 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sat, 25 Oct 2008 04:14:56 +0000 Subject: Bug 458436: Allow standard global select fields to control visibility of custom fields Patch By Max Kanat-Alexander r=bbaetz, a=mkanat --- template/en/default/bug/field.html.tmpl | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 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 3b26073aa..9b93a9ff2 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -28,6 +28,8 @@ # allow_dont_change: display the --do_not_change-- option for select fields. # value_span: A colspan for the table cell containing # the field value. + # no_tds: boolean; if true, don't display the label or the + # wrapping for the field. # bug (optional): The current Bugzilla::Bug being displayed, or a hash # with default field values being displayed on a page. #%] @@ -41,18 +43,28 @@ [% END %] [% END %] - - [% IF editable %] - ' IF editable %] - +[% IF NOT no_tds %] + + [% IF editable %] + ' IF editable %] + +[% END %] +[% IF NOT no_tds %] +[% END %] [% IF editable %] [% SWITCH field.type %] [% CASE constants.FIELD_TYPE_FREETEXT %] @@ -153,4 +165,4 @@ [% ELSE %] [% value.join(', ') FILTER html %] [% END %] - +[% '' IF NOT no_tds %] -- cgit v1.2.3-24-g4f1b