index.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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-4">
  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|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}" disabled/>
  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 class="col-md-8">
  83. <div class="panel panel-default panel-intro panel-nav">
  84. <div class="panel-heading">
  85. <ul class="nav nav-tabs">
  86. <li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-list"></i> {:__('Admin log')}</a></li>
  87. </ul>
  88. </div>
  89. <div class="panel-body">
  90. <div id="myTabContent" class="tab-content">
  91. <div class="tab-pane fade active in" id="one">
  92. <div class="widget-body no-padding">
  93. <div id="toolbar" class="toolbar">
  94. {:build_toolbar('refresh')}
  95. </div>
  96. <table id="table" class="table table-striped table-bordered table-hover table-nowrap" width="100%">
  97. </table>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>