add.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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">{:__('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="">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('User_to_id')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-user_to_id" data-rule="required" data-source="user/to/index" class="form-control selectpage" name="row[user_to_id]" type="text" value="">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Party_id')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-party_id" data-rule="required" data-source="party/index" class="form-control selectpage" name="row[party_id]" type="text" value="">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Gift_id')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-gift_id" data-rule="required" data-source="gift/index" class="form-control selectpage" name="row[gift_id]" type="text" value="">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Gift_give_type')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-gift_give_type" data-rule="required" class="form-control" name="row[gift_give_type]" type="text">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Gift_name')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <input id="c-gift_name" data-rule="required" class="form-control" name="row[gift_name]" type="text">
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Gift_gif_image')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <div class="input-group">
  42. <input id="c-gift_gif_image" data-rule="required" class="form-control" size="50" name="row[gift_gif_image]" type="text">
  43. <div class="input-group-addon no-border no-padding">
  44. <span><button type="button" id="faupload-gift_gif_image" class="btn btn-danger faupload" data-input-id="c-gift_gif_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-gift_gif_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  45. <span><button type="button" id="fachoose-gift_gif_image" class="btn btn-primary fachoose" data-input-id="c-gift_gif_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  46. </div>
  47. <span class="msg-box n-right" for="c-gift_gif_image"></span>
  48. </div>
  49. <ul class="row list-inline faupload-preview" id="p-gift_gif_image"></ul>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Number')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <input id="c-number" data-rule="required" class="form-control" name="row[number]" type="number" value="1">
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <input id="c-price" class="form-control" name="row[price]" type="number">
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('Value')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <input id="c-value" data-rule="required" class="form-control" name="row[value]" type="number" value="0">
  68. </div>
  69. </div>
  70. <div class="form-group layer-footer">
  71. <label class="control-label col-xs-12 col-sm-2"></label>
  72. <div class="col-xs-12 col-sm-8">
  73. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  74. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  75. </div>
  76. </div>
  77. </form>