1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-title">
- <h5>{$meta_title}</h5>
- <div class="ibox-tools">
- <a class="toback" href="{:url('auth')}">
- 返回上一页
- </a>
- </div>
- </div>
- <div class="ibox-content">
- <form method="post" action="{:url('add_auth')}" class="form-horizontal">
- <div class="form-group">
- <label class="col-sm-2 control-label">用户<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- {:widget('common/disabled-select',['name'=>'user_id','disabled'=>0,'lists' =>$user, 'val' =>0])}
- </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/multicascader',['name'=>'temperature_id','lists' =>$group, 'val' =>[]])}
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <div class="col-sm-4 col-sm-offset-2">
- <button class="btn btn-primary ajax-post" target-form="form-horizontal" type="submit">确 定</button>
- <a href="{:url('auth')}" class="btn btn-default">取 消</a>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script>
- $(document).ready(function(){
- formSetValue("enable", {$info.enable|default=1});
- });
- </script>
- {/block}
|