add.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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">{:__('Canteen_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-canteen_id" data-rule="required" data-source="hotel/canteen/index" class="form-control selectpage" name="row[canteen_id]" type="text" value="">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Room_id')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-room_id" data-rule="required" data-source="room/index" class="form-control selectpage" name="row[room_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">{:__('Order_no')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-order_no" data-rule="required" class="form-control" name="row[order_no]" 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" data-rule="required" 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">{:__('Phone')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <input id="c-phone" data-rule="required" class="form-control" name="row[phone]" type="text" value="">
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Sex')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <select id="c-sex" data-rule="required" class="form-control selectpicker" name="row[sex]">
  42. {foreach name="sexList" item="vo"}
  43. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  44. {/foreach}
  45. </select>
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Get_to_time')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <input id="c-get_to_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[get_to_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. <input id="c-remark" data-rule="required" class="form-control" name="row[remark]" type="text" value="">
  58. </div>
  59. </div>
  60. <div class="form-group">
  61. <label class="control-label col-xs-12 col-sm-2">{:__('Pay_amount')}:</label>
  62. <div class="col-xs-12 col-sm-8">
  63. <input id="c-pay_amount" data-rule="required" class="form-control" step="0.01" name="row[pay_amount]" type="number" value="0.00">
  64. </div>
  65. </div>
  66. <div class="form-group">
  67. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  68. <div class="col-xs-12 col-sm-8">
  69. <div class="radio">
  70. {foreach name="statusList" item="vo"}
  71. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
  72. {/foreach}
  73. </div>
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <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="{:date('Y-m-d H:i:s')}">
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="control-label col-xs-12 col-sm-2">{:__('Update_time')}:</label>
  84. <div class="col-xs-12 col-sm-8">
  85. <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="{:date('Y-m-d H:i:s')}">
  86. </div>
  87. </div>
  88. <div class="form-group layer-footer">
  89. <label class="control-label col-xs-12 col-sm-2"></label>
  90. <div class="col-xs-12 col-sm-8">
  91. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  92. </div>
  93. </div>
  94. </form>