ACL for hardware class config, RT#85057
[freeside.git] / httemplate / edit / hardware_status.html
index ee5f25d..c8cb68c 100644 (file)
@@ -1,16 +1,24 @@
 <% include( 'elements/edit.html',
-                 'name'   => 'Hardware Status',
-                 'table'  => 'hardware_status',
-                 'labels' => { 
-                               'statusnum' => 'Status number',
-                               'label'     => 'Description' ,
-                             },
-                 'viewall_dir' => 'browse',
-           )
+                'name_singular'   => 'Hardware Status',
+                'table'  => 'hardware_status',
+                'labels' => { 
+                              'statusnum' => 'Status number',
+                              'label'     => 'Description' ,
+                              'disabled'  => 'Disable status'
+                            },
+                'fields' => [
+                              'label',
+                              { field => 'disabled',
+                                type  => 'checkbox',
+                                value => 'Y',
+                              },
+                            ],
+                'viewall_dir' => 'browse',
+          )
 %>
 <%init>
 
 die "access denied"
-  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+  unless $FS::CurrentUser::CurrentUser->access_right('Edit hardware classes and types');
 
 </%init>