add.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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">{:__('Amount')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-amount" class="form-control" name="row[amount]" type="number">
  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="{:date('Y-m-d H:i:s')}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Uid')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-uid" class="form-control" name="row[uid]" type="number">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Account')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-account" class="form-control" name="row[account]" type="text">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <div class="radio">
  30. {foreach name="statusList" item="vo"}
  31. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="2"}checked{/in} /> {$vo}</label>
  32. {/foreach}
  33. </div>
  34. </div>
  35. </div>
  36. <div class="form-group layer-footer">
  37. <label class="control-label col-xs-12 col-sm-2"></label>
  38. <div class="col-xs-12 col-sm-8">
  39. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  40. </div>
  41. </div>
  42. </form>