edit.html 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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">{:__('Money')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-money" data-rule="required" class="form-control" step="0.01" name="row[money]" type="number" value="{$row.money|htmlentities}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Plat_bilv')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-plat_bilv" data-rule="required" class="form-control" step="0.01" name="row[plat_bilv]" type="number" value="{$row.plat_bilv|htmlentities}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Plat_money')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-plat_money" data-rule="required" class="form-control" step="0.01" name="row[plat_money]" type="number" value="{$row.plat_money|htmlentities}">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Get_money')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-get_money" data-rule="required" class="form-control" step="0.01" name="row[get_money]" type="number" value="{$row.get_money|htmlentities}">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
  36. {foreach name="typeList" item="vo"}
  37. <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
  38. {/foreach}
  39. </select>
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Acount_json')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <dl class="fieldlist" data-name="row[acount_json]">
  46. <dd>
  47. <ins>{:__('Key')}</ins>
  48. <ins>{:__('Value')}</ins>
  49. </dd>
  50. <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
  51. <textarea name="row[acount_json]" class="form-control hide" cols="30" rows="5">{$row.acount_json|htmlentities}</textarea>
  52. </dl>
  53. </div>
  54. </div>
  55. <div class="form-group">
  56. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  57. <div class="col-xs-12 col-sm-8">
  58. <div class="radio">
  59. {foreach name="statusList" item="vo"}
  60. <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>
  61. {/foreach}
  62. </div>
  63. </div>
  64. </div>
  65. <div class="form-group">
  66. <label class="control-label col-xs-12 col-sm-2">{:__('Audittime')}:</label>
  67. <div class="col-xs-12 col-sm-8">
  68. <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="{:$row.audittime?datetime($row.audittime):''}">
  69. </div>
  70. </div>
  71. <div class="form-group">
  72. <label class="control-label col-xs-12 col-sm-2">{:__('Auditremark')}:</label>
  73. <div class="col-xs-12 col-sm-8">
  74. <input id="c-auditremark" class="form-control" name="row[auditremark]" type="text" value="{$row.auditremark|htmlentities}">
  75. </div>
  76. </div>
  77. <div class="form-group layer-footer">
  78. <label class="control-label col-xs-12 col-sm-2"></label>
  79. <div class="col-xs-12 col-sm-8">
  80. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  81. </div>
  82. </div>
  83. </form>