%# BEGIN LICENSE BLOCK
%# 
%#  Copyright (c) 2002-2003 Jesse Vincent <jesse@bestpractical.com>
%#  
%#  This program is free software; you can redistribute it and/or modify
%#  it under the terms of version 2 of the GNU General Public License 
%#  as published by the Free Software Foundation.
%# 
%#  A copy of that license should have arrived with this
%#  software, but in any event can be snarfed from www.gnu.org.
%# 
%#  This program is distributed in the hope that it will be useful,
%#  but WITHOUT ANY WARRANTY; without even the implied warranty of
%#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%#  GNU General Public License for more details.
%# 
%# END LICENSE BLOCK

<table>
% while (my $CustomField = $CustomFields->Next) {
% my $Content = $CFContent->{$CustomField->Id};
<tr>
<td valign="top" align="right">
<B><%$CustomField->Name%></b><br>
<small><i>(<%$CustomField->Type%>)</i></small>
</td>
<td valign="top">
<& EditCustomField, CustomFieldObj => $CustomField, 
                    ClassObj => $ClassObj,
                    ArticleObj => $ArticleObj, 
                    Content => $Content,
                    id => $id,
                    %ARGS
                     &>
</TD>
</TR>
% }
</TABLE>
<%INIT>
my $CustomFields;
if ($ArticleObj->ClassObj->id) {
    $CustomFields = $ArticleObj->ClassObj->CustomFields();
}
else {
    $CustomFields = $ClassObj->CustomFields();
}
</%INIT>
<%ARGS>
$ArticleObj => undef
$ClassObj => undef
$CFContent => undef
$id => undef
</%ARGS>
