userImage.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title> </title>
  5. </head>
  6. <body>
  7. <div id="userImagePage" data-role="page" class="page type-interior userProfilesConfigurationPage">
  8. <div data-role="content">
  9. <div class="content-primary">
  10. <div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
  11. <a href="#" onclick="Dashboard.navigate('editUser.html', true);" data-role="button">Profile</a>
  12. <a href="#" data-role="button" class="ui-btn-active">Image</a>
  13. <a href="#" data-role="button" onclick="Dashboard.navigate('updatePassword.html', true);">Password</a>
  14. <a href="#" data-role="button" onclick="Dashboard.navigate('library.html', true);">Media Library</a>
  15. </div>
  16. <div class="readOnlyContent">
  17. <p id="fldImage"></p>
  18. <p id="fldDeleteImage" style="display: none;">
  19. <button id="btnDeleteImage" type="button" data-icon="delete" onclick="UserImagePage.deleteImage();">
  20. Delete Image
  21. </button>
  22. </p>
  23. </div>
  24. <h2 id="headerUploadNewImage" style="display: none;">Upload New Image</h2>
  25. <form id="uploadUserImageForm">
  26. <ul data-role="listview" class="ulForm">
  27. <li id="fldNewImage">
  28. <p>1:1 Aspect Ratio Recommended</p>
  29. <input type="file" accept="image/*" id="uploadUserImage" name="uploadUserImage" onchange="UserImagePage.onFileUploadChange(this);" />
  30. <div id="userImageDropZone" class="imageDropZone">
  31. <h3>Drop Image Here (Chrome / Firefox / Safari)</h3>
  32. <output id="userImageOutput"></output>
  33. </div>
  34. </li>
  35. <li id="fldNewImagePreview"></li>
  36. <li id="fldUpload" style="display: none;">
  37. <button type="submit" data-icon="picture">Upload</button>
  38. </li>
  39. </ul>
  40. </form>
  41. </div>
  42. </div>
  43. <script type="text/javascript">
  44. $('#uploadUserImageForm').on('submit', UserImagePage.onSubmit);
  45. </script>
  46. </div>
  47. </body>
  48. </html>