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

@ -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>