edit.blade.php 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. @extends('layouts.master')
  2. @section('content')
  3. <script src="{{URL::asset('assets/ckeditor/ckeditor.js')}}"></script>
  4. <div class="container">
  5. <div class="row">
  6. <div class="col-md-12" style="background:#fff">
  7. <form role="form" class="form-control" action="{{url('admin/vocabulary_edit')}}" method="POST">
  8. {!! csrf_field() !!}
  9. <input type="hidden" name="hdn_id" value="{{$item->id}}">
  10. <div class="from-group">
  11. <label for="word" class="from-label">Word:</label>
  12. <input type="text" class="form-control" name="word" id="word" value="{{$item->word}}" required='required'>
  13. </div>
  14. <div class="from-group">
  15. <label for="meaning" class="from-label">Meaning</label>
  16. <input type="text" class="form-control" name="meaning" id="meaning" value="{{$item->meaning}}">
  17. </div>
  18. <div class="from-group">
  19. <label for="syn" class="from-label">Synonyms:</label>
  20. <input type="text" class="form-control" name="syn" id="syn" value="{{$item->synonyms}}">
  21. </div>
  22. <div class="from-group">
  23. <label for="antonym" class="from-label">Antonyms:</label>
  24. <input type="text" class="form-control" name="antonym" id="antonym" value="{{$item->antonyms}}">
  25. </div>
  26. <div class="from-group">
  27. <label for="example" class="from-label">Example</label>
  28. <textarea name="example" id="example" cols="30" rows="10">{{$item->example}}</textarea>
  29. </div>
  30. <div class="from-group">
  31. <label for="meaning" class="from-label">Meaning Question</label>
  32. <input type="text" class="form-control" value="{{$meaning_ques}}" name="meaning_ques" id="meaning">
  33. </div>
  34. <div class="from-group">
  35. <label for="ques" class="from-label">Meaning Options</label>
  36. <textarea name="meaning_opt" required='required' id="meaning_opt" cols="30" rows="10"><?php echo $meaning_opt;?></textarea>
  37. </div>
  38. <div class="from-group">
  39. <label for="meaning" class="from-label">Synonyms Question</label>
  40. <input type="text" class="form-control" value="{{$syn_ques}}" name="syn_ques" id="meaning">
  41. </div>
  42. <div class="from-group">
  43. <label for="ques" class="from-label">Synonyms Options</label>
  44. <textarea name="syn_opt" required='required' id="" cols="30" rows="10">{{$syn_opt}}</textarea>
  45. </div>
  46. <div class="from-group">
  47. <label for="meaning" class="from-label">Antonyms Question</label>
  48. <input type="text" class="form-control" value="{{$anto_ques}}" name="anto_ques" id="meaning">
  49. </div>
  50. <div class="from-group">
  51. <label for="ques" class="from-label">Antonyms Options</label>
  52. <textarea name="anto_opt" required='required' id="" cols="30" rows="10">{{$anto_opt}}</textarea>
  53. </div>
  54. <div class="from-group">
  55. <label class="checkbox">
  56. <input type="checkbox" {{$item->display?'checked':''}} name="display" id="display" value="1"> Display
  57. </label>
  58. </div>
  59. <div class="from-group">
  60. <label class="from-label"></label>
  61. <button class="btn btn-info pull-right" type="submit"><i class="fa fa-save"></i> Update</button>
  62. </div>
  63. </form>
  64. </div>
  65. </div>
  66. </div>
  67. <script type="text/javascript">
  68. $(document).ready(function(){
  69. CKEDITOR.replace('meaning_opt');
  70. CKEDITOR.replace('syn_opt');
  71. CKEDITOR.replace('anto_opt');
  72. CKEDITOR.config.width='1000px';
  73. CKEDITOR.config.height='120px';
  74. });
  75. </script>
  76. @endsection