edit-bak.html 5.0 KB

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