summaryrefslogtreecommitdiff
path: root/UI/Admin/edit_user.html
blob: 4602f8fa9a17a5939abcdd76f964666298edf332 (plain)
  1. <div id="modify_user">
  2. <font size="15">
  3. <strong>
  4. <?lsmb IF user.username ?>
  5. Edit User <?lsmb user.username ?>
  6. <?lsmb ELSE?>
  7. New User
  8. <?lsmb END?>
  9. </strong>
  10. </font>
  11. <form method="POST" action="admin.pl?action=new_user">
  12. <table>
  13. <tr>
  14. <td>
  15. <select name="salutation">
  16. <?lsmb FOREACH sal = salutations ?>
  17. <option value="<?lsmb sal.id?>"><?lsmb sal.salutation?></option>
  18. <?lsmb END?>
  19. </select>
  20. </td>
  21. </tr>
  22. <tr>
  23. <td>First Name</td>
  24. <td>
  25. <input type="textarea" name="first_name" value="<?lsmb user.first_name?>"/>
  26. </td>
  27. </tr>
  28. <tr>
  29. <td>Last Name</td>
  30. <td>
  31. <input type="textarea" name="last_name" value="<?lsmb user.last_name?>"/>
  32. </td>
  33. </tr>
  34. <tr>
  35. <td>Employee #</td>
  36. <td>
  37. <input type="textarea" name="employeenumber" value="<?lsmb user.employeenumber?>"/>
  38. </td>
  39. </tr>
  40. <hr/>
  41. <?lsmb UNLESS user.username?>
  42. <tr>
  43. <td>Username</td>
  44. <td>
  45. <input type="textarea" name="username" value="<?lsmb user.last_name?>"/>
  46. </td>
  47. </tr>
  48. <?lsmb END?>
  49. <tr>
  50. <td><br/></td>
  51. <td>
  52. <hr/>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td>Company Name</td>
  57. <td>
  58. <input type="textarea" name="companyname" value="<?lsmb user.companyname?>"/>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td>
  63. Address
  64. </td>
  65. <td>
  66. <input type="textarea" name="address1" value="<?lsmb user.address1?>"/>
  67. </td>
  68. </tr>
  69. <tr>
  70. <td></td>
  71. <td>
  72. <input type="textarea" name="address2" value="<?lsmb user.address2?>"/>
  73. </td>
  74. </tr>
  75. <tr>
  76. <td></td>
  77. <td>
  78. <input type="textarea" name="address3" value="<?lsmb user.address3?>"/>
  79. </td>
  80. </tr>
  81. <tr>
  82. <td>City</td>
  83. <td>
  84. <input type="textarea" name="city" value="<?lsmb user.city?>"/>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td>City</td>
  89. <td>
  90. <input type="textarea" name="city" value="<?lsmb user.city?>"/>
  91. </td>
  92. </tr>
  93. <tr>
  94. <td>State/Province</td>
  95. <td>
  96. <input type="textarea" name="state" value="<?lsmb user.state?>"/>
  97. </td>
  98. </tr>
  99. <tr>
  100. <td>Zip/Postal code</td>
  101. <td>
  102. <input type="textarea" name="zipcode" value="<?lsmb user.zipcode?>"/>
  103. </td>
  104. </tr>
  105. <tr>
  106. <td>Country</td>
  107. <td>
  108. <input type="textarea" name="country" value="<?lsmb user.city?>"/>
  109. </td>
  110. </tr>
  111. <tr>
  112. <td><br/></td>
  113. <td><hr/></td>
  114. </tr>
  115. <tr>
  116. <td>Home Phone</td>
  117. <td>
  118. <input type="textarea" name="homephone" value="<?lsmb user.homephone?>"/>
  119. </td>
  120. </tr>
  121. <tr>
  122. <td>Work Phone</td>
  123. <td>
  124. <input type="textarea" name="workphone" value="<?lsmb user.workphone?>"/>
  125. </td>
  126. </tr>
  127. <tr>
  128. <td>Email</td>
  129. <td>
  130. <input type="textarea" name="e_mail" value="<?lsmb user.e_mail?>"/>
  131. </td>
  132. </tr>
  133. </table>
  134. <table>
  135. <!-- Groups section -->
  136. <tr>
  137. <?lsmb FOREACH group IN groups ?>
  138. <?lsmb IF loop.count % 8 == 0?>
  139. </tr>
  140. <tr>
  141. <?lsmb END?>
  142. <td><input type="checkbox" name="<?lsmb loop.index?>" value="1"/><?lsmb group.rolname?></td>
  143. <?lsmb END?>
  144. </tr>
  145. </table>
  146. <table>
  147. <tr>
  148. <td><button value="new_user">Submit</button></td>
  149. <td><button name="method" value="cancel">Cancel</td>
  150. </tr>
  151. </table>
  152. </form>
  153. </div>