[freeside-commits] freeside/rt/share/html/Elements EditCustomFieldTimeValue, NONE, 1.1 ShowCustomFieldTimeValue, NONE, 1.1
Mark Wells
mark at wavetail.420.am
Wed Feb 16 19:47:52 PST 2011
Update of /home/cvs/cvsroot/freeside/rt/share/html/Elements
In directory wavetail.420.am:/tmp/cvs-serv21777/share/html/Elements
Added Files:
EditCustomFieldTimeValue ShowCustomFieldTimeValue
Log Message:
TimeWorked-like custom fields, RT#11168
--- NEW FILE: EditCustomFieldTimeValue ---
% 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>
--- NEW FILE: ShowCustomFieldTimeValue ---
<%$Object->Content|n%> min
<%ARGS>
$Object
</%ARGS>
More information about the freeside-commits
mailing list