Initial commit for CSV import.

This commit is contained in:
James Cole
2015-07-03 10:45:00 +02:00
parent 571165c2bb
commit 86011d4ea2
6 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?php
/**
* Created by PhpStorm.
* User: sander
* Date: 03/07/15
* Time: 10:37
*/
namespace FireflyIII\Http\Controllers;
use View;
/**
* Class CsvController
*
* @package FireflyIII\Http\Controllers
*/
class CsvController extends Controller
{
/**
*
*/
public function __construct()
{
parent::__construct();
View::share('title', 'CSV');
View::share('mainTitleIcon', 'fa-file-text-o');
}
public function index()
{
return view('csv.index');
}
}

View File

@@ -219,6 +219,12 @@ Route::group(
Route::post('/categories/update/{category}', ['uses' => 'CategoryController@update', 'as' => 'categories.update']);
Route::post('/categories/destroy/{category}', ['uses' => 'CategoryController@destroy', 'as' => 'categories.destroy']);
/**
* CSV controller
*/
Route::get('/csv', ['uses' => 'CsvController@index', 'as' => 'csv.index']);
/**
* Currency Controller
*/

View File

@@ -19,6 +19,9 @@ return [
'never' => 'Never',
'search_results_for' => 'Search results for ":query"',
// csv import:
'csv_import' => 'Import CSV file',
// create new stuff:
'create_new_withdrawal' => 'Create new withdrawal',
'create_new_deposit' => 'Create new deposit',

View File

@@ -19,6 +19,9 @@ return [
'never' => 'Nooit',
'search_results_for' => 'Zoekresultaten voor ":query"',
// csv import:
'csv_import' => 'Import CSV file',
// create new stuff:
'create_new_withdrawal' => 'Nieuwe uitgave',
'create_new_deposit' => 'Nieuwe inkomsten',

View File

@@ -0,0 +1,12 @@
{% extends "./layout/default.twig" %}
{% block breadcrumbs %}
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName) }}
{% endblock %}
{% block content %}
Bla bla.
{% endblock %}

View File

@@ -123,6 +123,9 @@
<li class="{{ activeRoutePartial('currency') }}">
<a class="{{ activeRoutePartial('currency') }}" href="{{ route('currency.index') }}"><i class="fa fa-usd fa-fw"></i> {{ 'currencies'|_ }}</a>
</li>
<li class="{{ activeRoutePartial('csv') }}">
<a href="{{ route('csv.index') }}"><i class="fa fa-file-text-o fa-fw"></i> {{ 'csv_import'|_ }}</a>
</li>
</ul>