Added FTN list, System View
This commit is contained in:
@@ -120,7 +120,7 @@ class HomeController extends Controller
|
||||
if ($o->zone_id && ($o->region_id||$o->host_id) && is_numeric($o->node_id) && is_numeric($o->point_id))
|
||||
$ftn = sprintf('%d:%d/%d.%d',$o->zone_id,$o->host_id ?: $o->region_id,$o->node_id,$o->point_id);
|
||||
|
||||
$result->push(['id'=>$o->system_id,'name'=>$o->name.($ftn ? ' '.$ftn : ''),'value'=>url('ftn/system/addedit',[$o->system_id]),'category'=>'Systems']);
|
||||
$result->push(['id'=>$o->system_id,'name'=>$o->name.($ftn ? ' '.$ftn : ''),'value'=>url('system/view',[$o->system_id]),'category'=>'Systems']);
|
||||
}
|
||||
|
||||
# Look for Messages
|
||||
|
@@ -613,4 +613,12 @@ class SystemController extends Controller
|
||||
->with('o',$o)
|
||||
->with('errors',new ViewErrorBag);
|
||||
}
|
||||
|
||||
public function view(System $o)
|
||||
{
|
||||
$o->load(['addresses.echomails.echoarea']);
|
||||
|
||||
return view('system.view')
|
||||
->with('o',$o);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user