From a3bc8ae55eb80d4517c64eaeb4b08df3ddf867f6 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 9 Dec 2013 14:43:35 -0800 Subject: alarm systems, types, central stations, RT#25994 --- httemplate/edit/alarm_station.html | 23 +++++++++++++++++++++++ httemplate/edit/alarm_system.html | 23 +++++++++++++++++++++++ httemplate/edit/alarm_type.html | 25 +++++++++++++++++++++++++ httemplate/edit/process/alarm_station.html | 11 +++++++++++ httemplate/edit/process/alarm_system.html | 11 +++++++++++ httemplate/edit/process/alarm_type.html | 11 +++++++++++ 6 files changed, 104 insertions(+) create mode 100644 httemplate/edit/alarm_station.html create mode 100644 httemplate/edit/alarm_system.html create mode 100644 httemplate/edit/alarm_type.html create mode 100644 httemplate/edit/process/alarm_station.html create mode 100644 httemplate/edit/process/alarm_system.html create mode 100644 httemplate/edit/process/alarm_type.html (limited to 'httemplate/edit') diff --git a/httemplate/edit/alarm_station.html b/httemplate/edit/alarm_station.html new file mode 100644 index 000000000..0d088dfdc --- /dev/null +++ b/httemplate/edit/alarm_station.html @@ -0,0 +1,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'); + + diff --git a/httemplate/edit/alarm_system.html b/httemplate/edit/alarm_system.html new file mode 100644 index 000000000..c9e0076c6 --- /dev/null +++ b/httemplate/edit/alarm_system.html @@ -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'); + + diff --git a/httemplate/edit/alarm_type.html b/httemplate/edit/alarm_type.html new file mode 100644 index 000000000..1ef02f4d2 --- /dev/null +++ b/httemplate/edit/alarm_type.html @@ -0,0 +1,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'); + + diff --git a/httemplate/edit/process/alarm_station.html b/httemplate/edit/process/alarm_station.html new file mode 100644 index 000000000..17ea07473 --- /dev/null +++ b/httemplate/edit/process/alarm_station.html @@ -0,0 +1,11 @@ +<& elements/process.html, + 'table' => 'alarm_station', + 'viewall_dir' => 'browse', +&> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Alarm configuration') + || $FS::CurrentUser::CurrentUser->access_right('Alarm global configuration'); + + diff --git a/httemplate/edit/process/alarm_system.html b/httemplate/edit/process/alarm_system.html new file mode 100644 index 000000000..5fc663005 --- /dev/null +++ b/httemplate/edit/process/alarm_system.html @@ -0,0 +1,11 @@ +<& elements/process.html, + 'table' => 'alarm_system', + 'viewall_dir' => 'browse', +&> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Alarm configuration') + || $FS::CurrentUser::CurrentUser->access_right('Alarm global configuration'); + + diff --git a/httemplate/edit/process/alarm_type.html b/httemplate/edit/process/alarm_type.html new file mode 100644 index 000000000..ede0051bf --- /dev/null +++ b/httemplate/edit/process/alarm_type.html @@ -0,0 +1,11 @@ +<& elements/process.html, + 'table' => 'alarm_type', + 'viewall_dir' => 'browse', +&> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Alarm configuration') + || $FS::CurrentUser::CurrentUser->access_right('Alarm global configuration'); + + -- cgit v1.2.1