1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- {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_view('common/select',['name'=>'area_id','lists' => $area, 'value' => isset($info['area_id'])?$info['area_id']:''])}
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">选择业主</label>
- <div class="col-sm-6">
- {:widget_view('common/select',['name'=>'owner_id','lists' => $owner, 'value' => isset($info['owner_id'])?$info['owner_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_view('common/select1',['name'=>'cate','lists' => $cate,'options1' => isset($info['c_type_list'])?$info['c_type_list']:[], 'value' => isset($info['cate'])?$info['cate']:'','value1' => isset($info['c_type'])?$info['c_type']:''])}
- </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="text" class="form-control" name="title" value="{$info.title|default=''}">
- </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="area" value="{$info.area|default=''}">
- </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="remark" value="{$info.remark|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">状态</label>
- <div class="col-sm-6">
- <label class="cr-inline">
- <input type="radio" value="1" name="enable">正常
- </label>
- <label class="cr-inline">
- <input type="radio" value="0" name="enable">禁用
- </label>
- </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}
|