Guest User

Untitled

a guest
May 23rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.75 KB | None | 0 0
  1. <form action="" method="post" id="user_form">
  2. <fieldset id="account">
  3. <dl>
  4. <dt><label for="username">Username</label></dt>
  5. <dd>
  6. <input type="text" name="username" required="true" validate="strlen 32 3; username" value="<?php echo $this->user['USERNAME'] ?>" />
  7. <error for="username" class="error_icon"></error>
  8. <error for="username" validator="required">This is a required field</error>
  9. </dd>
  10. <dt><label for="username">First Name</label></dt>
  11. <dd>
  12. <input type="text" name="first_name" required="true" validate="strlen 32 3; words" value="<?php echo $this->user['FIRST_NAME'] ?>" />
  13. <error for="username" class="error_icon"></error>
  14. <error for="username" validator="required">This is a required field</error>
  15. </dd>
  16. <dt><label for="username">Last Name</label></dt>
  17. <dd>
  18. <input type="text" name="last_name" required="false" validate="strlen 32 3; words" value="<?php echo $this->user['LAST_NAME'] ?>" />
  19. <error for="username" class="error_icon"></error>
  20. <error for="username" validator="required">This is a required field</error>
  21. </dd>
  22. </dl>
  23. </fieldset>
  24. <fieldset id="access">
  25. <dl>
  26. <dt><label for="role">Role</label></dt>
  27. <dd>
  28. <select name="role" validate="strict">
  29. <?php foreach ($this->roles as $role_id => $role_name) : ?>
  30. <option value="<?php echo $role_id ?>"><?php echo $role_name ?></option>
  31. <?php endforeach ?>
  32. </select>
  33. <error for="role" class="error_icon"></error>
  34. <error for="role" validator="required">This is a required field</error>
  35. </dd>
  36. <dt><label for="all_stages">All Stages</label></dt>
  37. <dd><input type="checkbox" name="all_stages" />
  38. <dt><label>Order Stages</label></dt>
  39. <dd>
  40. <div style="width: 300px; display: inline-block; overflow: auto">
  41. <table>
  42. <col></col>
  43. <col style="width: 20px; text-align: right"></col>
  44. <col style="width: 20px; text-align: right"></col>
  45. <thead>
  46. <tr>
  47. <th>Stage</th>
  48. <th>R</th>
  49. <th>W</th>
  50. </tr>
  51. </thead>
  52. <tbody>
  53. <?php foreach ($this->stages as $order_stage => $stage_name) : ?>
  54. <tr>
  55. <td><?php echo $stage_name ?></td>
  56. <td><input type="checkbox" name="order_stages[<?php echo $order_stage ?>][]" value="read" validate="strict" /></td>
  57. <td><input type="checkbox" name="order_stages[<?php echo $order_stage ?>][]" value="write" validate="strict" /></td>
  58. </tr>
  59. <?php endforeach ?>
  60. <tbody>
  61. </table>
  62. </div>
  63. </dd>
  64. <dt><label for="all_stores">All Stores</label></dt>
  65. <dd><input type="checkbox" name="all_stores" />
  66. <dt><label>Store Access</label></dt>
  67. <dd>
  68. <div style="width: 300px; height: 300px; display: inline-block; overflow: auto">
  69. <table id="store_access_table">
  70. <col></col>
  71. <col style="width: 20px; text-align: right"></col>
  72. <col style="width: 20px; text-align: right"></col>
  73. <thead>
  74. <tr>
  75. <th>Store</th>
  76. <th>R</th>
  77. <th>W</th>
  78. </tr>
  79. </thead>
  80. <tbody>
  81. <?php foreach ($this->stores as $store_code => $store_name) : ?>
  82. <tr>
  83. <td><?php echo $store_name ?></td>
  84. <td><input type="checkbox" name="store_access[<?php echo $store_code ?>][]" value="read" validate="strict" /></td>
  85. <td><input type="checkbox" name="store_access[<?php echo $store_code ?>][]" value="write" validate="strict" /></td>
  86. </tr>
  87. <?php endforeach ?>
  88. <tbody>
  89. </table>
  90. </div>
  91. <error for="store_access" class="error_icon"></error>
  92. <error for="store_access" validator="strict">Unknown elements found</error>
  93. </dd>
  94. </dl>
  95. </fieldset>
  96. <input type="submit" value="Save" />
  97. </form>
Add Comment
Please, Sign In to add comment