示例#1
0
 /**
  * Show the form for editing the specified resource.
  * GET /tasks/{id}/edit
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($society, $project, $id)
 {
     $data['society'] = $society;
     $data['task'] = Task::find($id);
     $data['project'] = Project::find($data['task']->project_id);
     $data['individuals'] = Individual::all();
     return View::make('tasks.edit', $data);
 }
示例#2
0
 /**
  * Show the form for editing the specified resource.
  * GET /portfolios/{id}/edit
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($society, $id)
 {
     if (Helpers::perm('admin', $society) or Helpers::perm('edit', $society)) {
         $data['society'] = $society;
         $data['portfolio'] = Portfolio::with('individual')->find($id);
         $data['individuals'] = Individual::all();
         return View::make('portfolios.edit', $data);
     } else {
         return view('shared.unauthorised');
     }
 }
示例#3
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     $data['individuals'] = Individual::all();
     return View::make('settings.create', $data);
 }
示例#4
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($society, $id)
 {
     if (Helpers::perm('admin', $society) or Helpers::perm('edit', $society)) {
         $data['society'] = $society;
         $data['skill'] = Skill::with('individual')->where('society_id', '=', $society)->find($id);
         $data['individuals'] = Individual::all();
         return View::make('skills.edit', $data);
     } else {
         return view('shared.unauthorised');
     }
 }