form.blade.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="csrf-token" content="{{ csrf_token() }}">
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <!-- Tell the browser to be responsive to screen width -->
  8. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  9. <title>添加平台</title>
  10. <!-- Bootstrap 3.3.6 -->
  11. <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
  12. <!-- Font Awesome -->
  13. <link rel="stylesheet" href="/libs/font-awesome/4.5.0/css/font-awesome.min.css">
  14. <!-- Ionicons -->
  15. <link rel="stylesheet" href="/libs/ionicons/2.0.1/css/ionicons.min.css">
  16. <!-- Theme style -->
  17. <link rel="stylesheet" href="/dist/css/AdminLTE.min.css">
  18. <!-- iCheck -->
  19. <link rel="stylesheet" href="/plugins/iCheck/square/blue.css">
  20. </head>
  21. <body>
  22. <div class="login-logo">
  23. <a>添加平台</a>
  24. </div>
  25. {{--<form action="/index.php/admin/application/" enctype="" method="post">--}}
  26. {{--{!! csrf_field() !!}--}}
  27. {{--平台名称<input class="form-control" type="text" name="name"> <br>--}}
  28. {{--平台标题<input class="form-control" type="text" name="title"> <br>--}}
  29. {{--平台简介<input class="form-control" type="text" name="descr"> <br>--}}
  30. {{--平台图片<input class="form-control" type="file" name="img"> <br>--}}
  31. {{--状态<input class="form-control" type="radio" name="status" value="0"> 禁用--}}
  32. {{--<input class="form-control" type="radio" name="status" value="1"> 启用--}}
  33. {{--<input type="submit">--}}
  34. {{--<button type="submit">提交</button>--}}
  35. {{--</form>--}}
  36. @if($item)
  37. <form class="form-horizontal" method="post" action="/index.php/admin/appuser/{{$item['id']}}">
  38. <input type="hidden" name="id" value="{{$item['id']}}">
  39. @else
  40. <form class="form-horizontal" method="post" action="/index.php/admin/appuser/">
  41. @endif
  42. <input type="hidden" name="_token" value="{{ csrf_token() }}">
  43. <div class="form-group">
  44. <label for="name" class="col-sm-2 control-label">名称</label>
  45. <div class="col-sm-5">
  46. <input type="text" name="name" class="form-control" id="name" placeholder="请输入名称" value="{{$item['name']}}">
  47. </div>
  48. <div class="col-sm-5">
  49. <!-- <p class="form-control-static text-danger">{{ $errors->first('Student.name') }}</p> -->
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <div class="col-sm-offset-2 col-sm-10">
  54. <button type="submit" class="btn btn-primary">提交</button>
  55. </div>
  56. </div>
  57. </form>
  58. </body>
  59. </html>