add.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <form id="add-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="">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Out_trade_no')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-out_trade_no" data-rule="required" class="form-control" name="row[out_trade_no]" type="text" value="">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Order_amount')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-order_amount" data-rule="required" class="form-control" step="0.01" name="row[order_amount]" type="number" value="0.00">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Notifytime')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-notifytime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[notifytime]" type="text" value="{:date('Y-m-d H:i:s')}">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Pay_type')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-pay_type" data-rule="required" class="form-control" name="row[pay_type]" type="text" value="">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Platform')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <input id="c-platform" data-rule="required" class="form-control" name="row[platform]" type="text" value="">
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Order_status')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <div class="radio">
  42. {foreach name="orderStatusList" item="vo"}
  43. <label for="row[order_status]-{$key}"><input id="row[order_status]-{$key}" name="row[order_status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  44. {/foreach}
  45. </div>
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Table_name')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <input id="c-table_name" data-rule="required" class="form-control" name="row[table_name]" type="text" value="">
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="control-label col-xs-12 col-sm-2">{:__('Table_id')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. <input id="c-table_id" data-rule="required" data-source="table/index" class="form-control selectpage" name="row[table_id]" type="text" value="">
  58. </div>
  59. </div>
  60. <div class="form-group">
  61. <label class="control-label col-xs-12 col-sm-2">{:__('Args')}:</label>
  62. <div class="col-xs-12 col-sm-8">
  63. <input id="c-args" data-rule="required" class="form-control" name="row[args]" type="text" value="">
  64. </div>
  65. </div>
  66. <div class="form-group layer-footer">
  67. <label class="control-label col-xs-12 col-sm-2"></label>
  68. <div class="col-xs-12 col-sm-8">
  69. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  70. </div>
  71. </div>
  72. </form>