edit.blade.php 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. @extends('admin/public/layout')
  2. @section('content')
  3. <section class="content-header">
  4. <h1>
  5. 公告管理
  6. <small>编辑公告</small>
  7. </h1>
  8. </section>
  9. <section class="content">
  10. <div class="row">
  11. <div class="col-xs-12">
  12. @include('admin/public/error')
  13. <div class="box box-primary">
  14. <form role="form" name="editForm" method="POST" action="{{ route('admin.notice.update',['id'=>$notice->id]) }}">
  15. <input name="_method" type="hidden" value="PUT">
  16. <input type="hidden" name="_token" value="{{ csrf_token() }}">
  17. <div class="box-body">
  18. <div class="form-group">
  19. <label>公告标题</label>
  20. <input type="text" name="subject" class="form-control " placeholder="公告标题" value="{{ old('subject',$notice->subject) }}">
  21. </div>
  22. <div class="form-group">
  23. <label>公告标题样式</label>
  24. <span class="text-muted">(可以为空,也可以自定义样式,例如:style="color:red" )</span>
  25. <input type="text" name="style" class="form-control " placeholder="公告样式定义" value="{{ old('style',$notice->style) }}">
  26. </div>
  27. <div class="form-group">
  28. <label>公告链接地址</label>
  29. <input type="text" name="url" class="form-control " placeholder="http://www.tipask.com" value="{{ old('url',$notice->url) }}">
  30. </div>
  31. <div class="form-group">
  32. <label>状态</label>
  33. <div class="radio">
  34. <label>
  35. <input type="radio" name="status" value="1" @if($notice->status===1) checked @endif /> 已审核
  36. </label>&nbsp;&nbsp;
  37. <label>
  38. <input type="radio" name="status" value="0" @if($notice->status===0) checked @endif /> 待审核
  39. </label>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="box-footer">
  44. <button type="submit" class="btn btn-primary">保存</button>
  45. </div>
  46. </form>
  47. </div>
  48. </div>
  49. </div>
  50. </section>
  51. @endsection
  52. @section('script')
  53. <script type="text/javascript">
  54. set_active_menu('operations',"{{ route('admin.notice.index') }}");
  55. </script>
  56. @endsection