<& elements/browse.html, 'title' => 'Alarm system types', 'html_init' => $html_init, 'name_singular' => 'type', 'disableable' => 1, 'disabled_statuspos' => 1, 'agent_virt' => 1, 'agent_null_right' => 'Alarm global configuration', 'agent_pos' => 1, 'query' => { 'table' => 'alarm_type', 'hashref' => {}, 'order_by' => 'ORDER BY inputs, outputs', }, 'count_query' => $count_query, 'header' => $header, 'fields' => $fields, 'links' => $links, &> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Alarm configuration') || $FS::CurrentUser::CurrentUser->access_right('Alarm global configuration'); my $html_init = qq!Add an alarm system type

!; my $count_query = 'SELECT COUNT(*) FROM alarm_type'; my $link = [ $p.'edit/alarm_type.html?', 'alarmtypenum' ]; my $header = [ 'Type' ]; my $fields = [ 'typename' ]; my $links = [ $link ];