Ei kuvausta

admincreate.blade.php 6.5KB

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