diff options
Diffstat (limited to 'httemplate/elements/tr-select-alarm_station.html')
-rw-r--r-- | httemplate/elements/tr-select-alarm_station.html | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/httemplate/elements/tr-select-alarm_station.html b/httemplate/elements/tr-select-alarm_station.html index 71ed0db0c..919282264 100644 --- a/httemplate/elements/tr-select-alarm_station.html +++ b/httemplate/elements/tr-select-alarm_station.html @@ -1,12 +1,9 @@ -% #if ( scalar(@domains) < 2 ) { -% #} else { - <TR> - <TD ALIGN="right"><% $opt{'label'} || 'Central Station' %></TD> - <TD> - <% include( '/elements/select-alarm_station.html', %opt) %> - </TD> - </TR> -% #} -<%init> - my %opt = @_; -</%init> +<& /elements/tr-select-table.html, + label => 'Central Station', + table => 'alarm_station', + #name_col => 'stationname', + add_inline => 1, + add_fields => [ 'stationname' ], + add_right => [ 'Alarm configuration', 'Alarm global configuration' ], + @_, +&> |