add.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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">{:__('Name')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Contents')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-contents" data-rule="required" class="form-control" name="row[contents]" type="text" value="">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Cate_id')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-cate_id" data-rule="required" data-source="exam/cate/selectpage" data-params='{"custom[kind]":"ROOM","isTree":true}' class="form-control selectpage" name="row[cate_id]" type="text" value="">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Paper_id')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-paper_id" data-rule="required" data-source="exam/paper/index" data-params='{"custom[status]":"NORMAL"}' data-field="title" class="form-control selectpage" name="row[paper_id]" type="text" value="">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('People_count')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-people_count" data-rule="required" min="0" class="form-control" name="row[people_count]" type="number" value="0" placeholder="填0不限制人数">
  30. <p style="color: #aaa">注:限制考场人数填0时为不限制人数</p>
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
  35. <div class="col-xs-12 col-sm-8">
  36. <input id="c-start_time" data-rule="required;match(lte, row[end_time], date);" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
  41. <div class="col-xs-12 col-sm-8">
  42. <input id="c-end_time" data-rule="required;match(gte, row[start_time], date);" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="">
  43. </div>
  44. </div>
  45. <div class="form-group">
  46. <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  47. <div class="col-xs-12 col-sm-8">
  48. <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="1">
  49. </div>
  50. </div>
  51. <div class="form-group">
  52. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  53. <div class="col-xs-12 col-sm-8">
  54. <div class="radio">
  55. {foreach name="statusList" item="vo"}
  56. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="NORMAL"}checked{/in} /> {$vo}</label>
  57. {/foreach}
  58. </div>
  59. </div>
  60. </div>
  61. <div class="form-group">
  62. <label class="control-label col-xs-12 col-sm-2">{:__('Signup_mode')}:</label>
  63. <div class="col-xs-12 col-sm-8">
  64. <div class="radio">
  65. {foreach name="signupModeList" item="vo"}
  66. <label for="row[signup_mode]-{$key}">
  67. <input id="row[signup_mode]-{$key}" name="row[signup_mode]" type="radio" value="{$key}" {in name="key" value="NORMAL" }checked{/in} /> {$vo}
  68. </label>
  69. {/foreach}
  70. </div>
  71. </div>
  72. </div>
  73. <div class="form-group password">
  74. <label class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
  75. <div class="col-xs-12 col-sm-8">
  76. <input id="c-password" class="form-control" name="row[password]" type="text" value="">
  77. </div>
  78. </div>
  79. <div class="form-group">
  80. <label class="control-label col-xs-12 col-sm-2">{:__('Is_makeup')}:</label>
  81. <div class="col-xs-12 col-sm-8">
  82. <div class="radio">
  83. {foreach name="isMakeupList" item="vo"}
  84. <label for="row[is_makeup]-{$key}">
  85. <input id="row[is_makeup]-{$key}" name="row[is_makeup]" type="radio" value="{$key}" {in name="key" value="0" }checked{/in} /> {$vo}
  86. </label>
  87. {/foreach}
  88. </div>
  89. </div>
  90. </div>
  91. <div class="form-group makeup_count">
  92. <label class="control-label col-xs-12 col-sm-2">{:__('Makeup_count')}:</label>
  93. <div class="col-xs-12 col-sm-8">
  94. <input id="c-makeup_count" class="form-control" name="row[makeup_count]" type="number" value="0" min="0">
  95. <p style="color: #aaa">注:开启补考模式,补考次数最低为1</p>
  96. </div>
  97. </div>
  98. <div class="form-group layer-footer">
  99. <label class="control-label col-xs-12 col-sm-2"></label>
  100. <div class="col-xs-12 col-sm-8">
  101. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  102. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  103. </div>
  104. </div>
  105. </form>