summaryrefslogtreecommitdiff
path: root/rt/share/html/Elements/EditCustomFieldTimeValue
diff options
context:
space:
mode:
Diffstat (limited to 'rt/share/html/Elements/EditCustomFieldTimeValue')
-rw-r--r--rt/share/html/Elements/EditCustomFieldTimeValue16
1 files changed, 16 insertions, 0 deletions
diff --git a/rt/share/html/Elements/EditCustomFieldTimeValue b/rt/share/html/Elements/EditCustomFieldTimeValue
new file mode 100644
index 000000000..064554594
--- /dev/null
+++ b/rt/share/html/Elements/EditCustomFieldTimeValue
@@ -0,0 +1,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>