For more clarity in the code, moved the array of options to the controller itself.

This commit is contained in:
James Cole 2016-01-15 16:26:19 +01:00
parent dc9083a764
commit 4f6a733238

View File

@ -170,6 +170,13 @@ class CsvController extends Controller
$specifix[$entry] = trans('firefly.csv_specifix_' . $entry);
}
// get a list of delimiters:
$delimiters = [
',' => trans('form.csv_comma'),
';' => trans('form.csv_semicolon'),
'tab' => trans('form.csv_tab')
];
// get a list of asset accounts:
$accounts = ExpandedForm::makeSelectList($repository->getAccounts(['Asset account', 'Default account']));