From 81e426fe755eaea508041bc2d7b25ac44c777434 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 25 Sep 2009 10:14:30 +0000 Subject: nomadix, RT#5876 --- httemplate/elements/select-part_svc.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 httemplate/elements/select-part_svc.html (limited to 'httemplate/elements/select-part_svc.html') diff --git a/httemplate/elements/select-part_svc.html b/httemplate/elements/select-part_svc.html new file mode 100644 index 000000000..72ab7f6b0 --- /dev/null +++ b/httemplate/elements/select-part_svc.html @@ -0,0 +1,18 @@ +<% include( '/elements/select-table.html', + 'table' => 'part_svc', + 'name_col' => 'svc', + 'label_showkey' => 1, + #N/A 'empty_label' => '(none)', + %opt, + ) +%> +<%init> + +my( %opt ) = @_; + +$opt{'records'} = delete $opt{'part_svc'} + if $opt{'part_svc'}; + +$opt{'records'} ||= [ qsearch( 'part_svc', {} ) ]; # { disabled=>'' } ) + + -- cgit v1.2.1