add.html 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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">
  6. </div>
  7. </div>
  8. <!-- <div class='form-group'>
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Kind')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. </div>
  12. </div>-->
  13. <input id="c-kind" type="hidden" name="row[kind]" value="QUESTION">
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Parent_id')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <select id="c-parent_id" data-rule="required" class="form-control selectpicker" name="row[parent_id]">
  18. <option value="0" selected>无</option>
  19. {foreach name="parentList" item="vo"}
  20. <option data-type="{$vo.kind}" value="{$vo.id}">{$vo.name}</option>
  21. {/foreach}
  22. </select>
  23. <!--<input id="c-parent_id" data-source="exam/cate/selectpage" class="form-control selectpage" name="row[parent_id]"
  24. type="text" value="">-->
  25. </div>
  26. </div>
  27. <!--<div class="form-group">
  28. <label class="control-label col-xs-12 col-sm-2">{:__('Icon')}:</label>
  29. <div class="col-xs-12 col-sm-8">
  30. <div class="input-group">
  31. <input id="c-icon" class="form-control" name="row[icon]" type="text">
  32. <div class="input-group-addon no-border no-padding">
  33. <span><button type="button" id="plupload-icon" class="btn btn-danger plupload" data-input-id="c-icon" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-icon"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  34. <span><button type="button" id="fachoose-icon" class="btn btn-primary fachoose" data-input-id="c-icon" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  35. </div>
  36. <span class="msg-box n-right" for="c-icon"></span>
  37. </div>
  38. <ul class="row list-inline plupload-preview" id="p-icon"></ul>
  39. </div>
  40. </div>-->
  41. <div class="form-group">
  42. <label class="control-label col-xs-12 col-sm-2">{:__('Sort')}:</label>
  43. <div class="col-xs-12 col-sm-8">
  44. <input id="c-sort" data-rule="required" class="form-control" name="row[sort]" type="number" value="1">
  45. </div>
  46. </div>
  47. <!--<div class="form-group">
  48. <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
  49. <div class="col-xs-12 col-sm-8">
  50. <textarea id="c-remark" class="form-control editor" name="row[remark]"></textarea>
  51. </div>
  52. </div>-->
  53. <div class="form-group layer-footer">
  54. <label class="control-label col-xs-12 col-sm-2"></label>
  55. <div class="col-xs-12 col-sm-8">
  56. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  57. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  58. </div>
  59. </div>
  60. </form>