Advertisement
Guest User

Untitled

a guest
Nov 19th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. <!-- Add Client Example Dialog -->
  2. <div style="display: none;" id="dialog_add_client" title="Add Client Example Dialog">
  3. <form action="" class="full validate">
  4. <div class="row">
  5. <label for="d2_username">
  6. <strong>Username</strong>
  7. </label>
  8. <div>
  9. <input class="required" type=text name=d2_username id=d2_username />
  10. </div>
  11. </div>
  12. <div class="row">
  13. <label for="d2_email">
  14. <strong>Email Address</strong>
  15. </label>
  16. <div>
  17. <input class="required" type=text name=d2_email id=d2_email />
  18. </div>
  19. </div>
  20. <div class="row">
  21. <label for="d2_role">
  22. <strong>Role</strong>
  23. </label>
  24. <div>
  25. <select style="padding-bottom: 10px" name=d2_role id=d2_role class="search required" data-placeholder="Choose a Role">
  26. <option value=""></option>
  27. <option value="Applicant">Applicant</option>
  28. <option value="Member">Member</option>
  29. <option value="Moderator">Moderator</option>
  30. <option value="Administrator">Administrator</option>
  31. </select>
  32. </div>
  33. </div>
  34. </form>
  35. <div class="actions">
  36. <div class="left">
  37. <button class="grey cancel">Cancel</button>
  38. </div>
  39. <div class="right">
  40. <button class="submit">Add User</button>
  41. </div>
  42. </div>
  43. </div><!-- End if #dialog_add_client -->
  44.  
  45. <script>
  46. $$.ready(function() {
  47. $( "#dialog_add_client" ).dialog({
  48. autoOpen: false,
  49. modal: true,
  50. width: 400,
  51. open: function(){ $(this).parent().css('overflow', 'visible'); $$.utils.forms.resize() }
  52. }).find('button.submit').click(function(){
  53. var $el = $(this).parents('.ui-dialog-content');
  54. if ($el.validate().form()) {
  55. $el.find('form')[0].reset();
  56. $el.dialog('close');
  57. }
  58. }).end().find('button.cancel').click(function(){
  59. var $el = $(this).parents('.ui-dialog-content');
  60. $el.find('form')[0].reset();
  61. $el.dialog('close');;
  62. });
  63.  
  64. $( ".open-add-client-dialog" ).click(function() {
  65. $( "#dialog_add_client" ).dialog( "open" );
  66. return false;
  67. });
  68. });
  69. </script>
  70. <!-- End of Add Client Example Dialog -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement