mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Handle project w/o a client set
This commit is contained in:
parent
59b107fc66
commit
595a8a5aed
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
@if ($project)
|
@if ($project)
|
||||||
{!! Former::plaintext('client_name')
|
{!! Former::plaintext('client_name')
|
||||||
->value($project->client->getDisplayName()) !!}
|
->value($project->client ? $project->client->getDisplayName() : '') !!}
|
||||||
@else
|
@else
|
||||||
{!! Former::select('client_id')
|
{!! Former::select('client_id')
|
||||||
->addOption('', '')
|
->addOption('', '')
|
||||||
@ -52,7 +52,7 @@
|
|||||||
{!! Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk')) !!}
|
{!! Button::success(trans('texts.save'))->submit()->large()->appendIcon(Icon::create('floppy-disk')) !!}
|
||||||
@if ($project && Auth::user()->can('create', ENTITY_TASK))
|
@if ($project && Auth::user()->can('create', ENTITY_TASK))
|
||||||
{!! Button::primary(trans('texts.new_task'))->large()
|
{!! Button::primary(trans('texts.new_task'))->large()
|
||||||
->asLinkTo(url("/tasks/create/{$project->client->public_id}/{$project->public_id}"))
|
->asLinkTo(url('/tasks/create/' . ($project->client ? $project->client->public_id : '0'). '/' . $project->public_id))
|
||||||
->appendIcon(Icon::create('plus-sign')) !!}
|
->appendIcon(Icon::create('plus-sign')) !!}
|
||||||
@endif
|
@endif
|
||||||
</center>
|
</center>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user