edit.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <form id="edit-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="{$row.user_id|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Cate_id')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-cate_id" data-rule="required" min="0" data-source="cate/index" class="form-control selectpage" name="row[cate_id]" type="text" value="{$row.cate_id|htmlentities}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Room_id')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-room_id" data-rule="required" min="0" data-source="room/index" class="form-control selectpage" name="row[room_id]" type="text" value="{$row.room_id|htmlentities}">
  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" min="0" data-source="paper/index" class="form-control selectpage" name="row[paper_id]" type="text" value="{$row.paper_id|htmlentities}">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-score" data-rule="required" min="0" class="form-control" name="row[score]" type="number" value="{$row.score|htmlentities}">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Is_pass')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <select id="c-is_pass" data-rule="required" class="form-control selectpicker" name="row[is_pass]">
  36. {foreach name="isPassList" item="vo"}
  37. <option value="{$key}" {in name="key" value="$row.is_pass"}selected{/in}>{$vo}</option>
  38. {/foreach}
  39. </select>
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Is_makeup')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <select id="c-is_makeup" data-rule="required" class="form-control selectpicker" name="row[is_makeup]">
  46. {foreach name="isMakeupList" item="vo"}
  47. <option value="{$key}" {in name="key" value="$row.is_makeup"}selected{/in}>{$vo}</option>
  48. {/foreach}
  49. </select>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Total_score')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <input id="c-total_score" data-rule="required" class="form-control" name="row[total_score]" type="number" value="{$row.total_score|htmlentities}">
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-2">{:__('Total_count')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <input id="c-total_count" data-rule="required" class="form-control" name="row[total_count]" type="number" value="{$row.total_count|htmlentities}">
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('Right_count')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <input id="c-right_count" data-rule="required" class="form-control" name="row[right_count]" type="number" value="{$row.right_count|htmlentities}">
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-2">{:__('Error_count')}:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. <input id="c-error_count" data-rule="required" class="form-control" name="row[error_count]" type="number" value="{$row.error_count|htmlentities}">
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label class="control-label col-xs-12 col-sm-2">{:__('Rank')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <input id="c-rank" data-rule="required" class="form-control" name="row[rank]" type="number" value="{$row.rank|htmlentities}">
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="control-label col-xs-12 col-sm-2">{:__('Grade_time')}:</label>
  84. <div class="col-xs-12 col-sm-8">
  85. <input id="c-grade_time" data-rule="required" min="0" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[grade_time]" type="text" value="{:$row.grade_time?datetime($row.grade_time):''}">
  86. </div>
  87. </div>
  88. <div class="form-group layer-footer">
  89. <label class="control-label col-xs-12 col-sm-2"></label>
  90. <div class="col-xs-12 col-sm-8">
  91. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  92. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  93. </div>
  94. </div>
  95. </form>