-% #if ( scalar(@domains) < 2 ) {
-% #} else {
- <TR>
- <TD ALIGN="right"><% $opt{'label'} || 'Type' %></TD>
- <TD>
- <% include( '/elements/select-alarm_type.html', %opt) %>
- </TD>
- </TR>
-% #}
-<%init>
- my %opt = @_;
-</%init>
+<& /elements/tr-select-table.html,
+ label => 'Type',
+ table => 'alarm_type',
+ #name_col =>
+ add_inline => 1,
+ add_fields => [ 'inputs', 'outputs' ],
+ add_right => [ 'Alarm configuration', 'Alarm global configuration' ],
+ @_,
+&>