add.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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/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">{:__('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" data-field="companyname" 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">{:__('Projectname')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-projectname" class="form-control" name="row[projectname]" type="text" value="">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Projectaddress')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-projectaddress" class="form-control" name="row[projectaddress]" type="text" value="">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <div class="input-group">
  30. <input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="">
  31. <div class="input-group-addon no-border no-padding">
  32. <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  33. <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  34. </div>
  35. <span class="msg-box n-right" for="c-image"></span>
  36. </div>
  37. <ul class="row list-inline faupload-preview" id="p-image"></ul>
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label class="control-label col-xs-12 col-sm-2">{:__('Starttime')}:</label>
  42. <div class="col-xs-12 col-sm-8">
  43. <input id="c-starttime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[starttime]" type="text" value="{:date('Y-m-d H:i:s')}">
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="control-label col-xs-12 col-sm-2">{:__('Endtime')}:</label>
  48. <div class="col-xs-12 col-sm-8">
  49. <input id="c-endtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[endtime]" type="text" value="{:date('Y-m-d H:i:s')}">
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Header')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <input id="c-header" class="form-control" name="row[header]" type="text" value="">
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-2">{:__('Header_avatar')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <div class="input-group">
  62. <input id="c-header_avatar" class="form-control" size="50" name="row[header_avatar]" type="text" value="">
  63. <div class="input-group-addon no-border no-padding">
  64. <span><button type="button" id="faupload-header_avatar" class="btn btn-danger faupload" data-input-id="c-header_avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-header_avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  65. <span><button type="button" id="fachoose-header_avatar" class="btn btn-primary fachoose" data-input-id="c-header_avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  66. </div>
  67. <span class="msg-box n-right" for="c-header_avatar"></span>
  68. </div>
  69. <ul class="row list-inline faupload-preview" id="p-header_avatar"></ul>
  70. </div>
  71. </div>
  72. <div class="form-group">
  73. <label class="control-label col-xs-12 col-sm-2">{:__('Header_mobile')}:</label>
  74. <div class="col-xs-12 col-sm-8">
  75. <input id="c-header_mobile" class="form-control" name="row[header_mobile]" type="text" value="">
  76. </div>
  77. </div>
  78. <div class="form-group">
  79. <label class="control-label col-xs-12 col-sm-2">{:__('Xiaofang')}:</label>
  80. <div class="col-xs-12 col-sm-8">
  81. <input id="c-xiaofang" class="form-control" name="row[xiaofang]" type="text" value="">
  82. </div>
  83. </div>
  84. <div class="form-group">
  85. <label class="control-label col-xs-12 col-sm-2">{:__('Xiaofang_mobile')}:</label>
  86. <div class="col-xs-12 col-sm-8">
  87. <input id="c-xiaofang_mobile" class="form-control" name="row[xiaofang_mobile]" type="text" value="">
  88. </div>
  89. </div>
  90. <div class="form-group">
  91. <label class="control-label col-xs-12 col-sm-2">{:__('Weituo')}:</label>
  92. <div class="col-xs-12 col-sm-8">
  93. <input id="c-weituo" class="form-control" name="row[weituo]" type="text" value="">
  94. </div>
  95. </div>
  96. <div class="form-group">
  97. <label class="control-label col-xs-12 col-sm-2">{:__('Fuwujigou')}:</label>
  98. <div class="col-xs-12 col-sm-8">
  99. <input id="c-fuwujigou" class="form-control" name="row[fuwujigou]" type="text" value="">
  100. </div>
  101. </div>
  102. <div class="form-group">
  103. <label class="control-label col-xs-12 col-sm-2">{:__('Weibaofanwei')}:</label>
  104. <div class="col-xs-12 col-sm-8">
  105. <textarea id="c-weibaofanwei" class="form-control " rows="5" name="row[weibaofanwei]" cols="50"></textarea>
  106. </div>
  107. </div>
  108. <div class="form-group layer-footer">
  109. <label class="control-label col-xs-12 col-sm-2"></label>
  110. <div class="col-xs-12 col-sm-8">
  111. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  112. </div>
  113. </div>
  114. </form>