1 <& elements/browse.html,
2 'title' => 'Alarm system types',
3 'html_init' => $html_init,
4 'name_singular' => 'type',
6 'disabled_statuspos' => 1,
8 'agent_null_right' => 'Alarm global configuration',
10 'query' => { 'table' => 'alarm_type',
12 'order_by' => 'ORDER BY inputs, outputs',
14 'count_query' => $count_query,
22 unless $FS::CurrentUser::CurrentUser->access_right('Alarm configuration')
23 || $FS::CurrentUser::CurrentUser->access_right('Alarm global configuration');
26 qq!<A HREF="${p}edit/alarm_type.html"><I>Add an alarm system type</I></A><BR><BR>!;
28 my $count_query = 'SELECT COUNT(*) FROM alarm_type';
30 my $link = [ $p.'edit/alarm_type.html?', 'alarmtypenum' ];
32 my $header = [ 'Type' ];
33 my $fields = [ 'typename' ];
34 my $links = [ $link ];