OLT edit fixes, #35260
authorMark Wells <mark@freeside.biz>
Thu, 10 Mar 2016 09:47:43 +0000 (01:47 -0800)
committerMark Wells <mark@freeside.biz>
Thu, 10 Mar 2016 09:48:07 +0000 (01:48 -0800)
httemplate/browse/fiber_olt.html
httemplate/edit/process/olt_site.html

index 2355ec0..ec64768 100644 (file)
@@ -6,6 +6,6 @@
   'acl'                 => 'Configuration',
 # overrides
   'disabled_statuspos' => 3,
-  'header' => [ '#',      'Site',             'Name',     'Serial' ],
-  'fields' => [ 'oltnum', 'site_description', 'oltname',  'serial' ],
+  'header' => [ '#',      'Name',     'Serial', 'Site',             ],
+  'fields' => [ 'oltnum', 'oltname',  'serial', 'site_description', ],
 &>
index f328cfe..8d048a2 100644 (file)
@@ -1,4 +1,11 @@
 <& elements/process.html, 
-    table       => 'olt_site',
-    viewall_dir => 'browse',
+    table         => 'olt_site',
+    viewall_dir   => 'browse',
+    popup_reload  => 'Updating',
 &>
+<%init>
+
+die "access denied"
+  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
+</%init>