alarm systems, types, central stations, RT#25994
[freeside.git] / httemplate / edit / alarm_system.html
diff --git a/httemplate/edit/alarm_system.html b/httemplate/edit/alarm_system.html
new file mode 100644 (file)
index 0000000..c9e0076
--- /dev/null
@@ -0,0 +1,23 @@
+<& elements/edit.html,
+     'table'            => 'alarm_system',
+     'name_singular'    => 'vendor',
+     'agent_virt'       => 1,
+     'agent_null_right' => 'Alarm global configuration',
+     'fields'           => [
+       { field=>'systemname',   type=>'text',     size=>20 },
+       { field=>'disabled',     type=>'checkbox', value=>'Y' },
+     ],
+     'labels'        => { 'alarmsystemnum' => 'Vendor',
+                          'agentnum'       => 'Agent',
+                          'systemname'     => 'Vendor',
+                          '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>