| Línea 170... |
Línea 170... |
| 170 |
'name' => $record['name'],
|
170 |
'name' => $record['name'],
|
| 171 |
'description' => $record['description'],
|
171 |
'description' => $record['description'],
|
| 172 |
'text' => $record['text'],
|
172 |
'text' => $record['text'],
|
| 173 |
'language' => $language,
|
173 |
'language' => $language,
|
| 174 |
'status' => $status,
|
174 |
'status' => $status,
|
| 175 |
'link_take_a_test' => $allowTakeATest && ( empty($record['status']) || $record['status'] == CompanySelfEvaluationTest::STATUS_DRAFT )
|
175 |
'link_take_a_test' => $allowTakeATest && ( empty($record['status']) || $record['status'] == CompanySelfEvaluationTest::STATUS_DRAFT)
|
| 176 |
? $this->url()->fromRoute('profile/self-evaluation/take-a-test', ['id' => $record['uuid']]) : '',
|
176 |
? $this->url()->fromRoute('profile/self-evaluation/take-a-test', ['id' => $record['uuid']]) : '',
|
| 177 |
'link_report' => $allowReport && $record['status'] == CompanySelfEvaluationTest::STATUS_COMPLETED ? $this->url()->fromRoute('profile/self-evaluation/report', ['id' => $record['uuid']]) : '',
|
177 |
'link_report' => $allowReport && $record['status'] == CompanySelfEvaluationTest::STATUS_COMPLETED ? $this->url()->fromRoute('profile/self-evaluation/report', ['id' => $record['uuid']]) : '',
|
| 178 |
];
|
178 |
];
|
| Línea 261... |
Línea 261... |
| 261 |
'data' => [
|
261 |
'data' => [
|
| 262 |
'name' => $companySelfEvaluationForm->name,
|
262 |
'name' => $companySelfEvaluationForm->name,
|
| 263 |
'description' => $companySelfEvaluationForm->description,
|
263 |
'description' => $companySelfEvaluationForm->description,
|
| 264 |
'text' => $companySelfEvaluationForm->text,
|
264 |
'text' => $companySelfEvaluationForm->text,
|
| 265 |
'content' => $companySelfEvaluationTest && $companySelfEvaluationTest->status == CompanySelfEvaluationTest::STATUS_DRAFT ?
|
265 |
'content' => $companySelfEvaluationTest && $companySelfEvaluationTest->status == CompanySelfEvaluationTest::STATUS_DRAFT ?
|
| 266 |
array(json_decode($companySelfEvaluationTest->content)) :
|
266 |
json_decode($companySelfEvaluationTest->content) :
|
| 267 |
json_decode($companySelfEvaluationForm->content),
|
267 |
json_decode($companySelfEvaluationForm->content),
|
| 268 |
]
|
268 |
]
|
| 269 |
]);
|
269 |
]);
|
| 270 |
}
|
270 |
}
|