edit_auth.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <div class="ibox float-e-margins">
  6. <div class="ibox-title">
  7. <h5>{$meta_title}</h5>
  8. <div class="ibox-tools">
  9. <a class="toback" href="{:url('auth')}">
  10. 返回上一页
  11. </a>
  12. </div>
  13. </div>
  14. <div class="ibox-content">
  15. <form method="post" action="{:url('edit_auth')}" class="form-horizontal">
  16. <div class="form-group">
  17. <label class="col-sm-2 control-label">用户<span class="text-danger">*</span></label>
  18. <div class="col-sm-6">
  19. {:widget('common/disabled-select',['name'=>'user_id','lists' =>$user, 'disabled'=>1,'val' =>$user_id])}
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. <label class="col-sm-2 control-label">选择设备<span class="text-danger">*</span></label>
  24. <div class="col-sm-6">
  25. {:widget('common/multicascader',['name'=>'temperature_id','lists' =>$group, 'val' =>$info])}
  26. </div>
  27. </div>
  28. <div class="hr-line-dashed"></div>
  29. <div class="form-group">
  30. <div class="col-sm-4 col-sm-offset-2">
  31. <button class="btn btn-primary ajax-post" target-form="form-horizontal" type="submit">确 定</button>
  32. <a href="{:url('auth')}" class="btn btn-default">取 消</a>
  33. </div>
  34. </div>
  35. </form>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. {/block}
  41. {block name="script"}
  42. <script>
  43. $(document).ready(function(){
  44. formSetValue("enable", {$info.enable|default=1});
  45. });
  46. </script>
  47. {/block}