index.html 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <style>
  2. .profile-avatar-container {
  3. position: relative;
  4. width: 100px;
  5. margin: 0 auto;
  6. }
  7. .profile-avatar-container .profile-user-img {
  8. width: 100px;
  9. height: 100px;
  10. }
  11. .profile-avatar-container .profile-avatar-text {
  12. display: none;
  13. }
  14. .profile-avatar-container:hover .profile-avatar-text {
  15. display: block;
  16. position: absolute;
  17. height: 100px;
  18. width: 100px;
  19. background: #444;
  20. opacity: .6;
  21. color: #fff;
  22. top: 0;
  23. left: 0;
  24. line-height: 100px;
  25. text-align: center;
  26. }
  27. .profile-avatar-container button {
  28. position: absolute;
  29. top: 0;
  30. left: 0;
  31. width: 100px;
  32. height: 100px;
  33. opacity: 0;
  34. }
  35. </style>
  36. <div class="row animated fadeInRight">
  37. <div class="col-md-6 col-md-offset-3 col-lg-5 col-lg-offset-3">
  38. <div class="box box-primary">
  39. <div class="panel-heading">
  40. {:__('Profile')}
  41. </div>
  42. <div class="panel-body">
  43. <form id="update-form" role="form" data-toggle="validator" method="POST" action="{:url('general.profile/update')}">
  44. {:token()}
  45. <input type="hidden" id="c-avatar" name="row[avatar]" value="{$admin.avatar_raw|default=''|htmlentities}"/>
  46. <div class="box-body box-profile">
  47. <div class="profile-avatar-container">
  48. <img class="profile-user-img img-responsive img-circle" src="{$admin.avatar|cdnurl|htmlentities}" alt="">
  49. <div class="profile-avatar-text img-circle">{:__('Click to edit')}</div>
  50. <button type="button" id="faupload-avatar" class="faupload" data-input-id="c-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button>
  51. </div>
  52. <h3 class="profile-username text-center">{$admin.nickname|htmlentities}</h3>
  53. <div class="form-group">
  54. <label for="username" class="control-label">{:__('Username')}:</label>
  55. <input type="text" class="form-control" id="username" name="row[username]" value="{$admin.username|htmlentities}" disabled/>
  56. </div>
  57. <div class="form-group">
  58. <label for="mobile" class="control-label">{:__('Mobile')}:</label>
  59. <input type="text" class="form-control" id="mobile" name="row[mobile]" value="{$admin.mobile|htmlentities}" maxlength="11" placeholder="11位手机号,用于开标验证等短信通知" data-rule="mobile"/>
  60. </div>
  61. <div class="form-group">
  62. <label for="email" class="control-label">{:__('Email')}:</label>
  63. <input type="text" class="form-control" id="email" name="row[email]" value="{$admin.email|htmlentities}" data-rule="required;email"/>
  64. </div>
  65. <div class="form-group">
  66. <label for="nickname" class="control-label">{:__('Nickname')}:</label>
  67. <input type="text" class="form-control" id="nickname" name="row[nickname]" value="{$admin.nickname|htmlentities}" data-rule="required"/>
  68. </div>
  69. <div class="form-group">
  70. <label for="password" class="control-label">{:__('Password')}:</label>
  71. <input type="password" class="form-control" id="password" placeholder="{:__('Leave password blank if dont want to change')}" autocomplete="new-password" name="row[password]" value="" data-rule="password"/>
  72. </div>
  73. <div class="form-group">
  74. <button type="submit" class="btn btn-primary">{:__('Submit')}</button>
  75. <button type="reset" class="btn btn-default">{:__('Reset')}</button>
  76. </div>
  77. </div>
  78. </form>
  79. </div>
  80. </div>
  81. </div>
  82. </div>