diff options
author | mkanat%kerio.com <> | 2005-02-25 07:48:05 +0100 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-02-25 07:48:05 +0100 |
commit | b8a8680e9d5ed7de541ab9f4e0275fa79a9a6d30 (patch) | |
tree | 3a169ef8d68f2a6b0f86bc731d00b1b06a4c8d53 /template/en/default/admin/table.html.tmpl | |
parent | e92cc4c9b115dfae6e352660c053e142634a3ef4 (diff) | |
download | bugzilla-b8a8680e9d5ed7de541ab9f4e0275fa79a9a6d30.tar.gz bugzilla-b8a8680e9d5ed7de541ab9f4e0275fa79a9a6d30.tar.xz |
Bug 281876: New Admin Interface to manage old Enum fields (Field Values)
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=joel, a=justdave
Diffstat (limited to 'template/en/default/admin/table.html.tmpl')
-rw-r--r-- | template/en/default/admin/table.html.tmpl | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/template/en/default/admin/table.html.tmpl b/template/en/default/admin/table.html.tmpl index fd1382b14..4254f80e1 100644 --- a/template/en/default/admin/table.html.tmpl +++ b/template/en/default/admin/table.html.tmpl @@ -33,6 +33,12 @@ # content: If specified, the content of this variable is used # instead of the data pulled from the current row. # NOTE: This value is not HTML filtered at output! + # content_use_field: If defined and true, then each value in the + # column corresponds with a key in the + # field_descs field, and that value from the + # field_descs hash will be used instead of "content." + # See fieldvalues/select-field for an example of use. + # This content WILL be HTML-filtered in this case. # align: left/center/right. Controls the horizontal alignment of the # text in the column. # allow_html_content: if defined, then this column allows html content @@ -46,6 +52,8 @@ # #%] +[% PROCESS "global/field-descs.none.tmpl" %] + [%################### TABLE HEADER ######################%] <table border="1" cellpadding="4" cellspacing="0"> @@ -77,8 +85,11 @@ <a href="[% link_uri %]"> [% END %] - [% IF c.content %] - [% c.content %] + [% IF c.content_use_field %] + [% colname = row.${c.name} %] + [% field_descs.${colname} FILTER html %] + [% ELSIF c.content %] + [% c.content %] [% ELSE %] [% IF c.yesno_field %] [% IF row.${c.name} %] |