diff options
author | mkanat%bugzilla.org <> | 2008-10-25 06:14:56 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2008-10-25 06:14:56 +0200 |
commit | a9822ceefb563a54420f13b2395b8c1359833778 (patch) | |
tree | b860dd7ab0cf156734d8eddd5d680bab587f4185 /template/en/default/bug/field.html.tmpl | |
parent | 5323ab05caef4b7a5c44fb567b412a3917272f33 (diff) | |
download | bugzilla-a9822ceefb563a54420f13b2395b8c1359833778.tar.gz bugzilla-a9822ceefb563a54420f13b2395b8c1359833778.tar.xz |
Bug 458436: Allow standard global select fields to control visibility of custom fields
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=bbaetz, a=mkanat
Diffstat (limited to 'template/en/default/bug/field.html.tmpl')
-rw-r--r-- | template/en/default/bug/field.html.tmpl | 30 |
1 files changed, 21 insertions, 9 deletions
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 <th> or the + # wrapping <td> 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 %] -<th class="field_label [% ' bz_hidden_field' IF hidden %]" - id="field_label_[% field.name FILTER html %]"> - [% IF editable %] - <label for="[% field.name FILTER html %]"> - [% END %] - [% field_descs.${field.name} FILTER html %]: - [% '</label>' IF editable %] -</th> +[% IF NOT no_tds %] + <th class="field_label [% ' bz_hidden_field' IF hidden %]" + id="field_label_[% field.name FILTER html %]"> + [% IF editable %] + <label for="[% field.name FILTER html %]"> + [% END %] + [% IF !field.custom %] + <a href="page.cgi?id=fields.html#[% field.name FILTER url_quote %]"> + [% END -%] + [% field_descs.${field.name} FILTER html %]: + [%- IF !field.custom %] + </a> + [% END %] + [% '</label>' IF editable %] + </th> +[% END %] +[% IF NOT no_tds %] <td class="field_value [% ' bz_hidden_field' IF hidden %]" id="field_container_[% field.name FILTER html %]" [% " colspan=\"$value_span\"" FILTER none IF value_span %]> +[% END %] [% IF editable %] [% SWITCH field.type %] [% CASE constants.FIELD_TYPE_FREETEXT %] @@ -153,4 +165,4 @@ [% ELSE %] [% value.join(', ') FILTER html %] [% END %] -</td> +[% '</td>' IF NOT no_tds %] |