mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 00:11:35 +02:00
Clean up project workflow
This commit is contained in:
parent
b18f11f3da
commit
388928a6f0
@ -40,7 +40,7 @@ class TaskPresenter extends EntityPresenter
|
||||
$str = '';
|
||||
|
||||
if ($showProject && $project = $this->project()) {
|
||||
$str .= "##{$project}\n\n";
|
||||
$str .= "## {$project}\n\n";
|
||||
}
|
||||
|
||||
if ($description = trim($this->entity->description)) {
|
||||
|
@ -53,6 +53,7 @@
|
||||
{!! Button::normal(trans('texts.categories'))->asLinkTo(URL::to('/expense_categories'))->appendIcon(Icon::create('list')) !!}
|
||||
@elseif ($entityType == ENTITY_TASK)
|
||||
{!! Button::normal(trans('texts.projects'))->asLinkTo(URL::to('/projects'))->appendIcon(Icon::create('list')) !!}
|
||||
{!! Button::primary(trans('texts.new_project'))->asLinkTo(URL::to('/projects/create/' . (isset($clientId) ? $clientId : '')))->appendIcon(Icon::create('plus-sign')) !!}
|
||||
@endif
|
||||
|
||||
@if (Auth::user()->can('create', $entityType) && empty($vendorId))
|
||||
|
@ -76,9 +76,14 @@
|
||||
@if ($clientPublicId)
|
||||
$clientSelect.val({{ $clientPublicId }});
|
||||
@endif
|
||||
$clientSelect.combobox().focus();
|
||||
|
||||
$('.client-select input.form-control').focus();
|
||||
$clientSelect.combobox();
|
||||
|
||||
@if ($clientPublicId)
|
||||
$('#name').focus();
|
||||
@else
|
||||
$('.client-select input.form-control').focus();
|
||||
@endif
|
||||
});
|
||||
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user