add.html 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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">{:__('Chepaihao')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-chepaihao" class="form-control" name="row[chepaihao]" type="text" value="">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Color')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-color" class="form-control" name="row[color]" type="text" value="">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Chepaicolor')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <select id="c-chepaicolor" data-rule="required" class="form-control selectpicker" name="row[chepaicolor]">
  18. {foreach name="chepaicolorList" item="vo"}
  19. <option value="{$key}" {in name="key" value="5"}selected{/in}>{$vo}</option>
  20. {/foreach}
  21. </select>
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <input id="c-type" class="form-control" name="row[type]" type="text" value="">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-xs-12 col-sm-2">{:__('Brand')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-brand" class="form-control" name="row[brand]" type="text" value="">
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="control-label col-xs-12 col-sm-2">{:__('Xinghao')}:</label>
  38. <div class="col-xs-12 col-sm-8">
  39. <input id="c-xinghao" class="form-control" name="row[xinghao]" type="text" value="">
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Chejia')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <input id="c-chejia" class="form-control" name="row[chejia]" type="text" value="">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Fadongji')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <input id="c-fadongji" class="form-control" name="row[fadongji]" type="text" value="">
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="control-label col-xs-12 col-sm-2">{:__('Licheng')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. <input id="c-licheng" class="form-control" name="row[licheng]" type="number" value="0">
  58. </div>
  59. </div>
  60. <div class="form-group">
  61. <label class="control-label col-xs-12 col-sm-2">{:__('Is_etc')}:</label>
  62. <div class="col-xs-12 col-sm-8">
  63. <select id="c-is_etc" data-rule="required" class="form-control selectpicker" name="row[is_etc]">
  64. {foreach name="isEtcList" item="vo"}
  65. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  66. {/foreach}
  67. </select>
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-2">{:__('Power')}:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. <select id="c-power" data-rule="required" class="form-control selectpicker" name="row[power]">
  74. {foreach name="powerList" item="vo"}
  75. <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
  76. {/foreach}
  77. </select>
  78. </div>
  79. </div>
  80. <div class="form-group">
  81. <label class="control-label col-xs-12 col-sm-2">{:__('Seatnum')}:</label>
  82. <div class="col-xs-12 col-sm-8">
  83. <input id="c-seatnum" class="form-control" name="row[seatnum]" type="number" value="5">
  84. </div>
  85. </div>
  86. <div class="form-group">
  87. <label class="control-label col-xs-12 col-sm-2">{:__('Xingshi_num')}:</label>
  88. <div class="col-xs-12 col-sm-8">
  89. <input id="c-xingshi_num" class="form-control" name="row[xingshi_num]" type="text" value="">
  90. </div>
  91. </div>
  92. <div class="form-group">
  93. <label class="control-label col-xs-12 col-sm-2">{:__('Xingshi_images')}:</label>
  94. <div class="col-xs-12 col-sm-8">
  95. <div class="input-group">
  96. <input id="c-xingshi_images" class="form-control" size="50" name="row[xingshi_images]" type="text" value="">
  97. <div class="input-group-addon no-border no-padding">
  98. <span><button type="button" id="faupload-xingshi_images" class="btn btn-danger faupload" data-input-id="c-xingshi_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-xingshi_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  99. <span><button type="button" id="fachoose-xingshi_images" class="btn btn-primary fachoose" data-input-id="c-xingshi_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  100. </div>
  101. <span class="msg-box n-right" for="c-xingshi_images"></span>
  102. </div>
  103. <ul class="row list-inline faupload-preview" id="p-xingshi_images"></ul>
  104. </div>
  105. </div>
  106. <div class="form-group">
  107. <label class="control-label col-xs-12 col-sm-2">{:__('Yingyun_images')}:</label>
  108. <div class="col-xs-12 col-sm-8">
  109. <div class="input-group">
  110. <input id="c-yingyun_images" class="form-control" size="50" name="row[yingyun_images]" type="text" value="">
  111. <div class="input-group-addon no-border no-padding">
  112. <span><button type="button" id="faupload-yingyun_images" class="btn btn-danger faupload" data-input-id="c-yingyun_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-yingyun_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  113. <span><button type="button" id="fachoose-yingyun_images" class="btn btn-primary fachoose" data-input-id="c-yingyun_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  114. </div>
  115. <span class="msg-box n-right" for="c-yingyun_images"></span>
  116. </div>
  117. <ul class="row list-inline faupload-preview" id="p-yingyun_images"></ul>
  118. </div>
  119. </div>
  120. <div class="form-group">
  121. <label class="control-label col-xs-12 col-sm-2">{:__('Zhucetime')}:</label>
  122. <div class="col-xs-12 col-sm-8">
  123. <input id="c-zhucetime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[zhucetime]" type="text" value="{:date('Y-m-d H:i:s')}">
  124. </div>
  125. </div>
  126. <div class="form-group">
  127. <label class="control-label col-xs-12 col-sm-2">{:__('Department')}:</label>
  128. <div class="col-xs-12 col-sm-8">
  129. <input id="c-department" class="form-control" name="row[department]" type="text" value="">
  130. </div>
  131. </div>
  132. <div class="form-group">
  133. <label class="control-label col-xs-12 col-sm-2">{:__('Leasetype')}:</label>
  134. <div class="col-xs-12 col-sm-8">
  135. <select id="c-leasetype" data-rule="required" class="form-control selectpicker" name="row[leasetype]">
  136. {foreach name="leasetypeList" item="vo"}
  137. <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
  138. {/foreach}
  139. </select>
  140. </div>
  141. </div>
  142. <div class="form-group layer-footer">
  143. <label class="control-label col-xs-12 col-sm-2"></label>
  144. <div class="col-xs-12 col-sm-8">
  145. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  146. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  147. </div>
  148. </div>
  149. </form>