edit.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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">{:__('Name')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <div class="input-group">
  12. <input id="c-images" class="form-control" size="50" name="row[images]" type="textarea" value="{$row.images|htmlentities}">
  13. <div class="input-group-addon no-border no-padding">
  14. <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>
  15. <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>
  16. </div>
  17. <span class="msg-box n-right" for="c-images"></span>
  18. </div>
  19. <ul class="row list-inline faupload-preview" id="p-images"></ul>
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. <label class="control-label col-xs-12 col-sm-2">{:__('Activestarttime')}:</label>
  24. <div class="col-xs-12 col-sm-8">
  25. <input id="c-activestarttime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[activestarttime]" type="text" value="{:$row.activestarttime?datetime($row.activestarttime):''}">
  26. </div>
  27. </div>
  28. <div class="form-group">
  29. <label class="control-label col-xs-12 col-sm-2">{:__('Activeendtime')}:</label>
  30. <div class="col-xs-12 col-sm-8">
  31. <input id="c-activeendtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[activeendtime]" type="text" value="{:$row.activeendtime?datetime($row.activeendtime):''}">
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
  36. <div class="col-xs-12 col-sm-8">
  37. <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label class="control-label col-xs-12 col-sm-2">{:__('Pay_fee')}:</label>
  42. <div class="col-xs-12 col-sm-8">
  43. <input id="c-pay_fee" class="form-control" step="0.01" name="row[pay_fee]" type="number" value="{$row.pay_fee|htmlentities}">
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="control-label col-xs-12 col-sm-2">{:__('Is_show')}:</label>
  48. <div class="col-xs-12 col-sm-8">
  49. <select id="c-is_show" class="form-control selectpicker" name="row[is_show]">
  50. {foreach name="isShowList" item="vo"}
  51. <option value="{$key}" {in name="key" value="$row.is_show"}selected{/in}>{$vo}</option>
  52. {/foreach}
  53. </select>
  54. </div>
  55. </div>
  56. <div class="form-group">
  57. <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  58. <div class="col-xs-12 col-sm-8">
  59. <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <label class="control-label col-xs-12 col-sm-2">{:__('Tags')}:</label>
  64. <div class="col-xs-12 col-sm-8">
  65. <input id="c-tags" class="form-control" data-role="tagsinput" name="row[tags]" type="text" value="{$row.tags|htmlentities}">
  66. </div>
  67. </div>
  68. <div class="form-group layer-footer">
  69. <label class="control-label col-xs-12 col-sm-2"></label>
  70. <div class="col-xs-12 col-sm-8">
  71. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  72. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  73. </div>
  74. </div>
  75. </form>