summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug/field-label.html.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/bug/field-label.html.tmpl')
-rw-r--r--template/en/default/bug/field-label.html.tmpl9
1 files changed, 5 insertions, 4 deletions
diff --git a/template/en/default/bug/field-label.html.tmpl b/template/en/default/bug/field-label.html.tmpl
index 7b63f7b8c..3f9187c89 100644
--- a/template/en/default/bug/field-label.html.tmpl
+++ b/template/en/default/bug/field-label.html.tmpl
@@ -23,14 +23,15 @@
# desc_url: An alternate link to help for the field.
# hidden: True if the field label should start hidden.
# rowspan: a "rowspan" value for the label's <th>.
+ # tag_name: the tag to use to surround the label
#%]
[% PROCESS "bug/field-help.none.tmpl" %]
-
-<th class="field_label [% ' bz_hidden_field' IF hidden %]
+[% DEFAULT tag_name = "th" %]
+<[% tag_name %] class="field_label [% ' bz_hidden_field' IF hidden %]
[%- ' required' IF field.is_mandatory %]"
id="field_label_[% field.name FILTER html %]"
- [% IF rowspan %] rowspan="[% rowspan FILTER html %]"[% END %]>
+ [% IF rowspan > 0 %] rowspan="[% rowspan FILTER html %]"[% END %]>
[% IF editable %]
<label for="[% field.name FILTER html %]">
@@ -49,4 +50,4 @@
>[%- field_descs.${field.name} FILTER html %]:</a>
[% '</label>' IF editable %]
-</th>
+</[% tag_name %]>