12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- {extend name="common/common2" /}
- {block name="main"}
- <style>
- .laydate-time-list{padding-bottom:0;overflow:hidden}
- .laydate-time-list>li{width:50%!important;}
- .laydate-time-list>li:last-child { display: none;}
- .laydate-time-list ol>li:last-child{margin-bottom:.26rem;}
- .rr{
- padding-right: 10px;
- }
- </style>
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-title">
- <h5>订餐设置</h5>
- <div class="ibox-tools">
- </div>
- </div>
- <div class="ibox-content">
- <form method="post" action="{:url('index')}" class="form-horizontal">
- <input type="hidden" name="id" value="{$info['id']|default='0'}">
- <div class="form-group">
- <label class="col-sm-2 control-label">当日订餐</label>
- <div class="col-sm-6">
- <textarea class="form-control" placeholder="当日订餐<br>为换行符" name="content1" >{$info.content1|default=''}</textarea>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">预定餐</label>
- <div class="col-sm-6">
- <textarea class="form-control" placeholder="预定餐<br>为换行符" name="content2" >{$info.content2|default=''}</textarea>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">预定餐退餐时间</label>
- <div class="col-sm-6">
- {:widget_view('common/laydate',['name'=>'content3','type' => 'time','val'=>$info?$info['content3']:'','format'=>'HH:mm'])}
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">套餐模式开关</label>
- <div class="col-sm-6">
- <select name="special" class="form-control">
- <option value="0">关闭</option>
- <option value="1">开启</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">最大餐标(元)</label>
- <div class="col-sm-6">
- <input type="text" class="form-control" name="standard" value="{$info.standard|default=''}" oninput="clearNoNum(this)">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">最小餐标(元)</label>
- <div class="col-sm-6">
- <input type="text" class="form-control" name="min" value="{$info.min|default=''}" oninput="clearNoNum(this)">
- </div>
- </div>
- <div class="col-sm-12">
- <div class="hr-line-dashed">
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-6 col-sm-offset-2">
- <button class="btn btn-primary ajax-post" target-form="form-horizontal" type="submit">确 定</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script>
- $(document).ready(function(){
- formSetValue("special", {$info.special|default=0});
- });
- </script>
- {/block}
|