暫無描述

adminedit.blade.php 7.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. @extends('admin/master')
  2. @section('content')
  3. <body>
  4. @if(count($errors) > 0)
  5. <div class="Huialert Huialert-info" id="error">
  6. @foreach($errors->all() as $error)
  7. <li>{{$error}}</li>
  8. @endforeach
  9. </div>
  10. @endif
  11. <div class="page-container">
  12. <form action="/admin/admin/update" method="post" class="form form-horizontal" enctype="multipart/form-data">
  13. <input type="hidden" name="_token" value="{{ csrf_token() }}" />
  14. <input type="hidden" name="id" value="{{$admin['id']}}" />
  15. <div class="row cl">
  16. <label class="form-label col-xs-4 col-sm-2">
  17. 用户名:</label>
  18. <div class="formControls col-xs-6 col-sm-6">
  19. <input type="text" class="input-text" @if(old('username')) value="{{old('username')}}" @else value="{{$admin['username']}}" @endif placeholder="" name="username" readonly="true">
  20. </div>
  21. </div>
  22. <div class="row cl">
  23. <label class="form-label col-xs-4 col-sm-2">
  24. 密码:</label>
  25. <div class="formControls col-xs-6 col-sm-6">
  26. <input type="password" class="input-text" @if(old('password')) value="{{old('password')}}" @else value="" @endif placeholder="不填写还是原密码" name="password">
  27. </div>
  28. </div>
  29. <div class="row cl">
  30. <label class="form-label col-xs-4 col-sm-2">
  31. 再次输入密码:</label>
  32. <div class="formControls col-xs-6 col-sm-6">
  33. <input type="password" class="input-text" @if(old('password_confirmation')) value="{{old('password_confirmation')}}" @else value="" @endif placeholder="不填写还是原密码" name="password_confirmation">
  34. </div>
  35. </div>
  36. <!-- 真实姓名 -->
  37. <div class="row cl">
  38. <label class="form-label col-xs-4 col-sm-2">
  39. 真实姓名:</label>
  40. <div class="formControls col-xs-6 col-sm-6">
  41. <input type="text" class="input-text" @if(old('realname')) value="{{old('realname')}}" @else value="{{$admin['realname']}}" @endif placeholder="请输入真实姓名" name="realname">
  42. </div>
  43. </div>
  44. <div class="row cl">
  45. <label class="form-label col-xs-4 col-sm-2">
  46. 手机号:</label>
  47. <div class="formControls col-xs-6 col-sm-6">
  48. <input type="text" class="input-text" @if(old('phone')) value="{{old('phone')}}" @else value="{{$admin['phone']}}" @endif placeholder="请输入手机" name="phone">
  49. </div>
  50. </div>
  51. <div class="row cl">
  52. <label class="form-label col-xs-4 col-sm-2">
  53. 微信号:</label>
  54. <div class="formControls col-xs-6 col-sm-6">
  55. <input type="text" class="input-text" @if(old('wx_id')) value="{{old('wx_id')}}" @else value="{{$admin['wx_id']}}" @endif placeholder="请输入微信号" name="wx_id">
  56. </div>
  57. </div>
  58. <div class="row cl">
  59. <label class="form-label col-xs-4 col-sm-2">
  60. 微信二维码图:</label>
  61. <div class="formControls col-xs-6 col-sm-6">
  62. <div><img width="100" src="{{$admin['qrcode']?$admin['qrcode']:'/empty.png'}}"/>
  63. <span style="margin-left:10%;"></span>示意图:<img width="100" src="http://imgs.726p.com/tbk/upload/seafoodPic2019-10-21/172942/kx-5dad7a86880ad.jpg"/>(请上传带二维码的正方形图片)
  64. </div><br>
  65. <span class="btn-upload">
  66. <input class="input-text upload-url radius" type="text" name="uploadfile-1" id="uploadfile-1" readonly><a href="javascript:void();" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe642;</i> 上传图片</a>
  67. <input type="file" multiple name="qrcode" class="input-file">
  68. </span><br>
  69. 文件类型支持:jpg ,png ,ico ,文件大小不能超过1M
  70. </div>
  71. </div>
  72. <div class="row cl">
  73. <label class="form-label col-xs-4 col-sm-2">选择团队:</label>
  74. <div class="formControls col-xs-6 col-sm-6">
  75. <span class="select-box">
  76. <select size="1" name="team_id" id='team_id'>
  77. <option value="0" @if($admin['team_id']=='') selected @endif>-请选择-</option>
  78. @foreach($team as $v)
  79. <option value="{{$v['id']}}" @if($admin['team_id']==$v['id']) selected @endif>{{$v['name']}}</option>
  80. @endforeach
  81. </select>
  82. </span>
  83. </div>
  84. </div><br>
  85. <div class="row cl">
  86. <label class="form-label col-xs-4 col-sm-2">角色:</label>
  87. <div class="formControls col-xs-6 col-sm-6"> <span class="select-box">
  88. <select class="select" name="roles[]" multiple="multiple" style="height:300px;">
  89. @foreach($roles as $role)
  90. @if(old('roles'))
  91. <option value="{{$role['name']}}"
  92. @foreach(old('roles') as $v) @if($v==$role['name']) selected @endif @endforeach>{{$role['name']}}
  93. </option>
  94. @else
  95. <option value="{{$role['name']}}"
  96. @foreach($admin_roles as $v) @if($v['role_name'] == $role['name']) selected @endif @endforeach
  97. >{{$role['name']}}</option>
  98. @endif
  99. @endforeach
  100. </select>
  101. </span>
  102. </div>
  103. </div><br><br>
  104. <div class="row cl">
  105. <div class="col-9 col-offset-2">
  106. <button class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">&nbsp;&nbsp;修改&nbsp;&nbsp;</button>&nbsp;
  107. <button class="btn btn-default" type="reset" onclick="return_index();">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>&nbsp;
  108. {{--<a href="javascript:void(0)" class="btn btn-default radius" onclick="redirect('{{url('/admin/admin/all')}}')">返回并查看结果</a>--}}
  109. </div>
  110. </div>
  111. </form>
  112. </div>
  113. <!--_footer 作为公共模版分离出去-->
  114. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  115. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  116. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  117. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  118. <!--/_footer 作为公共模版分离出去-->
  119. <!--请在下方写此页面业务相关的脚本-->
  120. <script type="text/javascript">
  121. $(function(){
  122. setTimeout("$('#error').hide()",3000);
  123. });
  124. /*返回*/
  125. function return_index(){
  126. location.href='/admin/admin/all';
  127. }
  128. </script>
  129. </body>
  130. @endsection