123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- @extends('admin/master')
- @section('content')
- <body>
- @if(count($errors) > 0)
- <div class="Huialert Huialert-info" id="error">
- @foreach($errors->all() as $error)
- <li>{{$error}}</li>
- @endforeach
- </div>
- @endif
- <div class="page-container">
- <form action="/admin/admin/update" method="post" class="form form-horizontal" enctype="multipart/form-data">
- <input type="hidden" name="_token" value="{{ csrf_token() }}" />
- <input type="hidden" name="id" value="{{$admin['id']}}" />
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- 用户名:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="text" class="input-text" @if(old('username')) value="{{old('username')}}" @else value="{{$admin['username']}}" @endif placeholder="" name="username" readonly="true">
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- 密码:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="password" class="input-text" @if(old('password')) value="{{old('password')}}" @else value="" @endif placeholder="不填写还是原密码" name="password">
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- 再次输入密码:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="password" class="input-text" @if(old('password_confirmation')) value="{{old('password_confirmation')}}" @else value="" @endif placeholder="不填写还是原密码" name="password_confirmation">
- </div>
- </div>
- <!-- 真实姓名 -->
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- 真实姓名:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="text" class="input-text" @if(old('realname')) value="{{old('realname')}}" @else value="{{$admin['realname']}}" @endif placeholder="请输入真实姓名" name="realname">
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- 手机号:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="text" class="input-text" @if(old('phone')) value="{{old('phone')}}" @else value="{{$admin['phone']}}" @endif placeholder="请输入手机" name="phone">
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- 微信号:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <input type="text" class="input-text" @if(old('wx_id')) value="{{old('wx_id')}}" @else value="{{$admin['wx_id']}}" @endif placeholder="请输入微信号" name="wx_id">
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">
- 微信二维码图:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <div><img width="100" src="{{$admin['qrcode']?$admin['qrcode']:'/empty.png'}}"/>
- <span style="margin-left:10%;"></span>示意图:<img width="100" src="http://imgs.726p.com/tbk/upload/seafoodPic2019-10-21/172942/kx-5dad7a86880ad.jpg"/>(请上传带二维码的正方形图片)
- </div><br>
- <span class="btn-upload">
- <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"></i> 上传图片</a>
- <input type="file" multiple name="qrcode" class="input-file">
- </span><br>
- 文件类型支持:jpg ,png ,ico ,文件大小不能超过1M
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">选择团队:</label>
- <div class="formControls col-xs-6 col-sm-6">
- <span class="select-box">
- <select size="1" name="team_id" id='team_id'>
- <option value="0" @if($admin['team_id']=='') selected @endif>-请选择-</option>
- @foreach($team as $v)
- <option value="{{$v['id']}}" @if($admin['team_id']==$v['id']) selected @endif>{{$v['name']}}</option>
- @endforeach
- </select>
- </span>
- </div>
- </div><br>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">角色:</label>
- <div class="formControls col-xs-6 col-sm-6"> <span class="select-box">
- <select class="select" name="roles[]" multiple="multiple" style="height:300px;">
- @foreach($roles as $role)
- @if(old('roles'))
- <option value="{{$role['name']}}"
- @foreach(old('roles') as $v) @if($v==$role['name']) selected @endif @endforeach>{{$role['name']}}
- </option>
- @else
- <option value="{{$role['name']}}"
- @foreach($admin_roles as $v) @if($v['role_name'] == $role['name']) selected @endif @endforeach
- >{{$role['name']}}</option>
- @endif
- @endforeach
- </select>
- </span>
- </div>
- </div><br><br>
- <div class="row cl">
- <div class="col-9 col-offset-2">
- <button class="btn btn-primary radius" type="submit" value=" 提交 "> 修改 </button>
- <button class="btn btn-default" type="reset" onclick="return_index();"> 返回 </button>
- {{--<a href="javascript:void(0)" class="btn btn-default radius" onclick="redirect('{{url('/admin/admin/all')}}')">返回并查看结果</a>--}}
- </div>
- </div>
- </form>
- </div>
- <!--_footer 作为公共模版分离出去-->
- <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
- <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
- <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
- <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
- <!--/_footer 作为公共模版分离出去-->
- <!--请在下方写此页面业务相关的脚本-->
- <script type="text/javascript">
- $(function(){
- setTimeout("$('#error').hide()",3000);
- });
- /*返回*/
- function return_index(){
- location.href='/admin/admin/all';
- }
- </script>
- </body>
- @endsection
|