edit.html 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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">{:__('Pre_order_no')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-pre_order_no" data-rule="required" class="form-control" name="row[pre_order_no]" type="text" value="{$row.pre_order_no|htmlentities}">
  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" class="form-control selectpage" name="row[company_id]" type="text" value="{$row.company_id|htmlentities}">
  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="{$row.user_id|htmlentities}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-mobile" data-rule="required" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <input id="c-address" data-rule="required" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <input id="c-remark" data-rule="required" class="form-control" name="row[remark]" type="text" value="{$row.remark|htmlentities}">
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label class="control-label col-xs-12 col-sm-2">{:__('Car_id')}:</label>
  46. <div class="col-xs-12 col-sm-8">
  47. <input id="c-car_id" data-rule="required" data-source="car/index" class="form-control selectpage" name="row[car_id]" type="text" value="{$row.car_id|htmlentities}">
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label class="control-label col-xs-12 col-sm-2">{:__('Car_number')}:</label>
  52. <div class="col-xs-12 col-sm-8">
  53. <input id="c-car_number" data-rule="required" class="form-control" name="row[car_number]" type="text" value="{$row.car_number|htmlentities}">
  54. </div>
  55. </div>
  56. <div class="form-group">
  57. <label class="control-label col-xs-12 col-sm-2">{:__('Servicetype_id')}:</label>
  58. <div class="col-xs-12 col-sm-8">
  59. <input id="c-servicetype_id" data-rule="required" data-source="servicetype/index" class="form-control selectpage" name="row[servicetype_id]" type="text" value="{$row.servicetype_id|htmlentities}">
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <label class="control-label col-xs-12 col-sm-2">{:__('Pre_time')}:</label>
  64. <div class="col-xs-12 col-sm-8">
  65. <input id="c-pre_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pre_time]" type="text" value="{:$row.pre_time?datetime($row.pre_time):''}">
  66. </div>
  67. </div>
  68. <div class="form-group">
  69. <label class="control-label col-xs-12 col-sm-2">{:__('Order_id')}:</label>
  70. <div class="col-xs-12 col-sm-8">
  71. <input id="c-order_id" data-rule="required" data-source="order/index" class="form-control selectpage" name="row[order_id]" type="text" value="{$row.order_id|htmlentities}">
  72. </div>
  73. </div>
  74. <div class="form-group">
  75. <label class="control-label col-xs-12 col-sm-2">{:__('Order_time')}:</label>
  76. <div class="col-xs-12 col-sm-8">
  77. <input id="c-order_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[order_time]" type="text" value="{:$row.order_time?datetime($row.order_time):''}">
  78. </div>
  79. </div>
  80. <div class="form-group">
  81. <label class="control-label col-xs-12 col-sm-2">{:__('Cancel_time')}:</label>
  82. <div class="col-xs-12 col-sm-8">
  83. <input id="c-cancel_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[cancel_time]" type="text" value="{:$row.cancel_time?datetime($row.cancel_time):''}">
  84. </div>
  85. </div>
  86. <div class="form-group">
  87. <label class="control-label col-xs-12 col-sm-2">{:__('Cancel_reason')}:</label>
  88. <div class="col-xs-12 col-sm-8">
  89. <input id="c-cancel_reason" class="form-control" name="row[cancel_reason]" type="text" value="{$row.cancel_reason|htmlentities}">
  90. </div>
  91. </div>
  92. <div class="form-group">
  93. <label class="control-label col-xs-12 col-sm-2">{:__('Pre_order_status')}:</label>
  94. <div class="col-xs-12 col-sm-8">
  95. <div class="radio">
  96. {foreach name="preOrderStatusList" item="vo"}
  97. <label for="row[pre_order_status]-{$key}"><input id="row[pre_order_status]-{$key}" name="row[pre_order_status]" type="radio" value="{$key}" {in name="key" value="$row.pre_order_status"}checked{/in} /> {$vo}</label>
  98. {/foreach}
  99. </div>
  100. </div>
  101. </div>
  102. <div class="form-group layer-footer">
  103. <label class="control-label col-xs-12 col-sm-2"></label>
  104. <div class="col-xs-12 col-sm-8">
  105. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  106. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  107. </div>
  108. </div>
  109. </form>