edit.html 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. <!--<div class="form-group">
  3. <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-username" class="form-control" name="row[username]" type="text" value="{$row.username|htmlentities}">
  6. </div>
  7. </div>-->
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
  12. </div>
  13. </div>
  14. <!--<div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Desc')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-desc" class="form-control" name="row[desc]" type="text" value="{$row.desc|htmlentities}">
  18. </div>
  19. </div>-->
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-password" class="form-control" name="row[password]" type="text" value="" placeholder="{:__('Leave password blank if dont want to change')}">
  24. </div>
  25. </div>
  26. <!--<div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Salt')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-salt" class="form-control" name="row[salt]" type="text" value="{$row.salt|htmlentities}">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <input id="c-email" class="form-control" name="row[email]" type="text" value="{$row.email|htmlentities}">
  36. </div>
  37. </div>-->
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
  46. <div class="col-xs-12 col-sm-8">
  47. <div class="input-group">
  48. <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar|htmlentities}">
  49. <div class="input-group-addon no-border no-padding">
  50. <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  51. <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  52. </div>
  53. <span class="msg-box n-right" for="c-avatar"></span>
  54. </div>
  55. <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
  56. </div>
  57. </div>
  58. <!--<div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <select id="c-gender" data-rule="required" min="0" class="form-control selectpicker" name="row[gender]">
  62. {foreach name="genderList" item="vo"}
  63. <option value="{$key}" {in name="key" value="$row.gender"}selected{/in}>{$vo}</option>
  64. {/foreach}
  65. </select>
  66. </div>
  67. </div>
  68. <div class="form-group">
  69. <label class="control-label col-xs-12 col-sm-2">{:__('Successions')}:</label>
  70. <div class="col-xs-12 col-sm-8">
  71. <input id="c-successions" data-rule="required" min="0" class="form-control" name="row[successions]" type="number" value="{$row.successions|htmlentities}">
  72. </div>
  73. </div>
  74. <div class="form-group">
  75. <label class="control-label col-xs-12 col-sm-2">{:__('Maxsuccessions')}:</label>
  76. <div class="col-xs-12 col-sm-8">
  77. <input id="c-maxsuccessions" data-rule="required" min="0" class="form-control" name="row[maxsuccessions]" type="number" value="{$row.maxsuccessions|htmlentities}">
  78. </div>
  79. </div>
  80. <div class="form-group">
  81. <label class="control-label col-xs-12 col-sm-2">{:__('Prevtime')}:</label>
  82. <div class="col-xs-12 col-sm-8">
  83. <input id="c-prevtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[prevtime]" type="text" value="{:$row.prevtime?datetime($row.prevtime):''}">
  84. </div>
  85. </div>
  86. <div class="form-group">
  87. <label class="control-label col-xs-12 col-sm-2">{:__('Logintime')}:</label>
  88. <div class="col-xs-12 col-sm-8">
  89. <input id="c-logintime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[logintime]" type="text" value="{:$row.logintime?datetime($row.logintime):''}">
  90. </div>
  91. </div>
  92. <div class="form-group">
  93. <label class="control-label col-xs-12 col-sm-2">{:__('Loginip')}:</label>
  94. <div class="col-xs-12 col-sm-8">
  95. <input id="c-loginip" class="form-control" name="row[loginip]" type="text" value="{$row.loginip|htmlentities}">
  96. </div>
  97. </div>
  98. <div class="form-group">
  99. <label class="control-label col-xs-12 col-sm-2">{:__('Loginfailure')}:</label>
  100. <div class="col-xs-12 col-sm-8">
  101. <input id="c-loginfailure" data-rule="required" min="0" class="form-control" name="row[loginfailure]" type="number" value="{$row.loginfailure|htmlentities}">
  102. </div>
  103. </div>
  104. <div class="form-group">
  105. <label class="control-label col-xs-12 col-sm-2">{:__('Joinip')}:</label>
  106. <div class="col-xs-12 col-sm-8">
  107. <input id="c-joinip" class="form-control" name="row[joinip]" type="text" value="{$row.joinip|htmlentities}">
  108. </div>
  109. </div>
  110. <div class="form-group">
  111. <label class="control-label col-xs-12 col-sm-2">{:__('Jointime')}:</label>
  112. <div class="col-xs-12 col-sm-8">
  113. <input id="c-jointime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[jointime]" type="text" value="{:$row.jointime?datetime($row.jointime):''}">
  114. </div>
  115. </div>
  116. <div class="form-group">
  117. <label class="control-label col-xs-12 col-sm-2">{:__('Token')}:</label>
  118. <div class="col-xs-12 col-sm-8">
  119. <input id="c-token" class="form-control" name="row[token]" type="text" value="{$row.token|htmlentities}">
  120. </div>
  121. </div>-->
  122. <div class="form-group">
  123. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  124. <div class="col-xs-12 col-sm-8">
  125. <div class="radio">
  126. {foreach name="statusList" item="vo"}
  127. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
  128. {/foreach}
  129. </div>
  130. </div>
  131. </div>
  132. <div class="form-group layer-footer">
  133. <label class="control-label col-xs-12 col-sm-2"></label>
  134. <div class="col-xs-12 col-sm-8">
  135. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  136. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  137. </div>
  138. </div>
  139. </form>