summaryrefslogtreecommitdiff
path: root/httemplate/edit/alarm_station.html
blob: 0d088dfdc0d15c663e2e38bef674edb8db081d20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<& elements/edit.html,
     'table'            => 'alarm_station',
     'name_singular'    => 'central station',
     'agent_virt'       => 1,
     'agent_null_right' => 'Alarm global configuration',
     'fields'           => [
       { field=>'stationname',  type=>'text',     size=>20 },
       { field=>'disabled',     type=>'checkbox', value=>'Y' },
     ],
     'labels'           => { 'alarmstationnum' => 'Central Station',
                             'agentnum'        => 'Agent',
                             'stationname'     => 'Central Station',
                             '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>