edit.html 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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">{:__('Images')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <div class="input-group">
  6. <input id="c-images" class="form-control" size="50" name="row[images]" type="text" value="{$row.images|htmlentities}">
  7. <div class="input-group-addon no-border no-padding">
  8. <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  9. <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  10. </div>
  11. <span class="msg-box n-right" for="c-images"></span>
  12. </div>
  13. <ul class="row list-inline faupload-preview" id="p-images"></ul>
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label class="control-label col-xs-12 col-sm-2">{:__('Video_file')}:</label>
  18. <div class="col-xs-12 col-sm-8">
  19. <div class="input-group">
  20. <input id="c-video_file" class="form-control" size="50" name="row[video_file]" type="text" value="{$row.video_file|htmlentities}">
  21. <div class="input-group-addon no-border no-padding">
  22. <span><button type="button" id="faupload-video_file" class="btn btn-danger faupload" data-input-id="c-video_file" data-multiple="false" data-preview-id="p-video_file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  23. <span><button type="button" id="fachoose-video_file" class="btn btn-primary fachoose" data-input-id="c-video_file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  24. </div>
  25. <span class="msg-box n-right" for="c-video_file"></span>
  26. </div>
  27. <ul class="row list-inline faupload-preview" id="p-video_file"></ul>
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Is_show')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <select id="c-is_show" data-rule="required" class="form-control selectpicker" name="row[is_show]">
  34. {foreach name="isShowList" item="vo"}
  35. <option value="{$key}" {in name="key" value="$row.is_show"}selected{/in}>{$vo}</option>
  36. {/foreach}
  37. </select>
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
  42. <div class="col-xs-12 col-sm-8">
  43. <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
  44. {foreach name="typeList" item="vo"}
  45. <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
  46. {/foreach}
  47. </select>
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label class="control-label col-xs-12 col-sm-2">{:__('Minsecond')}:</label>
  52. <div class="col-xs-12 col-sm-8">
  53. <input id="c-minsecond" class="form-control" name="row[minsecond]" type="number" value="{$row.minsecond|htmlentities}">
  54. </div>
  55. </div>
  56. <div class="form-group layer-footer">
  57. <label class="control-label col-xs-12 col-sm-2"></label>
  58. <div class="col-xs-12 col-sm-8">
  59. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  60. </div>
  61. </div>
  62. </form>