Fix home page upload to use json api instead of seperate upload code
This commit is contained in:
parent
00b0687136
commit
a097db2017
6 changed files with 27 additions and 115 deletions
|
@ -13,7 +13,7 @@
|
|||
% }
|
||||
<div class="list-group">
|
||||
% for my $user (@$users) {
|
||||
<a href="<%= url_for . '/' . $user->{userid} %>" class="list-group-item list-group-item-action">
|
||||
<a href="<%= url_for . '/' . $user->{id} %>" class="list-group-item list-group-item-action">
|
||||
<div>
|
||||
%= $user->{email}
|
||||
</div>
|
||||
|
|
|
@ -18,11 +18,11 @@
|
|||
</div>
|
||||
<div class="form-group">
|
||||
<label for="joindate">Join Date</label>
|
||||
<input id="joindate" type="datetime" class="form-control" placeholder="Date" name="joindate" value="<%= $user->joindate %>" disabled>
|
||||
<input id="joindate" type="datetime" class="form-control" placeholder="Date" name="joindate" value="<%= $user->join_date %>" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="type">Account Type</label>
|
||||
<input id="type" type="text" class="form-control" value="<%= defined $user->customerid_fk ? 'Customer' : 'Organisation' %>" disabled>
|
||||
<input id="type" type="text" class="form-control" value="<%= defined $user->customer_id ? 'Customer' : 'Organisation' %>" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary form-control" type="submit">Update</button>
|
||||
|
|
|
@ -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>
|
||||
|
|
Reference in a new issue