Skip to content

Commit 2206a1a

Browse files
authored
Merge pull request #304 from lara-zeus/entry
allow for custom entry for responses
2 parents d9ebbb3 + 5c1be8a commit 2206a1a

File tree

3 files changed

+69
-64
lines changed

3 files changed

+69
-64
lines changed

composer.lock

+63-63
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/views/filament/resources/response-resource/pages/show-entry.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<p>{{ $resp->field->name ?? '' }}</p>
1010
<div class="items-center flex justify-between">
1111
<p class="font-semibold mb-2">
12-
{!! ( new $resp->field->type )->getResponse($resp->field, $resp) !!}
12+
{!! ( new $resp->field->type )->entry($resp->field, $resp) !!}
1313
</p>
1414
@if($resp->form->extensions === 'LaraZeus\\BoltPro\\Extensions\\Grades')
1515
<livewire:bolt-pro.grading :response="$resp" />

src/Fields/FieldsContract.php

+5
Original file line numberDiff line numberDiff line change
@@ -282,4 +282,9 @@ public function getFieldResponseValue(Response $record, Field $field): string
282282

283283
return (new $field->type)->getResponse($field, $fieldResponse);
284284
}
285+
286+
public function entry(Field $field, FieldResponse $resp): string
287+
{
288+
return $this->getResponse($field, $resp);
289+
}
285290
}

0 commit comments

Comments
 (0)