Make it easier to switch between v1/v2 layout.

This commit is contained in:
James Cole
2021-01-31 20:35:54 +01:00
parent fd8a59924d
commit ffe18c63a5
88 changed files with 176 additions and 176 deletions

View File

@@ -79,7 +79,7 @@ class CreateController extends Controller
$request->session()->forget('categories.create.fromStore');
$subTitle = (string) trans('firefly.create_new_category');
return view('categories.create', compact('subTitle'));
return prefixView('categories.create', compact('subTitle'));
}

View File

@@ -75,7 +75,7 @@ class DeleteController extends Controller
// put previous url in session
$this->rememberPreviousUri('categories.delete.uri');
return view('categories.delete', compact('category', 'subTitle'));
return prefixView('categories.delete', compact('category', 'subTitle'));
}
/**

View File

@@ -88,7 +88,7 @@ class EditController extends Controller
'notes' => $request->old('notes') ?? $this->repository->getNoteText($category),
];
return view('categories.edit', compact('category', 'subTitle', 'preFilled'));
return prefixView('categories.edit', compact('category', 'subTitle', 'preFilled'));
}
/**

View File

@@ -87,7 +87,7 @@ class IndexController extends Controller
$categories = new LengthAwarePaginator($collection, $total, $pageSize, $page);
$categories->setPath(route('categories.index'));
return view('categories.index', compact('categories'));
return prefixView('categories.index', compact('categories'));
}
}

View File

@@ -103,7 +103,7 @@ class NoCategoryController extends Controller
$groups = $collector->getPaginatedGroups();
$groups->setPath(route('categories.no-category'));
return view('categories.no-category', compact('groups', 'subTitle', 'periods', 'start', 'end'));
return prefixView('categories.no-category', compact('groups', 'subTitle', 'periods', 'start', 'end'));
}
@@ -138,6 +138,6 @@ class NoCategoryController extends Controller
$groups = $collector->getPaginatedGroups();
$groups->setPath(route('categories.no-category.all'));
return view('categories.no-category', compact('groups', 'subTitle', 'periods', 'start', 'end'));
return prefixView('categories.no-category', compact('groups', 'subTitle', 'periods', 'start', 'end'));
}
}

View File

@@ -105,7 +105,7 @@ class ShowController extends Controller
$groups = $collector->getPaginatedGroups();
$groups->setPath($path);
return view('categories.show', compact('category','attachments', 'groups', 'periods', 'subTitle', 'subTitleIcon', 'start', 'end'));
return prefixView('categories.show', compact('category','attachments', 'groups', 'periods', 'subTitle', 'subTitleIcon', 'start', 'end'));
}
/**
@@ -143,6 +143,6 @@ class ShowController extends Controller
$groups = $collector->getPaginatedGroups();
$groups->setPath($path);
return view('categories.show', compact('category','attachments', 'groups', 'periods', 'subTitle', 'subTitleIcon', 'start', 'end'));
return prefixView('categories.show', compact('category','attachments', 'groups', 'periods', 'subTitle', 'subTitleIcon', 'start', 'end'));
}
}