add.html 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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">{:__('Order_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-order_id" data-rule="required" data-source="maintain/index" class="form-control selectpage" name="row[order_id]" type="text" value="">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Company_id')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-company_id" data-rule="required" data-source="company/index" class="form-control selectpage" name="row[company_id]" type="text" value="">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <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="">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Worker_id')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-worker_id" data-rule="required" data-source="worker/index" class="form-control selectpage" name="row[worker_id]" type="text" value="">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-name" class="form-control" name="row[name]" type="text" value="">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Number')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <input id="c-number" class="form-control" name="row[number]" type="number" value="0">
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Danwei')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <input id="c-danwei" class="form-control" name="row[danwei]" type="text" value="">
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
  46. <div class="col-xs-12 col-sm-8">
  47. <div class="input-group">
  48. <input id="c-images" class="form-control" size="50" name="row[images]" type="text" value="">
  49. <div class="input-group-addon no-border no-padding">
  50. <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  51. <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  52. </div>
  53. <span class="msg-box n-right" for="c-images"></span>
  54. </div>
  55. <ul class="row list-inline faupload-preview" id="p-images"></ul>
  56. </div>
  57. </div>
  58. <div class="form-group layer-footer">
  59. <label class="control-label col-xs-12 col-sm-2"></label>
  60. <div class="col-xs-12 col-sm-8">
  61. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  62. </div>
  63. </div>
  64. </form>