mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-17 15:18:05 +00:00
Make it easier to switch between v1/v2 layout.
This commit is contained in:
@@ -84,7 +84,7 @@ class BulkController extends Controller
|
||||
$budgetRepos = app(BudgetRepositoryInterface::class);
|
||||
$budgetList = app('expandedform')->makeSelectListWithEmpty($budgetRepos->getActiveBudgets());
|
||||
|
||||
return view('transactions.bulk.edit', compact('journals', 'subTitle', 'budgetList'));
|
||||
return prefixView('transactions.bulk.edit', compact('journals', 'subTitle', 'budgetList'));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ class ConvertController extends Controller
|
||||
return redirect(route('transactions.show', [$group->id]));
|
||||
}
|
||||
|
||||
return view(
|
||||
return prefixView(
|
||||
'transactions.convert',
|
||||
compact(
|
||||
'sourceType',
|
||||
|
||||
@@ -110,7 +110,7 @@ class CreateController extends Controller
|
||||
session()->put('preFilled', $preFilled);
|
||||
|
||||
|
||||
return view(
|
||||
return prefixView(
|
||||
'transactions.create',
|
||||
compact(
|
||||
'subTitleIcon',
|
||||
|
||||
@@ -91,7 +91,7 @@ class DeleteController extends Controller
|
||||
Log::debug('Will try to remember previous URI');
|
||||
$this->rememberPreviousUri('transactions.delete.uri');
|
||||
|
||||
return view('transactions.delete', compact('group', 'journal', 'subTitle', 'objectType', 'previous'));
|
||||
return prefixView('transactions.delete', compact('group', 'journal', 'subTitle', 'objectType', 'previous'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -89,7 +89,7 @@ class EditController extends Controller
|
||||
$previousUri = str_replace($search, '', $previousUri);
|
||||
|
||||
|
||||
return view(
|
||||
return prefixView(
|
||||
'transactions.edit',
|
||||
compact(
|
||||
'cash', 'allowedSourceDests', 'expectedSourceTypes', 'transactionGroup', 'allowedOpposingTypes', 'accountToTypes', 'defaultCurrency',
|
||||
|
||||
@@ -117,7 +117,7 @@ class IndexController extends Controller
|
||||
$groups = $collector->getPaginatedGroups();
|
||||
$groups->setPath($path);
|
||||
|
||||
return view('transactions.index', compact('subTitle', 'objectType', 'subTitleIcon', 'groups', 'periods', 'start', 'end'));
|
||||
return prefixView('transactions.index', compact('subTitle', 'objectType', 'subTitleIcon', 'groups', 'periods', 'start', 'end'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -156,6 +156,6 @@ class IndexController extends Controller
|
||||
$groups = $collector->getPaginatedGroups();
|
||||
$groups->setPath($path);
|
||||
|
||||
return view('transactions.index', compact('subTitle', 'objectType', 'subTitleIcon', 'groups', 'start', 'end'));
|
||||
return prefixView('transactions.index', compact('subTitle', 'objectType', 'subTitleIcon', 'groups', 'start', 'end'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ class LinkController extends Controller
|
||||
$subTitle = (string) trans('breadcrumbs.delete_journal_link');
|
||||
$this->rememberPreviousUri('journal_links.delete.uri');
|
||||
|
||||
return view('transactions.links.delete', compact('link', 'subTitle', 'subTitleIcon'));
|
||||
return prefixView('transactions.links.delete', compact('link', 'subTitle', 'subTitleIcon'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -107,7 +107,7 @@ class LinkController extends Controller
|
||||
{
|
||||
$linkTypes = $this->repository->get();
|
||||
|
||||
return view('transactions.links.modal', compact('journal', 'linkTypes'));
|
||||
return prefixView('transactions.links.modal', compact('journal', 'linkTypes'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -83,7 +83,7 @@ class MassController extends Controller
|
||||
// put previous url in session
|
||||
$this->rememberPreviousUri('transactions.mass-delete.uri');
|
||||
|
||||
return view('transactions.mass.delete', compact('journals', 'subTitle'));
|
||||
return prefixView('transactions.mass.delete', compact('journals', 'subTitle'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -154,7 +154,7 @@ class MassController extends Controller
|
||||
|
||||
$this->rememberPreviousUri('transactions.mass-edit.uri');
|
||||
|
||||
return view('transactions.mass.edit', compact('journals', 'subTitle', 'withdrawalSources', 'depositDestinations', 'budgets'));
|
||||
return prefixView('transactions.mass.edit', compact('journals', 'subTitle', 'withdrawalSources', 'depositDestinations', 'budgets'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -109,7 +109,7 @@ class ShowController extends Controller
|
||||
$attachments = $this->repository->getAttachments($transactionGroup);
|
||||
$links = $this->repository->getLinks($transactionGroup);
|
||||
|
||||
return view(
|
||||
return prefixView(
|
||||
'transactions.show',
|
||||
compact(
|
||||
'transactionGroup',
|
||||
|
||||
Reference in New Issue
Block a user