svc_conferencing, RT#24389
[freeside.git] / httemplate / elements / tr-duration.html
diff --git a/httemplate/elements/tr-duration.html b/httemplate/elements/tr-duration.html
new file mode 100644 (file)
index 0000000..2517302
--- /dev/null
@@ -0,0 +1,30 @@
+<%doc>
+
+Example:
+
+  <& /elements/tr-duration.html,
+       'label' => 'Do or do not',
+       'field' => 'field_name',
+       'value' => 'Y',
+  &>
+
+</%doc>
+<% include('tr-td-label.html', @_ ) %>
+
+  <TD <% $style %>>
+    <% include('duration.html', @_) %>
+  </TD>
+
+</TR>
+
+<%init>
+
+my %opt = @_;
+
+my $onchange = $opt{'onchange'}
+                 ? 'onChange="'. $opt{'onchange'}. '(this)"'
+                 : '';
+
+my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
+
+</%init>