コード例 #1
0
 /**
  * Show the form for editing the specified resource
  *
  * @return array|\Illuminate\Contracts\View\Factory|\Illuminate\View\View|mixed
  */
 public function edit()
 {
     // Get from session data
     $ticketsData = Session::get('mophie_testplanner.tickets');
     $ticketsHtml = '';
     foreach ($ticketsData as $ticket) {
         $ticketsHtml .= view('pages/testplanner/partials/tickets', ['mode' => 'edit', 'ticket' => $ticket, 'addTicketBtnType' => 'btn-primary'])->render();
     }
     // Get Jira issues
     $jiraIssues = $this->jiraApi->jiraIssues();
     return view('pages.testplanner.step_2', ['plan' => ['mode' => 'edit', 'tickets_html' => $ticketsHtml, 'jira_issues' => json_encode($jiraIssues)]]);
 }
コード例 #2
0
 /**
  * Show the form for editing the specified resource
  *
  * @return array|\Illuminate\Contracts\View\Factory|\Illuminate\View\View|mixed
  */
 public function edit()
 {
     // Get plan session data
     $planData = Session::get('mophie_testplanner.plan');
     // Get Jira versions
     $jiraVersions = $this->jiraApi->jiraVersions();
     return view('pages.testplanner.step_1', ['mode' => 'edit', 'planData' => $planData, 'jira_versions' => json_encode($jiraVersions)]);
 }