/**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit(Netblock $netblock)
 {
     $contacts = Contact::lists('name', 'id');
     $netblock->first_ip = ICF::inet_itop($netblock->first_ip);
     $netblock->last_ip = ICF::inet_itop($netblock->last_ip);
     return view('netblocks.edit')->with('netblock', $netblock)->with('contact_selection', $contacts)->with('selected', $netblock->contact_id);
 }
Exemplo n.º 2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param Netblock $netblock
  *
  * @return \Illuminate\Http\Response
  */
 public function edit(Netblock $netblock)
 {
     $auth_account = $this->auth_user->account;
     if (!$auth_account->isSystemAccount()) {
         $contacts = Contact::select('contacts.*')->where('account_id', $auth_account->id)->get()->lists('name', 'id');
     } else {
         $contacts = Contact::lists('name', 'id');
     }
     return view('netblocks.edit')->with('netblock', $netblock)->with('contact_selection', $contacts)->with('selected', $netblock->contact_id)->with('auth_user', $this->auth_user);
 }
Exemplo n.º 3
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param Netblock $netblock
  * @return \Illuminate\Http\Response
  */
 public function edit(Netblock $netblock)
 {
     $contacts = Contact::lists('name', 'id');
     return view('netblocks.edit')->with('netblock', $netblock)->with('contact_selection', $contacts)->with('selected', $netblock->contact_id)->with('auth_user', $this->auth_user);
 }
Exemplo n.º 4
0
 /**
  * Show the form for editing the specified resource.
  * @param Domain $domain
  * @return Response
  * @internal param int $id
  */
 public function edit(Domain $domain)
 {
     $contacts = Contact::lists('name', 'id');
     return view('domains.edit')->with('domain', $domain)->with('contact_selection', $contacts)->with('selected', $domain->contact_id)->with('user', $this->user);
 }