add.html 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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">{:__('Realname')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-realname" data-rule="required" class="form-control" name="row[realname]" 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" 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">{:__('Age')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <input id="c-age" data-rule="required" class="form-control" name="row[age]" type="number" value="1">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('School_id')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-school_id" data-rule="required" data-source="school/index" data-field="schoolname" class="form-control selectpage" name="row[school_id]" type="text" value="">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Grade_id')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input id="c-grade_id" data-rule="required" data-source="grade/index" class="form-control selectpage" name="row[grade_id]" type="text" value="">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Classes_id')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <input id="c-classes_id" data-rule="required" data-source="classes/index" data-field="classname" class="form-control selectpage" name="row[classes_id]" type="text" value="">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Idcard')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <input id="c-idcard" class="form-control" name="row[idcard]" type="text" value="">
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. <input id="c-mobile" class="form-control" name="row[mobile]" type="text" value="">
  58. </div>
  59. </div>
  60. <div class="form-group">
  61. <label class="control-label col-xs-12 col-sm-2">{:__('Stu_mobile')}:</label>
  62. <div class="col-xs-12 col-sm-8">
  63. <input id="c-stu_mobile" class="form-control" name="row[stu_mobile]" type="text" value="">
  64. </div>
  65. </div>
  66. <div class="form-group">
  67. <label class="control-label col-xs-12 col-sm-2">{:__('Is_default')}:</label>
  68. <div class="col-xs-12 col-sm-8">
  69. <select id="c-is_default" data-rule="required" class="form-control selectpicker" name="row[is_default]">
  70. {foreach name="isDefaultList" item="vo"}
  71. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  72. {/foreach}
  73. </select>
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <input id="c-remark" class="form-control" name="row[remark]" type="text">
  80. </div>
  81. </div>
  82. <div class="form-group layer-footer">
  83. <label class="control-label col-xs-12 col-sm-2"></label>
  84. <div class="col-xs-12 col-sm-8">
  85. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  86. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  87. </div>
  88. </div>
  89. </form>