X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-alarm_station.html;h=9192822645c6b518241592cd23082e05db2f62ac;hb=88e9a56677d343392416c262f976f069157b06cb;hp=71ed0db0cf8ca311b7ce0cff065fc14c9a8a627e;hpb=8baa8e46e67f00f297d7e10dad02c131d286f40e;p=freeside.git 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 { - - <% $opt{'label'} || 'Central Station' %> - - <% include( '/elements/select-alarm_station.html', %opt) %> - - -% #} -<%init> - my %opt = @_; - +<& /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' ], + @_, +&>