Fix home page upload to use json api instead of seperate upload code

This commit is contained in:
Tom Bloor 2017-04-21 23:38:12 +01:00
parent 00b0687136
commit a097db2017
6 changed files with 27 additions and 115 deletions

View file

@ -7,7 +7,7 @@
<h3 class="card-header">Submit Receipt</h3>
<div class="card-block">
<form id="receipt-form" action="<%= url_for '/portal/upload' %>">
<input type="hidden" name="transaction_type" value="3" hidden>
<input id="tran-type" type="hidden" name="transaction_type" value="3" hidden>
<div class="form-group">
<label for="org-name">Organisation Name</label>
<input id="org-name" type="text" class="form-control" name="organisation_name" placeholder="Organisation Name" required>