From 6a2ad59de1083ccfb16aee491dfa283f1581b6b4 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 4 Jun 2017 22:47:21 +0300 Subject: [PATCH] Make client clickable on project form --- resources/views/projects/edit.blade.php | 2 +- resources/views/tasks/edit.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/projects/edit.blade.php b/resources/views/projects/edit.blade.php index 61b2516745..bb9eaebecd 100644 --- a/resources/views/projects/edit.blade.php +++ b/resources/views/projects/edit.blade.php @@ -29,7 +29,7 @@ @if ($project) {!! Former::plaintext('client_name') - ->value($project->client ? $project->client->getDisplayName() : '') !!} + ->value($project->client ? $project->client->present()->link : '') !!} @else {!! Former::select('client_id') ->addOption('', '') diff --git a/resources/views/tasks/edit.blade.php b/resources/views/tasks/edit.blade.php index e2b486f883..05c10f7e27 100644 --- a/resources/views/tasks/edit.blade.php +++ b/resources/views/tasks/edit.blade.php @@ -50,7 +50,7 @@ @if ($task && $task->invoice_id) {!! Former::plaintext() ->label('client') - ->value($task->client->getDisplayName()) !!} + ->value($task->client->present()->link) !!} @if ($task->project) {!! Former::plaintext() ->label('project')