edit.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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">{:__('Username')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-username" class="form-control" name="row[username]" type="text" value="{$row.username|htmlentities}">
  6. </div>
  7. </div>
  8. <!-- <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <div class="input-group">
  12. <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar|htmlentities}">
  13. <div class="input-group-addon no-border no-padding">
  14. <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  15. <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  16. </div>
  17. <span class="msg-box n-right" for="c-avatar"></span>
  18. </div>
  19. <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
  20. </div>
  21. </div> -->
  22. <div class="form-group">
  23. <label class="control-label col-xs-12 col-sm-2">{:__('商品')}:</label>
  24. <div class="col-xs-12 col-sm-8">
  25. <select name="row[goods_id]" id="" class="form-control" value="$row.goods_id">
  26. {volist name="good" id="vo"}
  27. <option {if $row.goods_id == $vo.id}selected {/if} value="{$vo.id}">{$vo.goods_name}-{$vo.tag == "rare" ? "稀有" : "至尊"}</option>
  28. {/volist}
  29. opt+
  30. </select>
  31. </div>
  32. </div>
  33. <!--<div class="form-group">-->
  34. <!-- <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>-->
  35. <!-- <div class="col-xs-12 col-sm-8">-->
  36. <!-- <div class="input-group">-->
  37. <!-- <input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">-->
  38. <!-- <div class="input-group-addon no-border no-padding">-->
  39. <!-- <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>-->
  40. <!-- <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>-->
  41. <!-- </div>-->
  42. <!-- <span class="msg-box n-right" for="c-image"></span>-->
  43. <!-- </div>-->
  44. <!-- <ul class="row list-inline faupload-preview" id="p-image"></ul>-->
  45. <!-- </div>-->
  46. <!--</div>-->
  47. <div class="form-group" style="display: none">
  48. <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
  49. <div class="col-xs-12 col-sm-8">
  50. <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label class="control-label col-xs-12 col-sm-2">{:__('Add_time')}:</label>
  55. <div class="col-xs-12 col-sm-8">
  56. <input id="c-add_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[add_time]" type="text" value="{:$row.add_time?datetime($row.add_time):''}">
  57. </div>
  58. </div>
  59. <!--<div class="form-group">-->
  60. <!-- <label class="control-label col-xs-12 col-sm-2">{:__('Goods_name')}:</label>-->
  61. <!-- <div class="col-xs-12 col-sm-8">-->
  62. <!-- <input id="c-goods_name" class="form-control" name="row[goods_name]" type="text" value="{$row.goods_name|htmlentities}">-->
  63. <!-- </div>-->
  64. <!--</div>-->
  65. <div class="form-group layer-footer">
  66. <label class="control-label col-xs-12 col-sm-2"></label>
  67. <div class="col-xs-12 col-sm-8">
  68. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  69. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  70. </div>
  71. </div>
  72. </form>