add.html 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <form id="add-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="">
  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="">
  12. </div>
  13. </div>
  14. <!--<div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Tag_ids')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-tag_ids" data-rule="required" data-source="coachtag/index" data-multiple="true" class="form-control selectpage" name="row[tag_ids]" type="text" value="">
  18. </div>
  19. </div>-->
  20. <!--<div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Desc')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-desc" class="form-control" name="row[desc]" type="text">
  24. </div>
  25. </div>-->
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Firstname')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-firstname" data-rule="required" class="form-control" name="row[firstname]" type="text" value="">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Lastname')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <input id="c-lastname" data-rule="required" class="form-control" name="row[lastname]" type="text" value="">
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <input id="c-password" data-rule="required" class="form-control" name="row[password]" type="password" value="">
  42. </div>
  43. </div>
  44. <!--<div class="form-group">
  45. <label class="control-label col-xs-12 col-sm-2">{:__('Salt')}:</label>
  46. <div class="col-xs-12 col-sm-8">
  47. <input id="c-salt" class="form-control" name="row[salt]" type="text" value="">
  48. </div>
  49. </div>-->
  50. <div class="form-group">
  51. <label class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
  52. <div class="col-xs-12 col-sm-8">
  53. <input id="c-email" data-rule="required" class="form-control" name="row[email]" type="text" value="">
  54. </div>
  55. </div>
  56. <!--<div class="form-group">
  57. <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  58. <div class="col-xs-12 col-sm-8">
  59. <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="">
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <label class="control-label col-xs-12 col-sm-2">{:__('Simplemobile')}:</label>
  64. <div class="col-xs-12 col-sm-8">
  65. <input id="c-simplemobile" class="form-control" name="row[simplemobile]" type="text" value="">
  66. </div>
  67. </div>-->
  68. <div class="form-group">
  69. <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
  70. <div class="col-xs-12 col-sm-8">
  71. <div class="input-group">
  72. <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="">
  73. <div class="input-group-addon no-border no-padding">
  74. <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>
  75. <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>
  76. </div>
  77. <span class="msg-box n-right" for="c-avatar"></span>
  78. </div>
  79. <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
  80. </div>
  81. </div>
  82. <!--<div class="form-group">
  83. <label class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
  84. <div class="col-xs-12 col-sm-8">
  85. <select id="c-gender" data-rule="required" min="0" class="form-control selectpicker" name="row[gender]">
  86. {foreach name="genderList" item="vo"}
  87. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  88. {/foreach}
  89. </select>
  90. </div>
  91. </div>
  92. <div class="form-group">
  93. <label class="control-label col-xs-12 col-sm-2">{:__('Successions')}:</label>
  94. <div class="col-xs-12 col-sm-8">
  95. <input id="c-successions" data-rule="required" min="0" class="form-control" name="row[successions]" type="number" value="1">
  96. </div>
  97. </div>
  98. <div class="form-group">
  99. <label class="control-label col-xs-12 col-sm-2">{:__('Maxsuccessions')}:</label>
  100. <div class="col-xs-12 col-sm-8">
  101. <input id="c-maxsuccessions" data-rule="required" min="0" class="form-control" name="row[maxsuccessions]" type="number" value="1">
  102. </div>
  103. </div>
  104. <div class="form-group">
  105. <label class="control-label col-xs-12 col-sm-2">{:__('Prevtime')}:</label>
  106. <div class="col-xs-12 col-sm-8">
  107. <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="{:date('Y-m-d H:i:s')}">
  108. </div>
  109. </div>
  110. <div class="form-group">
  111. <label class="control-label col-xs-12 col-sm-2">{:__('Logintime')}:</label>
  112. <div class="col-xs-12 col-sm-8">
  113. <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="{:date('Y-m-d H:i:s')}">
  114. </div>
  115. </div>
  116. <div class="form-group">
  117. <label class="control-label col-xs-12 col-sm-2">{:__('Loginip')}:</label>
  118. <div class="col-xs-12 col-sm-8">
  119. <input id="c-loginip" class="form-control" name="row[loginip]" type="text" value="">
  120. </div>
  121. </div>
  122. <div class="form-group">
  123. <label class="control-label col-xs-12 col-sm-2">{:__('Loginfailure')}:</label>
  124. <div class="col-xs-12 col-sm-8">
  125. <input id="c-loginfailure" data-rule="required" min="0" class="form-control" name="row[loginfailure]" type="number" value="0">
  126. </div>
  127. </div>
  128. <div class="form-group">
  129. <label class="control-label col-xs-12 col-sm-2">{:__('Joinip')}:</label>
  130. <div class="col-xs-12 col-sm-8">
  131. <input id="c-joinip" class="form-control" name="row[joinip]" type="text" value="">
  132. </div>
  133. </div>
  134. <div class="form-group">
  135. <label class="control-label col-xs-12 col-sm-2">{:__('Jointime')}:</label>
  136. <div class="col-xs-12 col-sm-8">
  137. <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="{:date('Y-m-d H:i:s')}">
  138. </div>
  139. </div>
  140. <div class="form-group">
  141. <label class="control-label col-xs-12 col-sm-2">{:__('Token')}:</label>
  142. <div class="col-xs-12 col-sm-8">
  143. <input id="c-token" class="form-control" name="row[token]" type="text" value="">
  144. </div>
  145. </div>-->
  146. <div class="form-group">
  147. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  148. <div class="col-xs-12 col-sm-8">
  149. <div class="radio">
  150. {foreach name="statusList" item="vo"}
  151. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
  152. {/foreach}
  153. </div>
  154. </div>
  155. </div>
  156. <div class="form-group">
  157. <label class="control-label col-xs-12 col-sm-2">{:__('Whatsapp')}:</label>
  158. <div class="col-xs-12 col-sm-8">
  159. <input id="c-whatsapp" data-rule="required" class="form-control" name="row[whatsapp]" type="text" value="">
  160. </div>
  161. </div>
  162. <div class="form-group">
  163. <label class="control-label col-xs-12 col-sm-2">{:__('Bgcolor')}:</label>
  164. <div class="col-xs-12 col-sm-8">
  165. <div class="radio">
  166. {foreach name="bgcolorList" item="vo"}
  167. <label for="row[bgcolor]-{$key}"><input id="row[bgcolor]-{$key}" name="row[bgcolor]" type="radio" value="{$vo}" /> <span style="background-color: {$vo}">{$vo}</span></label>
  168. {/foreach}
  169. </div>
  170. </div>
  171. </div>
  172. <div class="form-group layer-footer">
  173. <label class="control-label col-xs-12 col-sm-2"></label>
  174. <div class="col-xs-12 col-sm-8">
  175. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  176. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  177. </div>
  178. </div>
  179. </form>