Skip to content

Commit

Permalink
chore(new-loan, repayment): add hidden id fields
Browse files Browse the repository at this point in the history
These hidden fields record the id of the user sending the form
  • Loading branch information
chidimo committed May 16, 2019
1 parent df95b5e commit 43da2c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions UI/loan.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ <h3>Post payment to loan <code>123456789</code></h3>
<hr>
<label for="payment_amount"><b>Amount</b></label>
<input class="modal_input" type="number" min="1" placeholder="Enter payment amount" name="payment_amount" required>
<input type="hidden" id="adminid" name="adminid" value="4">

<div class="clearfix">
<button
Expand Down
2 changes: 2 additions & 0 deletions UI/loan.new.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ <h1>Apply for loan</h1>

<label for="tenor"><b>Tenor</b></label>
<input type="number" min="1" max="12" placeholder="Tenor" name="tenor" required>

<input type="hidden" id="userid" name="userid" value="2">

<button type="submit" class="shadowed_button submit_button">Apply</button>
</form>
Expand Down

0 comments on commit 43da2c5

Please sign in to comment.