edit.html 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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">{:__('Order_no')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-order_no" data-rule="required" class="form-control" name="row[order_no]" type="text" value="{$row.order_no|htmlentities}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-money" data-rule="required" class="form-control" step="0.01" name="row[money]" type="number" value="{$row.money|htmlentities}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Purpose')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <select id="c-purpose" data-rule="required" class="form-control selectpicker" name="row[purpose]">
  24. {foreach name="purposeList" item="vo"}
  25. <option value="{$key}" {in name="key" value="$row.purpose"}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_type')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-pay_type" data-rule="required" class="form-control" name="row[pay_type]" type="text" value="{$row.pay_type|htmlentities}">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Relation_id')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input id="c-relation_id" data-rule="required" data-source="relation/index" class="form-control selectpage" name="row[relation_id]" type="text" value="{$row.relation_id|htmlentities}">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Refund_no')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <input id="c-refund_no" data-rule="required" class="form-control" name="row[refund_no]" type="text" value="{$row.refund_no|htmlentities}">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Transaction_id')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <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}">
  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">{:__('Pay_status')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <div class="radio">
  68. {foreach name="payStatusList" item="vo"}
  69. <label for="row[pay_status]-{$key}"><input id="row[pay_status]-{$key}" name="row[pay_status]" type="radio" value="{$key}" {in name="key" value="$row.pay_status"}checked{/in} /> {$vo}</label>
  70. {/foreach}
  71. </div>
  72. </div>
  73. </div>
  74. <div class="form-group">
  75. <label class="control-label col-xs-12 col-sm-2">{:__('Diversionfst')}:</label>
  76. <div class="col-xs-12 col-sm-8">
  77. <input id="c-diversionfst" class="form-control" name="row[diversionfst]" type="text" value="{$row.diversionfst|htmlentities}">
  78. </div>
  79. </div>
  80. <div class="form-group">
  81. <label class="control-label col-xs-12 col-sm-2">{:__('Diversioncsk')}:</label>
  82. <div class="col-xs-12 col-sm-8">
  83. <input id="c-diversioncsk" class="form-control" name="row[diversioncsk]" type="text" value="{$row.diversioncsk|htmlentities}">
  84. </div>
  85. </div>
  86. <div class="form-group">
  87. <label class="control-label col-xs-12 col-sm-2">{:__('Trace_id')}:</label>
  88. <div class="col-xs-12 col-sm-8">
  89. <input id="c-trace_id" data-rule="required" data-source="trace/index" class="form-control selectpage" name="row[trace_id]" type="text" value="{$row.trace_id|htmlentities}">
  90. </div>
  91. </div>
  92. <div class="form-group">
  93. <label class="control-label col-xs-12 col-sm-2">{:__('Video_id')}:</label>
  94. <div class="col-xs-12 col-sm-8">
  95. <input id="c-video_id" data-rule="required" data-source="video/index" class="form-control selectpage" name="row[video_id]" type="text" value="{$row.video_id|htmlentities}">
  96. </div>
  97. </div>
  98. <div class="form-group layer-footer">
  99. <label class="control-label col-xs-12 col-sm-2"></label>
  100. <div class="col-xs-12 col-sm-8">
  101. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  102. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  103. </div>
  104. </div>
  105. </form>