summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-12-09 14:43:35 -0800
committerIvan Kohler <ivan@freeside.biz>2013-12-09 14:43:35 -0800
commita3bc8ae55eb80d4517c64eaeb4b08df3ddf867f6 (patch)
treed764e93363c97d18e05dcff46beac4c7a4f59ece /httemplate/edit
parent49a0b5d01cfa15be787539edfff5ba4875ca3c3e (diff)
alarm systems, types, central stations, RT#25994
Diffstat (limited to 'httemplate/edit')
-rw-r--r--httemplate/edit/alarm_station.html23
-rw-r--r--httemplate/edit/alarm_system.html23
-rw-r--r--httemplate/edit/alarm_type.html25
-rw-r--r--httemplate/edit/process/alarm_station.html11
-rw-r--r--httemplate/edit/process/alarm_system.html11
-rw-r--r--httemplate/edit/process/alarm_type.html11
6 files changed, 104 insertions, 0 deletions
diff --git a/httemplate/edit/alarm_station.html b/httemplate/edit/alarm_station.html
new file mode 100644
index 0000000..0d088df
--- /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');
+
+</%init>
diff --git a/httemplate/edit/alarm_system.html b/httemplate/edit/alarm_system.html
new file mode 100644
index 0000000..c9e0076
--- /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');
+
+</%init>
diff --git a/httemplate/edit/alarm_type.html b/httemplate/edit/alarm_type.html
new file mode 100644
index 0000000..1ef02f4
--- /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');
+
+</%init>
diff --git a/httemplate/edit/process/alarm_station.html b/httemplate/edit/process/alarm_station.html
new file mode 100644
index 0000000..17ea074
--- /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');
+
+</%init>
diff --git a/httemplate/edit/process/alarm_system.html b/httemplate/edit/process/alarm_system.html
new file mode 100644
index 0000000..5fc6630
--- /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');
+
+</%init>
diff --git a/httemplate/edit/process/alarm_type.html b/httemplate/edit/process/alarm_type.html
new file mode 100644
index 0000000..ede0051
--- /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');
+
+</%init>