index.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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.username|htmlentities}</h3>
  53. <p class="text-muted text-center">{$admin.email|htmlentities}</p>
  54. <div class="form-group">
  55. <label for="username" class="control-label">{:__('Username')}:</label>
  56. <input type="text" class="form-control" id="username" name="row[username]" value="{$admin.username|htmlentities}" disabled/>
  57. </div>
  58. <div class="form-group">
  59. <label for="email" class="control-label">{:__('Email')}:</label>
  60. <input type="text" class="form-control" id="email" name="row[email]" value="{$admin.email|htmlentities}" data-rule="required;email"/>
  61. </div>
  62. <div class="form-group">
  63. <label for="nickname" class="control-label">{:__('Nickname')}:</label>
  64. <input type="text" class="form-control" id="nickname" name="row[nickname]" value="{$admin.nickname|htmlentities}" data-rule="required"/>
  65. </div>
  66. <div class="form-group">
  67. <label for="password" class="control-label">{:__('Password')}:</label>
  68. <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"/>
  69. </div>
  70. <div class="form-group">
  71. <button type="submit" class="btn btn-primary">{:__('Submit')}</button>
  72. <button type="reset" class="btn btn-default">{:__('Reset')}</button>
  73. </div>
  74. </div>
  75. </form>
  76. </div>
  77. </div>
  78. </div>
  79. <div class="col-md-8">
  80. <div class="panel panel-default panel-intro panel-nav">
  81. <div class="panel-heading">
  82. <ul class="nav nav-tabs">
  83. <li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-list"></i> {:__('Admin log')}</a></li>
  84. </ul>
  85. </div>
  86. <div class="panel-body">
  87. <div id="myTabContent" class="tab-content">
  88. <div class="tab-pane fade active in" id="one">
  89. <div class="widget-body no-padding">
  90. <div id="toolbar" class="toolbar">
  91. {:build_toolbar('refresh')}
  92. </div>
  93. <table id="table" class="table table-striped table-bordered table-hover table-nowrap" width="100%">
  94. </table>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. </div>