added initial UI for uploading csv

This commit is contained in:
Finn 2019-07-04 14:16:49 +01:00
parent c456428681
commit 4b7550f569
No known key found for this signature in database
GPG key ID: 7455B4B17685B598
4 changed files with 45 additions and 9 deletions

View file

@ -1,4 +1,26 @@
package Pear::LocalLoop::Controller::Admin::ImportFrom;
use Mojo::Base 'Mojolicious::Controller';
use Devel::Dwarn;
1;
sub index {
my $c = shift;
$c->app->max_request_size(1048576);
}
sub post_suppliers {
my $c = shift;
Dwarn "yahoo!";
return $c->redirect_to( '/admin/import_from' );
}
sub post_transactions {
my $c = shift;
Dwarn "yahoo!";
$c->flash( success => "CSV imported!" );
return $c->redirect_to( '/admin/import_from' );
}
1;