add.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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">{:__('Agentjewel')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-agentjewel" data-rule="required" class="form-control" step="0.01" name="row[agentjewel]" type="number" value="0.00">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Huilv')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-huilv" data-rule="required" class="form-control" name="row[huilv]" type="number">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-money" data-rule="required" class="form-control" step="0.01" name="row[money]" type="number" value="0.00">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Plat_bilv')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-plat_bilv" data-rule="required" class="form-control" step="0.01" name="row[plat_bilv]" type="number" value="0.00">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Plat_money')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <input id="c-plat_money" data-rule="required" class="form-control" step="0.01" name="row[plat_money]" type="number" value="0.00">
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Get_money')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <input id="c-get_money" data-rule="required" class="form-control" step="0.01" name="row[get_money]" type="number" value="0.00">
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
  46. <div class="col-xs-12 col-sm-8">
  47. <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
  48. {foreach name="typeList" item="vo"}
  49. <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
  50. {/foreach}
  51. </select>
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="control-label col-xs-12 col-sm-2">{:__('Acount_json')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. <dl class="fieldlist" data-name="row[acount_json]">
  58. <dd>
  59. <ins>{:__('Key')}</ins>
  60. <ins>{:__('Value')}</ins>
  61. </dd>
  62. <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
  63. <textarea name="row[acount_json]" class="form-control hide" cols="30" rows="5"></textarea>
  64. </dl>
  65. </div>
  66. </div>
  67. <div class="form-group">
  68. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  69. <div class="col-xs-12 col-sm-8">
  70. <div class="radio">
  71. {foreach name="statusList" item="vo"}
  72. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  73. {/foreach}
  74. </div>
  75. </div>
  76. </div>
  77. <div class="form-group">
  78. <label class="control-label col-xs-12 col-sm-2">{:__('Audittime')}:</label>
  79. <div class="col-xs-12 col-sm-8">
  80. <input id="c-audittime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[audittime]" type="text" value="{:date('Y-m-d H:i:s')}">
  81. </div>
  82. </div>
  83. <div class="form-group">
  84. <label class="control-label col-xs-12 col-sm-2">{:__('Auditremark')}:</label>
  85. <div class="col-xs-12 col-sm-8">
  86. <input id="c-auditremark" class="form-control" name="row[auditremark]" type="text" value="">
  87. </div>
  88. </div>
  89. <div class="form-group layer-footer">
  90. <label class="control-label col-xs-12 col-sm-2"></label>
  91. <div class="col-xs-12 col-sm-8">
  92. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  93. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  94. </div>
  95. </div>
  96. </form>