edit.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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">{:__('Product_id')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-product_id" data-rule="required" data-source="product/index" class="form-control selectpage" data-format-item="{id}-{name}" name="row[product_id]" type="text" value="{$row.product_id|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Road_id')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-road_id" data-rule="required" data-source="productroad/index" class="form-control selectpage" data-format-item="{id}-{roadname}" data-field="roadname" name="row[road_id]" type="text" value="{$row.road_id|htmlentities}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Chufatime')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-chufatime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[chufatime]" type="text" value="{:$row.chufatime?datetime($row.chufatime):''}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Ticket_number')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-ticket_number" class="form-control" name="row[ticket_number]" type="number" value="{$row.ticket_number|htmlentities}">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Ticket_remain')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-ticket_remain" class="form-control" name="row[ticket_remain]" type="number" value="{$row.ticket_remain|htmlentities}">
  30. </div>
  31. </div>
  32. <!--<div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Chufatype')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <select id="c-chufatype" class="form-control selectpicker" name="row[chufatype]">
  36. {foreach name="chufatypeList" item="vo"}
  37. <option value="{$key}" {in name="key" value="$row.chufatype"}selected{/in}>{$vo}</option>
  38. {/foreach}
  39. </select>
  40. </div>
  41. </div>-->
  42. <!--<div class="form-group">
  43. <label class="control-label col-xs-12 col-sm-2">{:__('Chepaihao')}:</label>
  44. <div class="col-xs-12 col-sm-8">
  45. <input id="c-chepaihao" class="form-control" name="row[chepaihao]" type="text" value="{$row.chepaihao|htmlentities}">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Sijimobile')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <input id="c-sijimobile" class="form-control" name="row[sijimobile]" type="text" value="{$row.sijimobile|htmlentities}">
  52. </div>
  53. </div>-->
  54. <div class="form-group">
  55. <label class="control-label col-xs-12 col-sm-2">{:__('Coach_id')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. <input id="c-coach_id" data-rule="required" data-source="coach/index" data-field="nickname" data-format-item="{nickname}-{mobile}" class="form-control selectpage" name="row[coach_id]" type="text" value="{$row.coach_id|htmlentities}">
  58. </div>
  59. </div>
  60. <div class="form-group">
  61. <label class="control-label col-xs-12 col-sm-2">{:__('Car_id')}:</label>
  62. <div class="col-xs-12 col-sm-8">
  63. <input id="c-car_id" data-rule="required" data-source="car/index" data-field="chepaihao" class="form-control selectpage" name="row[car_id]" type="text" value="{$row.car_id|htmlentities}">
  64. </div>
  65. </div>
  66. <!--<div class="form-group">
  67. <label class="control-label col-xs-12 col-sm-2">{:__('Fache_status')}:</label>
  68. <div class="col-xs-12 col-sm-8">
  69. <div class="radio">
  70. {foreach name="facheStatusList" item="vo"}
  71. <label for="row[fache_status]-{$key}"><input id="row[fache_status]-{$key}" name="row[fache_status]" type="radio" value="{$key}" {in name="key" value="$row.fache_status"}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">{:__('Fache_time')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <input id="c-fache_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[fache_time]" type="text" value="{:$row.fache_time?datetime($row.fache_time):''}">
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="control-label col-xs-12 col-sm-2">{:__('Daozhan_time')}:</label>
  84. <div class="col-xs-12 col-sm-8">
  85. <input id="c-daozhan_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[daozhan_time]" type="text" value="{:$row.daozhan_time?datetime($row.daozhan_time):''}">
  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. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  93. </div>
  94. </div>
  95. </form>