add-bak.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <form id="question-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">{:__('Cate_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-cate_id" data-rule="required" data-source="exam/cate/selectpage" data-params='{"custom[kind]":"QUESTION"}' class="form-control selectpage" name="row[cate_id]" type="text" value="">
  6. </div>
  7. </div>
  8. <!--<div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Exam_type_id')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-exam_type_id" data-rule="required" data-source="exam_type/index" class="form-control selectpage" name="row[exam_type_id]" type="text" value="">
  12. </div>
  13. </div>-->
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <!--<input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text">-->
  18. <textarea id="c-title" data-rule="required" class="form-control editor" name="row[title]"></textarea>
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. <label class="control-label col-xs-12 col-sm-2">{:__('Explain')}:</label>
  23. <div class="col-xs-12 col-sm-8">
  24. <!-- <input id="c-explain" class="form-control" name="row[explain]" type="text">-->
  25. <textarea id="c-explain" class="form-control editor" name="row[explain]"></textarea>
  26. </div>
  27. </div>
  28. <div class="form-group">
  29. <label class="control-label col-xs-12 col-sm-2">{:__('Difficulty')}:</label>
  30. <div class="col-xs-12 col-sm-8">
  31. <select id="c-difficulty" data-rule="required" class="form-control selectpicker" name="row[difficulty]">
  32. {foreach name="difficultyList" item="vo"}
  33. <option value="{$key}" {in name="key" value="GENERAL"}selected{/in}>{$vo}</option>
  34. {/foreach}
  35. </select>
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Kind')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <!--<select id="c-kind" data-rule="required" class="form-control selectpicker" name="row[kind]">
  42. {foreach name="kindList" item="vo"}
  43. <option value="{$key}" {in name="key" value="JUDGE"}selected{/in}>{$vo}</option>
  44. {/foreach}
  45. </select>-->
  46. <div class="radio">
  47. {foreach name="kindList" item="vo"}
  48. <label for="row[kind]-{$key}">
  49. <input id="row[kind]-{$key}" name="row[kind]" type="radio" value="{$key}" {in name="key" value="SINGLE" }checked{/in} /> {$vo}
  50. </label>
  51. {/foreach}
  52. </div>
  53. </div>
  54. </div>
  55. <div class="form-group">
  56. <label class="control-label col-xs-12 col-sm-2">{:__('Options_json')}:</label>
  57. <div class="col-xs-12 col-sm-8">
  58. <dl class="fieldlist" data-name="row[options_json]">
  59. <dd>
  60. <ins>{:__('Key')}</ins>
  61. <ins>{:__('Value')}</ins>
  62. </dd>
  63. <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
  64. <textarea name="row[options_json]" class="form-control hide" cols="30" rows="5"></textarea>
  65. </dl>
  66. <textarea id="c-options_img" name="row[options_img]" class="form-control hide" cols="30" rows="5"></textarea>
  67. </div>
  68. </div>
  69. <div class="form-group">
  70. <label class="control-label col-xs-12 col-sm-2">{:__('Answer')}:</label>
  71. <div class="col-xs-12 col-sm-8">
  72. <input id="c-answer" data-rule="required" class="form-control" name="row[answer]" type="text" readonly="readonly">
  73. </div>
  74. </div>
  75. <div class="form-group">
  76. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  77. <div class="col-xs-12 col-sm-8">
  78. <div class="radio">
  79. {foreach name="statusList" item="vo"}
  80. <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>
  81. {/foreach}
  82. </div>
  83. </div>
  84. </div>
  85. <div class="form-group layer-footer">
  86. <label class="control-label col-xs-12 col-sm-2"></label>
  87. <div class="col-xs-12 col-sm-8">
  88. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  89. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  90. </div>
  91. </div>
  92. </form>
  93. <style>
  94. .m-l-5 {
  95. margin-left: 5px;
  96. }
  97. </style>