説明なし

teamedit.blade.php 2.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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/teamupdate" method="post" class="form form-horizontal">
  13. <input type="hidden" name="_token" value="{{ csrf_token() }}" />
  14. <input type="hidden" name="id" value="{{$team['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('name')) value="{{old('name')}}" @else value="{{$team['name']}}" @endif placeholder="" name="name" >
  20. </div>
  21. </div>
  22. <div class="row cl">
  23. <label class="form-label col-xs-4 col-sm-2">
  24. <font color='red'>* </font>团队类型:</label>
  25. <div class="formControls col-xs-6 col-sm-6">
  26. <input type="radio" name="type" value="1" @if($team['type']=='1') checked @endif>
  27. <label for="status-1" style="margin-right: 27px;">销售团队</label>
  28. <input type="radio" name="type" value="0" @if($team['type']=='') checked @endif>
  29. <label for="status-0" style="margin-right: 27px;">其他</label>
  30. </div>
  31. </div>
  32. <div class="row cl">
  33. <div class="col-9 col-offset-2">
  34. <button class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">&nbsp;&nbsp;修改&nbsp;&nbsp;</button>&nbsp;
  35. <button class="btn btn-default" type="reset" onclick="return_index();">&nbsp;&nbsp;返回&nbsp;&nbsp;</button>&nbsp;
  36. {{--<a href="javascript:void(0)" class="btn btn-default radius" onclick="redirect('{{url('/admin/admin/all')}}')">返回并查看结果</a>--}}
  37. </div>
  38. </div>
  39. </form>
  40. </div>
  41. <!--_footer 作为公共模版分离出去-->
  42. <script type="text/javascript" src="/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  43. <script type="text/javascript" src="/admin/lib/layer/2.4/layer.js"></script>
  44. <script type="text/javascript" src="/admin/static/h-ui/js/H-ui.min.js"></script>
  45. <script type="text/javascript" src="/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
  46. <!--/_footer 作为公共模版分离出去-->
  47. <!--请在下方写此页面业务相关的脚本-->
  48. <script type="text/javascript">
  49. $(function(){
  50. setTimeout("$('#error').hide()",3000);
  51. });
  52. /*返回*/
  53. function return_index(){
  54. location.href='/admin/admin/teamindex';
  55. }
  56. </script>
  57. </body>
  58. @endsection