% layout 'admin';
% title 'Import From';
% content_for javascript => begin
% end
% if (my $error = flash 'error') {
<div class="alert alert-danger" role="alert">
<strong>Error!</strong> <%= $error %>
</div>
% }
% elsif (my $success = flash 'success') {
<div class="alert alert-success" role="alert">
<strong>Success!</strong> <%= $success %>
<div class="row">
<div class="col-12 mb-3">
<h3 class="float-left">Import From</h3>
<p>Various import options depending on source. Each one is custom. For Creditor reports from LCC.</p>
<p>Warning: Large files will take a long time to process, just leave the tab open until the Success message appears.</p>
<div class="card col-md-6 m-3">
<div class="card-body">
<h4 class="card-title">LCC Procurement Import - Suppliers</h4>
<form action="/admin/import_from/suppliers" method="POST" enctype="multipart/form-data">
<input type="file" name="suppliers_csv" accept="text/csv">
<input type="submit" value="Upload Suppliers CSV">
</form>
<h4 class="card-title">LCC Procurement Import - Transactions</h4>
<form action="/admin/import_from/transactions" method="POST" enctype="multipart/form-data">
<input type="file" name="transactions_csv" accept="text/csv">
<input type="submit" value="Upload Transactions CSV">