added initial UI for uploading csv
This commit is contained in:
parent
c456428681
commit
4b7550f569
4 changed files with 45 additions and 9 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue