summaryrefslogtreecommitdiff
path: root/rt/share/html/Elements/EditCustomFieldTimeValue
blob: 06455459447bc497ccf82acb61cf5a81b437cdf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
% my $name = $NamePrefix . $CustomField->Id . '-Value';
% if ($Multiple) {
%   $RT::Logger->error("TimeValue Multiple custom field not supported");
%   return;
% }
<& /Elements/EditTimeValue,
    Name    => $name,
    Default => $Default,
    InUnits => $ARGS{"$name-TimeUnits"} || 'minutes',
&>
<%ARGS>
$CustomField => undef
$NamePrefix => undef
$Default => undef
$Multiple => undef
</%ARGS>