1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <form method="post" action="{:url('add')}" class="form-horizontal">
- <input type="hidden" name="id" value="{$info['id']|default='0'}">
- <div class="form-group">
- <label class="col-sm-2 control-label">医废类型<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- {:widget('common/select',['name'=>'cateid','lists'=>$cateList,'value'=>isset($info)?$info['cateid']:''])}
- </div>
- </div>
- <!-- <div class="form-group">-->
- <!-- <label class="col-sm-2 control-label">收取地点<span class="text-danger">*</span></label>-->
- <!-- <div class="col-sm-6">-->
- <!-- {:widget('common/select',['name'=>'waste_device_id','lists'=>$addrList,'value'=>isset($info)?$info['waste_device_id']:''])}-->
- <!-- </div>-->
- <!-- </div>-->
- <div class="form-group">
- <label class="col-sm-2 control-label">收取人<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- {:widget('common/select',['name'=>'user_id','lists'=>$userList,'value'=>isset($info)?$info['user_id']:''])}
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">重量(千克)<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- <input type="number" class="form-control" name="weight" value="{$info.weight|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">收取时间<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- {:widget_view('common/datetimepicker',['name'=>'create_time', 'val' => ''])}
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <div class="col-sm-6 col-sm-offset-2">
- <button class="btn btn-primary ajax-post" data-layer="1" target-form="form-horizontal" type="submit">确 定</button>
- <button class="btn cancel-btn btn-default" type="button">取 消</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script>
- $(document).ready(function(){
- formSetValue("enable", {$info.enable|default=1});
- });
- </script>
- {/block}
|