1
0
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:
Hillel Coren 2017-01-16 11:30:31 +02:00
parent b18f11f3da
commit 388928a6f0
3 changed files with 9 additions and 3 deletions

View File

@ -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)) {

View File

@ -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))

View File

@ -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>