edit.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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">{:__('Uid')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. {:build_select('row[uid]', $userlist, $row.uid, ['class'=>'form-control selectpicker ', 'required'=>'', 'data-live-search'=>"true"])}
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Addtime')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-addtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[addtime]" type="text" value="{:$row.addtime?datetime($row.addtime):''}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('R_id')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. {:build_select('row[r_id]', $level, $row.r_id, ['class'=>'form-control selectpicker ', 'required'=>'', 'data-live-search'=>"true"])}
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Amount')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-amount" class="form-control" name="row[amount]" type="text" value="{$row.amount|htmlentities}">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Transfer')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-transfer" class="form-control" name="row[transfer]" type="text" value="{$row.transfer|htmlentities}">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. {foreach name="statusList" item="vo"}
  36. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {if $key==$row.status } checked {/if} /> {$vo}</label>
  37. {/foreach}
  38. </div>
  39. </div>
  40. <div class="form-group layer-footer">
  41. <label class="control-label col-xs-12 col-sm-2"></label>
  42. <div class="col-xs-12 col-sm-8">
  43. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  44. </div>
  45. </div>
  46. </form>