summaryrefslogtreecommitdiff
path: root/httemplate/edit/alarm_type.html
blob: 1ef02f4d2b5a11106f4cb543c7dd35689ec4fe7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<& elements/edit.html,
     'table'            => 'alarm_type',
     'name_singular'    => 'type',
     'agent_virt'       => 1,
     'agent_null_right' => 'Alarm global configuration',
     'fields'           => [
                             { field=>'inputs',   type=>'text',     size=>2 },
                             { field=>'outputs',  type=>'text',     size=>2 },
                             { field=>'disabled', type=>'checkbox', value=>'Y'},
                           ],
     'labels'           => { 'alarmtypenum' => 'Type',
                             'agentnum'     => 'Agent',
                             'inputs'       => 'Inputs',
                             'outputs'      => 'Outputs',
                             'disabled'     => 'Disabled',
                           },
     'viewall_dir'      => 'browse',
&>
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Alarm configuration')
      || $FS::CurrentUser::CurrentUser->access_right('Alarm global configuration');

</%init>