add.html 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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">{:__('Company_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-company_id" data-rule="required" data-source="company/index" class="form-control selectpage" name="row[company_id]" type="text" value="">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-username" class="form-control" name="row[username]" type="text" value="">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-nickname" class="form-control" name="row[nickname]" type="text" value="">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Gonghao')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-gonghao" class="form-control" name="row[gonghao]" type="text" value="">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <input id="c-password" class="form-control" name="row[password]" type="text" value="">
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Salt')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <input id="c-salt" class="form-control" name="row[salt]" type="text" value="">
  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="">
  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">{:__('Loginfailure')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <input id="c-loginfailure" data-rule="required" min="0" class="form-control" name="row[loginfailure]" type="number" value="0">
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('Logintime')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <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')}">
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-2">{:__('Loginip')}:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. <input id="c-loginip" class="form-control" name="row[loginip]" type="text">
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label class="control-label col-xs-12 col-sm-2">{:__('Token')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <input id="c-token" class="form-control" name="row[token]" type="text" value="">
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  84. <div class="col-xs-12 col-sm-8">
  85. <div class="radio">
  86. {foreach name="statusList" item="vo"}
  87. <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>
  88. {/foreach}
  89. </div>
  90. </div>
  91. </div>
  92. <div class="form-group">
  93. <label class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
  94. <div class="col-xs-12 col-sm-8">
  95. <input id="c-email" class="form-control" name="row[email]" type="text" value="">
  96. </div>
  97. </div>
  98. <div class="form-group">
  99. <label class="control-label col-xs-12 col-sm-2">{:__('Is_kefu')}:</label>
  100. <div class="col-xs-12 col-sm-8">
  101. <select id="c-is_kefu" data-rule="required" class="form-control selectpicker" name="row[is_kefu]">
  102. {foreach name="isKefuList" item="vo"}
  103. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  104. {/foreach}
  105. </select>
  106. </div>
  107. </div>
  108. <div class="form-group layer-footer">
  109. <label class="control-label col-xs-12 col-sm-2"></label>
  110. <div class="col-xs-12 col-sm-8">
  111. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  112. </div>
  113. </div>
  114. </form>