diff options
author | mkanat%bugzilla.org <> | 2006-07-18 04:57:35 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-07-18 04:57:35 +0200 |
commit | 47a9a892e8fe70863846c00a5858fceffc79b3d0 (patch) | |
tree | 1dc6d98a8f8090261ef43ae0ad5f919c490196e6 /template/en/default/bug/field.html.tmpl | |
parent | 643f05bd8c129b1a40b31665f8209d6935d8b961 (diff) | |
download | bugzilla-47a9a892e8fe70863846c00a5858fceffc79b3d0.tar.gz bugzilla-47a9a892e8fe70863846c00a5858fceffc79b3d0.tar.xz |
Bug 344513: Make plain-text custom fields functional on all pages except enter_bug.cgi
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
Diffstat (limited to 'template/en/default/bug/field.html.tmpl')
-rw-r--r-- | template/en/default/bug/field.html.tmpl | 39 |
1 files changed, 26 insertions, 13 deletions
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 <myk@mozilla.org> + # Max Kanat-Alexander <mkanat@bugzilla.org> #%] -<tr> +[%# 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 + # <input> or as just the plain text of its value. + #%] + +<th class="field_label"> + [% IF editable %] + <label for="[% field.name FILTER html %]"> + [% END %] + [% field_descs.${field.name} FILTER html %]: + [% '</label>' IF editable %] +</th> + +<td class="field_value"> +[% IF editable %] [% 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> + [% CASE constants.FIELD_TYPE_FREETEXT %] + <input name="[% field.name FILTER html %]" + value="[% value FILTER html %]" + size="60"> [% END %] -</tr> +[% ELSE %] + [% value FILTER html %] +[% END %] +</td> |