X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fhtml%2FAdmin%2FElements%2FEditCustomFields;h=81c984d29aa4f51462a49c998b626cba7436b28b;hp=a86b051d0a796d1c94baf1e386f19e8d6fa2ecf4;hb=289340780927b5bac2c7604d7317c3063c6dd8cc;hpb=945721f48f74d5cfffef7c7cf3a3d6bc2521f5dd diff --git a/rt/html/Admin/Elements/EditCustomFields b/rt/html/Admin/Elements/EditCustomFields index a86b051d0..81c984d29 100644 --- a/rt/html/Admin/Elements/EditCustomFields +++ b/rt/html/Admin/Elements/EditCustomFields @@ -26,44 +26,43 @@
-<%$caption%>:
+

<%$caption%>

% if ($CustomFields->Count == 0 ) {

<&|/l&>(No custom fields)

% } else { - - - - - +
-
    -% while (my $CustomFieldObj = $CustomFields->Next) { -
  • <%$CustomFieldObj->Name%> (<% $CustomFieldObj->FriendlyType %>)
    -<%$CustomFieldObj->Description%> -
  • -% } -
-
% my $count; % while (my $CustomFieldObj = $CustomFields->Next) { + + + % # show 'move up' unless it's the first item % if ($count++) { - -% } - +% } +
+% if ($CustomFieldObj->Name) { + <%$CustomFieldObj->Name%>
+% } else { + (<%loc("no name")%>)
+% } + <%$CustomFieldObj->Description%> +
+ <% $CustomFieldObj->FriendlyType %> +
-<&|/l&>Move up + + <&|/l&>Move up % } else { - + % } % # show 'move down' unless it's the last item % if (!$CustomFields->IsLast) { % $m->print(' | ') if $count > 1; -<&|/l&>Move down + <&|/l&>Move down % } -
% }