add.html 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. {eq name="admin.cid" value="0"}
  3. <div class="form-group">
  4. <label class="control-label col-xs-12 col-sm-2">{:__('Cid')}:</label>
  5. <div class="col-xs-12 col-sm-8">
  6. <input id="c-cid" data-rule="required" data-source="Company" data-field="company_name" class="form-control selectpage" name="row[cid]" type="text" >
  7. </div>
  8. </div>
  9. {else/}
  10. <input id="c-cid" name="row[cid]" type="hidden" value="{$admin.cid}">
  11. {/eq}
  12. <div class="form-group">
  13. <label class="control-label col-xs-12 col-sm-2">{:__('Project_id')}:</label>
  14. <div class="col-xs-12 col-sm-8">
  15. <input id="c-project_id" data-rule="required" data-source="project/project_donation" data-field="title" class="form-control selectpage" name="row[project_id]" type="text" value="">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Order_id')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-order_id" data-rule="required" data-source="order/index" class="form-control selectpage" name="row[order_id]" type="text" value="">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Uid')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <input id="c-uid" class="form-control" name="row[uid]" type="number">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Project_user_id')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-project_user_id" data-rule="required" data-source="project/user/index" class="form-control selectpage" name="row[project_user_id]" type="text" value="">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Project_donation_id')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input id="c-project_donation_id" data-rule="required" data-source="project/donation/index" class="form-control selectpage" name="row[project_donation_id]" type="text" value="">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Project_donation_num')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <input id="c-project_donation_num" class="form-control" name="row[project_donation_num]" type="number">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Add_time')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <input id="c-add_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[add_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  52. </div>
  53. </div>
  54. <div class="form-group layer-footer">
  55. <label class="control-label col-xs-12 col-sm-2"></label>
  56. <div class="col-xs-12 col-sm-8">
  57. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  58. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  59. </div>
  60. </div>
  61. </form>