mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Clean up project workflow
This commit is contained in:
parent
b18f11f3da
commit
388928a6f0
@ -40,7 +40,7 @@ class TaskPresenter extends EntityPresenter
|
|||||||
$str = '';
|
$str = '';
|
||||||
|
|
||||||
if ($showProject && $project = $this->project()) {
|
if ($showProject && $project = $this->project()) {
|
||||||
$str .= "##{$project}\n\n";
|
$str .= "## {$project}\n\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($description = trim($this->entity->description)) {
|
if ($description = trim($this->entity->description)) {
|
||||||
|
@ -53,6 +53,7 @@
|
|||||||
{!! Button::normal(trans('texts.categories'))->asLinkTo(URL::to('/expense_categories'))->appendIcon(Icon::create('list')) !!}
|
{!! Button::normal(trans('texts.categories'))->asLinkTo(URL::to('/expense_categories'))->appendIcon(Icon::create('list')) !!}
|
||||||
@elseif ($entityType == ENTITY_TASK)
|
@elseif ($entityType == ENTITY_TASK)
|
||||||
{!! Button::normal(trans('texts.projects'))->asLinkTo(URL::to('/projects'))->appendIcon(Icon::create('list')) !!}
|
{!! 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
|
@endif
|
||||||
|
|
||||||
@if (Auth::user()->can('create', $entityType) && empty($vendorId))
|
@if (Auth::user()->can('create', $entityType) && empty($vendorId))
|
||||||
|
@ -76,9 +76,14 @@
|
|||||||
@if ($clientPublicId)
|
@if ($clientPublicId)
|
||||||
$clientSelect.val({{ $clientPublicId }});
|
$clientSelect.val({{ $clientPublicId }});
|
||||||
@endif
|
@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>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user