edit.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. <form id="edit-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">{:__('Hotel_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-hotel_id" data-rule="required" data-source="hotel/index" class="form-control selectpage" name="row[hotel_id]" type="text" value="{$row.hotel_id|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <div class="input-group">
  18. <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
  19. <div class="input-group-addon no-border no-padding">
  20. <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>
  21. <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>
  22. </div>
  23. <span class="msg-box n-right" for="c-image"></span>
  24. </div>
  25. <ul class="row list-inline faupload-preview" id="p-image"></ul>
  26. </div>
  27. </div>
  28. <div class="form-group">
  29. <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
  30. <div class="col-xs-12 col-sm-8">
  31. <div class="input-group">
  32. <input id="c-images" data-rule="required" class="form-control" size="50" name="row[images]" type="textarea" value="{$row.images|htmlentities}">
  33. <div class="input-group-addon no-border no-padding">
  34. <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>
  35. <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>
  36. </div>
  37. <span class="msg-box n-right" for="c-images"></span>
  38. </div>
  39. <ul class="row list-inline faupload-preview" id="p-images"></ul>
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <input id="c-price" data-rule="required" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Original_price')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <input id="c-original_price" data-rule="required" class="form-control" step="0.01" name="row[original_price]" type="number" value="{$row.original_price|htmlentities}">
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="control-label col-xs-12 col-sm-2">{:__('Space')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. <input id="c-space" data-rule="required" class="form-control" name="row[space]" type="number" value="{$row.space|htmlentities}">
  58. </div>
  59. </div>
  60. <div class="form-group">
  61. <label class="control-label col-xs-12 col-sm-2">{:__('Floor')}:</label>
  62. <div class="col-xs-12 col-sm-8">
  63. <input id="c-floor" data-rule="required" class="form-control" name="row[floor]" type="number" value="{$row.floor|htmlentities}">
  64. </div>
  65. </div>
  66. <div class="form-group">
  67. <label class="control-label col-xs-12 col-sm-2">{:__('Is_wifi')}:</label>
  68. <div class="col-xs-12 col-sm-8">
  69. <select id="c-is_wifi" data-rule="required" class="form-control selectpicker" name="row[is_wifi]">
  70. {foreach name="isWifiList" item="vo"}
  71. <option value="{$key}" {in name="key" value="$row.is_wifi"}selected{/in}>{$vo}</option>
  72. {/foreach}
  73. </select>
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label class="control-label col-xs-12 col-sm-2">{:__('Window')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <select id="c-window" data-rule="required" class="form-control selectpicker" name="row[window]">
  80. {foreach name="windowList" item="vo"}
  81. <option value="{$key}" {in name="key" value="$row.window"}selected{/in}>{$vo}</option>
  82. {/foreach}
  83. </select>
  84. </div>
  85. </div>
  86. <div class="form-group">
  87. <label class="control-label col-xs-12 col-sm-2">{:__('Breakfast')}:</label>
  88. <div class="col-xs-12 col-sm-8">
  89. <select id="c-breakfast" data-rule="required" class="form-control selectpicker" name="row[breakfast]">
  90. {foreach name="breakfastList" item="vo"}
  91. <option value="{$key}" {in name="key" value="$row.breakfast"}selected{/in}>{$vo}</option>
  92. {/foreach}
  93. </select>
  94. </div>
  95. </div>
  96. <div class="form-group">
  97. <label class="control-label col-xs-12 col-sm-2">{:__('People_num')}:</label>
  98. <div class="col-xs-12 col-sm-8">
  99. <input id="c-people_num" data-rule="required" class="form-control" name="row[people_num]" type="number" value="{$row.people_num|htmlentities}">
  100. </div>
  101. </div>
  102. <div class="form-group">
  103. <label class="control-label col-xs-12 col-sm-2">{:__('Bad')}:</label>
  104. <div class="col-xs-12 col-sm-8">
  105. <input id="c-bad" data-rule="required" class="form-control" name="row[bad]" type="text" value="{$row.bad|htmlentities}">
  106. </div>
  107. </div>
  108. <div class="form-group">
  109. <label class="control-label col-xs-12 col-sm-2">{:__('Wifi_phone')}:</label>
  110. <div class="col-xs-12 col-sm-8">
  111. <input id="c-wifi_phone" data-rule="required" class="form-control" name="row[wifi_phone]" type="text" value="{$row.wifi_phone|htmlentities}">
  112. </div>
  113. </div>
  114. <div class="form-group">
  115. <label class="control-label col-xs-12 col-sm-2">{:__('Room_layout')}:</label>
  116. <div class="col-xs-12 col-sm-8">
  117. <input id="c-room_layout" data-rule="required" class="form-control" name="row[room_layout]" type="text" value="{$row.room_layout|htmlentities}">
  118. </div>
  119. </div>
  120. <div class="form-group">
  121. <label class="control-label col-xs-12 col-sm-2">{:__('Wash_use')}:</label>
  122. <div class="col-xs-12 col-sm-8">
  123. <input id="c-wash_use" data-rule="required" class="form-control" name="row[wash_use]" type="text" value="{$row.wash_use|htmlentities}">
  124. </div>
  125. </div>
  126. <div class="form-group">
  127. <label class="control-label col-xs-12 col-sm-2">{:__('Facility')}:</label>
  128. <div class="col-xs-12 col-sm-8">
  129. <input id="c-facility" data-rule="required" class="form-control" name="row[facility]" type="text" value="{$row.facility|htmlentities}">
  130. </div>
  131. </div>
  132. <div class="form-group">
  133. <label class="control-label col-xs-12 col-sm-2">{:__('Bathroom')}:</label>
  134. <div class="col-xs-12 col-sm-8">
  135. <input id="c-bathroom" data-rule="required" class="form-control" name="row[bathroom]" type="text" value="{$row.bathroom|htmlentities}">
  136. </div>
  137. </div>
  138. <div class="form-group">
  139. <label class="control-label col-xs-12 col-sm-2">{:__('Tips')}:</label>
  140. <div class="col-xs-12 col-sm-8">
  141. <input id="c-tips" data-rule="required" class="form-control" name="row[tips]" type="text" value="{$row.tips|htmlentities}">
  142. </div>
  143. </div>
  144. <div class="form-group">
  145. <label class="control-label col-xs-12 col-sm-2">{:__('Cancel_explain')}:</label>
  146. <div class="col-xs-12 col-sm-8">
  147. <input id="c-cancel_explain" data-rule="required" class="form-control" name="row[cancel_explain]" type="text" value="{$row.cancel_explan|htmlentities}">
  148. </div>
  149. </div>
  150. <div class="form-group">
  151. <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  152. <div class="col-xs-12 col-sm-8">
  153. <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
  154. </div>
  155. </div>
  156. <div class="form-group">
  157. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  158. <div class="col-xs-12 col-sm-8">
  159. <div class="radio">
  160. {foreach name="statusList" item="vo"}
  161. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
  162. {/foreach}
  163. </div>
  164. </div>
  165. </div>
  166. <div class="form-group">
  167. <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
  168. <div class="col-xs-12 col-sm-8">
  169. <input id="c-create_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:$row.create_time?datetime($row.create_time):''}">
  170. </div>
  171. </div>
  172. <div class="form-group">
  173. <label class="control-label col-xs-12 col-sm-2">{:__('Update_time')}:</label>
  174. <div class="col-xs-12 col-sm-8">
  175. <input id="c-update_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[update_time]" type="text" value="{:$row.update_time?datetime($row.update_time):''}">
  176. </div>
  177. </div>
  178. <div class="form-group layer-footer">
  179. <label class="control-label col-xs-12 col-sm-2"></label>
  180. <div class="col-xs-12 col-sm-8">
  181. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  182. </div>
  183. </div>
  184. </form>