diff options
author | mkanat%kerio.com <> | 2005-02-17 03:05:05 +0100 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-02-17 03:05:05 +0100 |
commit | fc3aa3e7aa78106e8148b3ecbd92e65e5ad63985 (patch) | |
tree | 8d2496e53e9ac2ab4db8b013ec9b9bd75b252a5a /template/en/default/admin/table.html.tmpl | |
parent | e8e8e8394944fb0d2e0f285b4f4104c27db1771a (diff) | |
download | bugzilla-fc3aa3e7aa78106e8148b3ecbd92e65e5ad63985.tar.gz bugzilla-fc3aa3e7aa78106e8148b3ecbd92e65e5ad63985.tar.xz |
Bug 280412: Templatize the 'list products' bit of editproducts
Patch By Gavin Shelly <bugzilla@chimpychompy.org> r=wurblzap, a=myk
Diffstat (limited to 'template/en/default/admin/table.html.tmpl')
-rw-r--r-- | template/en/default/admin/table.html.tmpl | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/template/en/default/admin/table.html.tmpl b/template/en/default/admin/table.html.tmpl index ac4e5a666..fd1382b14 100644 --- a/template/en/default/admin/table.html.tmpl +++ b/template/en/default/admin/table.html.tmpl @@ -37,6 +37,7 @@ # text in the column. # allow_html_content: if defined, then this column allows html content # so it will not be filtered + # yesno_field: Turn the data from 0/!0 into Yes/No # # data: # array of hashes representing the data for the table. @@ -79,10 +80,18 @@ [% IF c.content %] [% c.content %] [% ELSE %] - [% IF c.allow_html_content %] - [% row.${c.name} FILTER none %] + [% IF c.yesno_field %] + [% IF row.${c.name} %] + Yes + [% ELSE %] + No + [% END %] [% ELSE %] - [% row.${c.name} FILTER html %] + [% IF c.allow_html_content %] + [% row.${c.name} FILTER none %] + [% ELSE %] + [% row.${c.name} FILTER html %] + [% END %] [% END %] [% END %] |