add.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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">{:__('User_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Truename')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-truename" class="form-control" name="row[truename]" type="text" value="">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <select id="c-gender" data-rule="required" min="0" class="form-control selectpicker" name="row[gender]">
  18. {foreach name="genderList" item="vo"}
  19. <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
  20. {/foreach}
  21. </select>
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Birthday')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-birthday" class="form-control" name="row[birthday]" type="text" value="">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input id="c-address" class="form-control" name="row[address]" type="text" value="">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Jiankang')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <input id="c-jiankang" class="form-control" name="row[jiankang]" type="text" value="">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Shequ')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <input id="c-shequ" class="form-control" name="row[shequ]" type="text" value="">
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. <div class="radio">
  58. {foreach name="statusList" item="vo"}
  59. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  60. {/foreach}
  61. </div>
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <input id="c-remark" class="form-control" name="row[remark]" type="text" value="">
  68. </div>
  69. </div>
  70. <div class="form-group layer-footer">
  71. <label class="control-label col-xs-12 col-sm-2"></label>
  72. <div class="col-xs-12 col-sm-8">
  73. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  74. </div>
  75. </div>
  76. </form>