Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2017
157
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <% include partials/header.ejs %>
  2. <script src="init.js" type="text/javascript"></script>
  3. <div class="row">
  4.  
  5. <form action="/loans" method="POST" class="col s12 m6 offset-m3">
  6. <h4 class="center">Add a Loan</h4>
  7. <div class="row">
  8. <div class="input-field col s6">
  9. <input id="first_name" name="loan[firstName]" type="text" class="validate"required >
  10. <label for="first_name">First Name</label>
  11. </div>
  12. <div class="input-field col s6">
  13. <input name="loan[lastName]" id="last_name" type="text" class="validate" required>
  14. <label for="last_name">Last Name</label>
  15. </div>
  16. </div>
  17. <div class="row">
  18. <div class="input-field col s6">
  19. <input name="loan[email]" type="email" class="validate">
  20. <label for="email">Email</label>
  21. </div>
  22. <div class="input-field col s6">
  23. <input name="loan[contactNumber]" type="number" class="validate">
  24. <label for="email">Number</label>
  25. </div>
  26. </div>
  27. <div class="row">
  28. <div class="input-field col s6">
  29. <input type="number" class="validate" name="loan[amountBorrowed]">
  30. <label for="amountBorrowed">Amount Borrwed</label>
  31. </div>
  32. <div class="input-field col s6">
  33. <input type="text" class="validate" name="loan[length]">
  34. <label for="Type Of Loan">Type Of Loan</label>
  35. </div>
  36. </div>
  37.  
  38. <div class="row">
  39. <div class="input-field col s12">
  40. <input type="text" class="validate" name="loan[address]">
  41. <label for="Address">Address</label>
  42. </div>
  43. </div>
  44. <div class="row">
  45. <div class="input-field col m6">
  46. <input name="loan[dateDue]" id="birthdate" type="text" class="datepicker picker__input">
  47. <label for="datepicker">Pick a Due Date</label>
  48. </div>
  49. <div class="input-field col m6">
  50. <select>
  51. <option value="1">Option 1</option>
  52. <option value="2">Option 2</option>
  53. <option value="3">Option 3</option>
  54. </select>
  55. </div>
  56. </div>
  57.  
  58. <div class="row">
  59. <div class="col s12">
  60. <button style="width: 100%" type="submit" class=" green accent-4 waves-effect waves-light btn">Create</button>
  61. </div>
  62. </div>
  63. </form>
  64. </div>
  65.  
  66. <script>
  67.  
  68. $('.datepicker').pickadate({
  69. selectMonths: true, // Creates a dropdown to control month
  70. selectYears: 15, // Creates a dropdown of 15 years to control year,
  71. today: 'Today',
  72. clear: 'Clear',
  73. close: 'Ok',
  74. closeOnSelect: false // Close upon selecting a date,
  75. });
  76.  
  77. </script>
  78.  
  79. <% include partials/footer.ejs %>
Advertisement
RAW Paste Data Copied
Advertisement