0
0

index.html 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <style>
  4. .laydate-time-list{padding-bottom:0;overflow:hidden}
  5. .laydate-time-list>li{width:50%!important;}
  6. .laydate-time-list>li:last-child { display: none;}
  7. .laydate-time-list ol>li:last-child{margin-bottom:.26rem;}
  8. .rr{
  9. padding-right: 10px;
  10. }
  11. </style>
  12. <div class="row">
  13. <div class="col-sm-12">
  14. <div class="ibox float-e-margins">
  15. <div class="ibox-title">
  16. <h5>订餐设置</h5>
  17. <div class="ibox-tools">
  18. </div>
  19. </div>
  20. <div class="ibox-content">
  21. <form method="post" action="{:url('index')}" class="form-horizontal">
  22. <input type="hidden" name="id" value="{$info['id']|default='0'}">
  23. <div class="form-group">
  24. <label class="col-sm-2 control-label">当日订餐</label>
  25. <div class="col-sm-6">
  26. <textarea class="form-control" placeholder="当日订餐<br>为换行符" name="content1" >{$info.content1|default=''}</textarea>
  27. </div>
  28. </div>
  29. <div class="form-group">
  30. <label class="col-sm-2 control-label">预定餐</label>
  31. <div class="col-sm-6">
  32. <textarea class="form-control" placeholder="预定餐<br>为换行符" name="content2" >{$info.content2|default=''}</textarea>
  33. </div>
  34. </div>
  35. <div class="form-group">
  36. <label class="col-sm-2 control-label">预定餐退餐时间</label>
  37. <div class="col-sm-6">
  38. {:widget_view('common/laydate',['name'=>'content3','type' => 'time','val'=>$info?$info['content3']:'','format'=>'HH:mm'])}
  39. </div>
  40. </div>
  41. <div class="form-group">
  42. <label class="col-sm-2 control-label">套餐模式开关</label>
  43. <div class="col-sm-6">
  44. <select name="special" class="form-control">
  45. <option value="0">关闭</option>
  46. <option value="1">开启</option>
  47. </select>
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label class="col-sm-2 control-label">最大餐标(元)</label>
  52. <div class="col-sm-6">
  53. <input type="text" class="form-control" name="standard" value="{$info.standard|default=''}" oninput="clearNoNum(this)">
  54. </div>
  55. </div>
  56. <div class="form-group">
  57. <label class="col-sm-2 control-label">最小餐标(元)</label>
  58. <div class="col-sm-6">
  59. <input type="text" class="form-control" name="min" value="{$info.min|default=''}" oninput="clearNoNum(this)">
  60. </div>
  61. </div>
  62. <div class="col-sm-12">
  63. <div class="hr-line-dashed">
  64. </div>
  65. </div>
  66. <div class="form-group">
  67. <div class="col-sm-6 col-sm-offset-2">
  68. <button class="btn btn-primary ajax-post" target-form="form-horizontal" type="submit">确 定</button>
  69. </div>
  70. </div>
  71. </form>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. {/block}
  77. {block name="script"}
  78. <script>
  79. $(document).ready(function(){
  80. formSetValue("special", {$info.special|default=0});
  81. });
  82. </script>
  83. {/block}