edit.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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">{:__('User_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Coin_amount')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-coin_amount" class="form-control" name="row[coin_amount]" type="number" value="{$row.coin_amount|htmlentities}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Rmb_amount')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-rmb_amount" class="form-control" step="0.01" name="row[rmb_amount]" type="number" value="{$row.rmb_amount|htmlentities}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Pay_method')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <select id="c-pay_method" class="form-control selectpicker" name="row[pay_method]">
  24. {foreach name="payMethodList" item="vo"}
  25. <option value="{$key}" {in name="key" value="$row.pay_method"}selected{/in}>{$vo}</option>
  26. {/foreach}
  27. </select>
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Pay_rmb')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-pay_rmb" class="form-control" step="0.01" name="row[pay_rmb]" type="number" value="{$row.pay_rmb|htmlentities}">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Out_trade_no')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input id="c-out_trade_no" data-rule="required" class="form-control" name="row[out_trade_no]" type="text" value="{$row.out_trade_no|htmlentities}">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Transaction_id')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <input id="c-transaction_id" data-rule="required" data-source="transaction/index" class="form-control selectpage" name="row[transaction_id]" type="text" value="{$row.transaction_id|htmlentities}">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Pay_time')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <input id="c-pay_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_time]" type="text" value="{:$row.pay_time?datetime($row.pay_time):''}">
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. <div class="radio">
  58. {foreach name="statusList" item="vo"}
  59. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
  60. {/foreach}
  61. </div>
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('Backend_read')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <input id="c-backend_read" class="form-control" name="row[backend_read]" type="number" value="{$row.backend_read|htmlentities}">
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. <input id="c-create_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:$row.create_time?datetime($row.create_time):''}">
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label class="control-label col-xs-12 col-sm-2">{:__('Update_time')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <input id="c-update_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[update_time]" type="text" value="{:$row.update_time?datetime($row.update_time):''}">
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="control-label col-xs-12 col-sm-2">{:__('Delete_time')}:</label>
  84. <div class="col-xs-12 col-sm-8">
  85. <input id="c-delete_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[delete_time]" type="text" value="{:$row.delete_time?datetime($row.delete_time):''}">
  86. </div>
  87. </div>
  88. <div class="form-group layer-footer">
  89. <label class="control-label col-xs-12 col-sm-2"></label>
  90. <div class="col-xs-12 col-sm-8">
  91. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  92. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  93. </div>
  94. </div>
  95. </form>