edit.html 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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">{:__('Get_money')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <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}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
  24. {foreach name="typeList" item="vo"}
  25. <option value="{$key}" {in name="key" value="$row.type"}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">{:__('Acount_json')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <dl class="fieldlist" data-name="row[acount_json]">
  34. <dd>
  35. <ins>{:__('Key')}</ins>
  36. <ins>{:__('Value')}</ins>
  37. </dd>
  38. <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
  39. <textarea name="row[acount_json]" class="form-control hide" cols="30" rows="5">{$row.acount_json|htmlentities}</textarea>
  40. </dl>
  41. </div>
  42. </div>
  43. <div class="form-group">
  44. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  45. <div class="col-xs-12 col-sm-8">
  46. <div class="radio">
  47. {foreach name="statusList" item="vo"}
  48. <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>
  49. {/foreach}
  50. </div>
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label class="control-label col-xs-12 col-sm-2">{:__('Audittime')}:</label>
  55. <div class="col-xs-12 col-sm-8">
  56. <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):''}">
  57. </div>
  58. </div>
  59. <div class="form-group">
  60. <label class="control-label col-xs-12 col-sm-2">{:__('Auditremark')}:</label>
  61. <div class="col-xs-12 col-sm-8">
  62. <input id="c-auditremark" class="form-control" name="row[auditremark]" type="text" value="{$row.auditremark|htmlentities}">
  63. </div>
  64. </div>
  65. <div class="form-group layer-footer">
  66. <label class="control-label col-xs-12 col-sm-2"></label>
  67. <div class="col-xs-12 col-sm-8">
  68. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  69. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  70. </div>
  71. </div>
  72. </form>