edit.html 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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">{:__('Product_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-product_id" data-rule="required" disabled data-field="title" data-source="unishop/product/index" class="form-control selectpage" name="row[product_id]" type="text" value="{$row.product_id}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-user_id" data-rule="required" disabled data-source="user/user/index" data-field="username" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Order_id')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-order_id" data-rule="" disabled class="form-control" name="row[order_id]" type="text" value="{$row.order_id}">
  18. </div>
  19. </div>
  20. <!--<div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Spec')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-spec" data-rule="" class="form-control" name="row[spec]" type="text" value="{$row.spec}">
  24. </div>
  25. </div>-->
  26. <!--<div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Anonymous')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <select id="c-anonymous" data-rule="required" class="form-control selectpicker" name="row[anonymous]">
  30. {foreach name="anonymousList" item="vo"}
  31. <option value="{$key}" {in name="key" value="$row.anonymous"}selected{/in}>{$vo}</option>
  32. {/foreach}
  33. </select>
  34. </div>
  35. </div>-->
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Comment')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input id="c-comment" data-rule="required" class="form-control" name="row[comment]" type="text" value="{$row.comment}">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Rate')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <select id="c-rate" data-rule="required" class="form-control selectpicker" name="row[rate]">
  46. {foreach name="rateList" item="vo"}
  47. <option value="{$key}" {in name="key" value="$row.rate"}selected{/in}>{$vo}</option>
  48. {/foreach}
  49. </select>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <div class="input-group">
  56. <input id="c-images" class="form-control" size="50" name="row[images]" type="textarea" value="{$row.images|htmlentities}">
  57. <div class="input-group-addon no-border no-padding">
  58. <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" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  59. <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>
  60. </div>
  61. <span class="msg-box n-right" for="c-images"></span>
  62. </div>
  63. <ul class="row list-inline faupload-preview" id="p-images"></ul>
  64. </div>
  65. </div>
  66. <div class="form-group">
  67. <label class="control-label col-xs-12 col-sm-2">{:__('Toptime')}:</label>
  68. <div class="col-xs-12 col-sm-8">
  69. {:build_radios('row[toptime]', [($row['toptime']?$row['toptime']:time())=>__('Yes'), '0'=>__('No')], $row['toptime'])}
  70. </div>
  71. </div>
  72. <div class="form-group layer-footer">
  73. <label class="control-label col-xs-12 col-sm-2"></label>
  74. <div class="col-xs-12 col-sm-8">
  75. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  76. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  77. </div>
  78. </div>
  79. </form>