summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-alarm_system.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-12-09 23:37:22 -0800
committerIvan Kohler <ivan@freeside.biz>2013-12-09 23:37:22 -0800
commit63d22d5cf01cb22b92ef7393388ea175d675b13e (patch)
tree6ac74544e9283847a6b5ce1635b0fe6ce6e2c295 /httemplate/elements/tr-select-alarm_system.html
parent583ec4db4a0c585dab3713e538df17bbaf9a87d2 (diff)
on-the-fly alarm vendor / type / CS adding, RT#23694
Diffstat (limited to 'httemplate/elements/tr-select-alarm_system.html')
-rw-r--r--httemplate/elements/tr-select-alarm_system.html21
1 files changed, 9 insertions, 12 deletions
diff --git a/httemplate/elements/tr-select-alarm_system.html b/httemplate/elements/tr-select-alarm_system.html
index a46a015f2..e1b2ae329 100644
--- a/httemplate/elements/tr-select-alarm_system.html
+++ b/httemplate/elements/tr-select-alarm_system.html
@@ -1,12 +1,9 @@
-% #if ( scalar(@domains) < 2 ) {
-% #} else {
- <TR>
- <TD ALIGN="right"><% $opt{'label'} || 'Vendor' %></TD>
- <TD>
- <% include( '/elements/select-alarm_system.html', %opt) %>
- </TD>
- </TR>
-% #}
-<%init>
- my %opt = @_;
-</%init>
+<& /elements/tr-select-table.html,
+ label => 'Vendor',
+ table => 'alarm_system',
+ #name_col => 'systemname',
+ add_inline => 1,
+ add_fields => [ 'systemname' ],
+ add_right => [ 'Alarm configuration', 'Alarm global configuration' ],
+ @_,
+&>